[Dcmlib] Visual Studio 7 .NET 2003 link errors

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Apr 13 19:49:40 CEST 2005


Really cool att test are passing :)

http://public.kitware.com/Public/Sites/PHAEDRUS/Win32-vs71/20050413-1553-Experimental/Test.html

Is this machine running at night ? If so would you consider adding your 
machine to our nightly dashboard ?

Mathieu

Sean McInerney wrote:
> Many thanks to Jean Michel and Mathieu!
> 
> Everything now compiles, links, and tests successfully.
> I have uploaded my Experimental build to your Dart server.
> 
> Also note that in order to compile the vtkGdcm tests with VTK 4.4.2, I 
> have updated the vtkTesting class (as well as then having to update 
> vtkSmartPointer ... and make some vtkTimerLog mods ... but I digress).
> 
> Merci beaucoup!
> 
> -Sean
> 
> Mathieu Malaterre wrote:
> 
>> I am so sorry, I don't know what happen. I guess not enough coffee. 
>> This should be fixed by now in both CVS and 1.0 branch. Thanks again 
>> for the patch and please accept my apologizes.
>>
>> Mathieu
>>
>> $ cvs ci -m"BUG: Could not build static lib of gdcm properly on 
>> windows. Thanks a lot for Jean Michel patch and patience" CMakeLists.txt
>> Checking in CMakeLists.txt;
>> /cvs/public/gdcm/src/CMakeLists.txt,v  <--  CMakeLists.txt
>> new revision: 1.60.2.1; previous revision: 1.60
>> done
>>
>> $ cvs ci -m"BUG: Could not build static lib of gdcm properly on 
>> windows. Thanks a lot for Jean Michel patch and patience" CMakeLists.txt
>> Checking in CMakeLists.txt;
>> /cvs/public/gdcm/src/CMakeLists.txt,v  <--  CMakeLists.txt
>> new revision: 1.62; previous revision: 1.61
>> done
>>
>>
>> Jean-Michel Rouet wrote:
>>
>>> Sean,
>>>
>>> for a reason or another, I just sent you a reply on this subject this 
>>> morning, but infortunately my mail was rejected by the dcmlib list 
>>> management software (message too big ?)
>>> Did you received it ?
>>>
>>> In case you did not, in short, the answer was:
>>>         -> have a look to the following message: (sorry it is in french)
>>>  
>>> http://www.creatis.insa-lyon.fr/pipermail/dcmlib/2005-February/001453.html 
>>>
>>>  
>>>         -> add IF (WIN32)
>>>   IF (BUILD_SHARED_LIBS)
>>>     ADD_DEFINITIONS(-DJPEGDLL)
>>>   ELSE (BUILD_SHARED_LIBS)
>>>     ADD_DEFINITIONS(-DJPEGSTATIC)
>>>   ENDIF (BUILD_SHARED_LIBS)
>>> ENDIF (WIN32)
>>> into <path to gdcm cvs sources>/src/CMakeLists.txt, just before the 
>>> line "SUBDIRS(gdcmjpeg)"
>>>
>>> Please tell us if that works.
>>> JM
>>>
>>> On 13/04/2005 05:03:04 Sean McInerney wrote:
>>>
>>>> Pardonne moi. Je ne parle pas français.
>>>>
>>>> Using MS Visual Studio 7 .NET 2003.
>>>> Using GDCM pulled from CVS.
>>>> Using VTK 4.4.2.
>>>>
>>>> Failure to build static gdcm/vtkGdcm linking with static VTK.
>>>> Failure to build shared gdcm/vtkGdcm linking with static VTK.
>>>>
>>>> Succeed to build shared gdcm/vtkGdcm linking with shared VTK ...
>>>> *except* that target 'gdcmTest' fails cannot find vtkRendering.lib.
>>>>
>>>> I am guessing these problems are traceable to the CMakeLists.txt files.
>>>> Perhaps the link libraries need to be added or reordered ... or could
>>>> this be my own error???
>>>>
>>>> In particular, I wish to build a static vtkGdcm linking with static 
>>>> VTK.
>>>> Any wisdom related to this build environment and these requirements 
>>>> will
>>>> be greatly appreciated.
>>>>
>>>> I am attaching the linker's error output for 'vtkWriteDicom' as an
>>>> example (the link error is the same for all).
>>>>
>>>> -Sean
>>>>
>>>> Linking...
>>>> gdcm.lib(gdcmJpeg16.obj) : error LNK2019: unresolved external symbol 
>>>> __imp__gdcm_jpeg16_jpeg_resync_to_restart referenced in function "void 
>>>
>>>
>>>
>>> __cdecl
>>>
>>>> gdcm_jpeg16_jpeg_stdio_src(struct jpeg_decompress_struct *,class 
>>>> std::basic_ifstream<char,struct std::char_traits<char> > *,class 
>>>> gdcm::JPEGFragment *,int)" 
>>>> (?gdcm_jpeg16_jpeg_stdio_src@@YAXPAUjpeg_decompress_struct@@PAV?$basic_ifstream@ 
>>>>
>>>> DU?$char_traits at D@std@@@std@@PAVJPEGFragment at gdcm@@H at Z)
>>>> ....
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Dcmlib mailing list
>>> Dcmlib at creatis.insa-lyon.fr
>>> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>>>
>>
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
> 




More information about the Dcmlib mailing list