[Insight-users] Bug using system gdcm with ITK on Windows with VS 2008
Jonathan Morra
jonmorra at gmail.com
Wed May 2 16:08:17 EDT 2012
I have found a bug in the build process for ITK with system gdcm on
Windows. After selecting a system GDCM, the itkTestDriver project does not
have the gdcm libraries correctly referenced by the linker. The below text
is lifted from itkTestDriver.vcproj
AdditionalDependencies="$(NOINHERIT) kernel32.lib user32.lib gdi32.lib
winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib
advapi32.lib ..\..\..\..\lib\Debug\ITKIOBMP-4.2.lib
..\..\..\..\lib\Debug\ITKIOBioRad-4.2.lib
..\..\..\..\lib\Debug\ITKIOGDCM-4.2.lib
..\..\..\..\lib\Debug\ITKIOGIPL-4.2.lib
..\..\..\..\lib\Debug\ITKIOJPEG-4.2.lib
..\..\..\..\lib\Debug\ITKIOLSM-4.2.lib
..\..\..\..\lib\Debug\ITKIOMeta-4.2.lib
..\..\..\..\lib\Debug\ITKIONIFTI-4.2.lib
..\..\..\..\lib\Debug\ITKIONRRD-4.2.lib
..\..\..\..\lib\Debug\ITKIOPNG-4.2.lib
..\..\..\..\lib\Debug\ITKIOStimulate-4.2.lib
..\..\..\..\lib\Debug\ITKIOTIFF-4.2.lib
..\..\..\..\lib\Debug\ITKIOVTK-4.2.lib ..\..\..\..\lib\Debug\itksys-4.2.lib
..\..\..\..\lib\Debug\ITKGDCM-4.2.lib gdcmMSFF.lib gdcmDICT.lib gdcmIOD.lib
gdcmDSED.lib gdcmCommon.lib ..\..\..\..\lib\Debug\ITKEXPAT-4.2.lib
gdcmjpeg8.lib gdcmjpeg12.lib gdcmjpeg16.lib
..\..\..\..\lib\Debug\itkopenjpeg-4.2.lib rpcrt4.lib
..\..\..\..\lib\Debug\itktiff-4.2.lib ..\..\..\..\lib\Debug\itkjpeg-4.2.lib
..\..\..\..\lib\Debug\ITKMetaIO-4.2.lib comctl32.lib wsock32.lib
..\..\..\..\lib\Debug\ITKniftiio-4.2.lib
..\..\..\..\lib\Debug\ITKznz-4.2.lib
..\..\..\..\lib\Debug\ITKNrrdIO-4.2.lib
..\..\..\..\lib\Debug\itkpng-4.2.lib ..\..\..\..\lib\Debug\itkzlib-4.2.lib
..\..\..\..\lib\Debug\ITKIOImageBase-4.2.lib
..\..\..\..\lib\Debug\ITKCommon-4.2.lib
..\..\..\..\lib\Debug\itksys-4.2.lib ws2_32.lib
..\..\..\..\lib\Debug\ITKVNLInstantiation-4.2.lib
..\..\..\..\lib\Debug\itkvnl_algo-4.2.lib
..\..\..\..\lib\Debug\itkv3p_lsqr-4.2.lib
..\..\..\..\lib\Debug\itkvnl-4.2.lib ..\..\..\..\lib\Debug\itkvcl-4.2.lib
..\..\..\..\lib\Debug\itkv3p_netlib-4.2.lib "
However, it should read as follows
AdditionalDependencies="$(NOINHERIT) kernel32.lib user32.lib gdi32.lib
winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib
advapi32.lib ..\..\..\..\lib\Debug\ITKIOBMP-4.2.lib
..\..\..\..\lib\Debug\ITKIOBioRad-4.2.lib
..\..\..\..\lib\Debug\ITKIOGDCM-4.2.lib
..\..\..\..\lib\Debug\ITKIOGIPL-4.2.lib
..\..\..\..\lib\Debug\ITKIOJPEG-4.2.lib
..\..\..\..\lib\Debug\ITKIOLSM-4.2.lib
..\..\..\..\lib\Debug\ITKIOMeta-4.2.lib
..\..\..\..\lib\Debug\ITKIONIFTI-4.2.lib
..\..\..\..\lib\Debug\ITKIONRRD-4.2.lib
..\..\..\..\lib\Debug\ITKIOPNG-4.2.lib
..\..\..\..\lib\Debug\ITKIOStimulate-4.2.lib
..\..\..\..\lib\Debug\ITKIOTIFF-4.2.lib
..\..\..\..\lib\Debug\ITKIOVTK-4.2.lib ..\..\..\..\lib\Debug\itksys-4.2.lib
..\..\..\..\lib\Debug\ITKGDCM-4.2.lib
c:\gdcm\x86\gdcmMSFF.lib c:\gdcm\x86\gdcmDICT.lib
c:\gdcm\x86\gdcmIOD.lib c:\gdcm\x86\gdcmDSED.lib
c:\gdcm\x86\gdcmCommon.lib
..\..\..\..\lib\Debug\ITKEXPAT-4.2.lib c:\gdcm\x86\gdcmjpeg8.lib
c:\gdcm\x86\gdcmjpeg12.lib c:\gdcm\x86\gdcmjpeg16.lib
..\..\..\..\lib\Debug\itkopenjpeg-4.2.lib rpcrt4.lib
..\..\..\..\lib\Debug\itktiff-4.2.lib ..\..\..\..\lib\Debug\itkjpeg-4.2.lib
..\..\..\..\lib\Debug\ITKMetaIO-4.2.lib comctl32.lib wsock32.lib
..\..\..\..\lib\Debug\ITKniftiio-4.2.lib
..\..\..\..\lib\Debug\ITKznz-4.2.lib
..\..\..\..\lib\Debug\ITKNrrdIO-4.2.lib
..\..\..\..\lib\Debug\itkpng-4.2.lib ..\..\..\..\lib\Debug\itkzlib-4.2.lib
..\..\..\..\lib\Debug\ITKIOImageBase-4.2.lib
..\..\..\..\lib\Debug\ITKCommon-4.2.lib
..\..\..\..\lib\Debug\itksys-4.2.lib ws2_32.lib
..\..\..\..\lib\Debug\ITKVNLInstantiation-4.2.lib
..\..\..\..\lib\Debug\itkvnl_algo-4.2.lib
..\..\..\..\lib\Debug\itkv3p_lsqr-4.2.lib
..\..\..\..\lib\Debug\itkvnl-4.2.lib ..\..\..\..\lib\Debug\itkvcl-4.2.lib
..\..\..\..\lib\Debug\itkv3p_netlib-4.2.lib "
Notice how the gdcm libraries are now prefaced with their appropriate
location for my disk (obviously they should be taken from the
CMake GDCM_DIR value).
Please let me know when you fix this.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120502/df2f2569/attachment.htm>
More information about the Insight-users
mailing list