[ITK Community] [Insight-users] ITK's FindDCMTK.cmake cannot assign the correct DCMTK linking libraries accounding to build type

Mengda Wu wumengda at gmail.com
Wed Dec 11 23:34:17 EST 2013


Just to follow up.... I did a little printing of the CMake variables. Here
are the values for them. I am not sure why ITK_LIBRARIES throws away the
"optimized" and "debug" keyword in ITKDCMTK_LIBRARIES or DCMTK_LIBRARIES.

DCMTK_LIBRARIES:
optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmpstat.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmpstat.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmsr.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmsr.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmtls.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmtls.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmqrdb.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmqrdb.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmnet.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmnet.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmjpeg.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmjpeg.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmimage.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmimage.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmimgle.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmimgle.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmdata.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmdata.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/oflog.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/oflog.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/ofstd.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ofstd.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/ijg12.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ijg12.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/ijg16.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ijg16.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/ijg8.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ijg8.lib;netapi32;wsock32


ITKDCMTK_LIBRARIES:
optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmpstat.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmpstat.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmsr.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmsr.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmtls.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmtls.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmqrdb.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmqrdb.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmnet.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmnet.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmjpeg.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmjpeg.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmimage.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmimage.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmimgle.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmimgle.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmdata.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmdata.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/oflog.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/oflog.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/ofstd.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ofstd.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/ijg12.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ijg12.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/ijg16.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ijg16.lib;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/ijg8.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ijg8.lib;netapi32;wsock32



ITK_LIBRARIES:
itkdouble-conversion;itksys;itkvnl_algo;itkvnl;itkv3p_netlib;ITKCommon;itkNetlibSlatec;ITKStatistics;ITKIOImageBase;ITKMesh;itkzlib;ITKMetaIO;ITKSpatialObjects;ITKPath;ITKLabelMap;ITKQuadEdgeMesh;ITKOptimizers;ITKPolynomials;ITKBiasCorrection;ITKBioCell;optimized;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmpstat.lib;debug;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmpstat.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmsr.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmsr.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmtls.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmtls.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmqrdb.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmqrdb.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmnet.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmnet.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmjpeg.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmjpeg.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmimage.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmimage.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmimgle.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmimgle.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/dcmdata.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/dcmdata.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/oflog.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/oflog.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/ofstd.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ofstd.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/ijg12.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ijg12.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/ijg16.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ijg16.lib;D:/Library/DCMTK/dcmtk/Build/lib/Release/ijg8.lib;D:/Library/DCMTK/dcmtk/Build/lib/Debug/ijg8.lib;netapi32;wsock32;ITKDICOMParser;ITKEXPAT;ITKIOXML;ITKIOSpatialObjects;ITKFEM;itkopenjpeg;gdcmDICT;gdcmMSFF;ITKznz;ITKniftiio;ITKgiftiio;itkhdf5_cpp;itkhdf5;ITKIOBMP;ITKIOBioRad;ITKIOCSV;ITKIODCMTK;ITKIOGDCM;ITKIOIPL;ITKIOGE;ITKIOGIPL;ITKIOHDF5;itkjpeg;ITKIOJPEG;itktiff;ITKIOTIFF;ITKIOLSM;ITKIOMRC;ITKIOMesh;ITKIOMeta;ITKIONIFTI;ITKNrrdIO;ITKIONRRD;itkpng;ITKIOPNG;ITKIOSiemens;ITKIOStimulate;ITKIOTransformBase;ITKIOTransformHDF5;ITKIOTransformInsightLegacy;ITKIOTransformMatlab;ITKIOVTK;ITKKLMRegionGrowing;ITKVTK;ITKWatersheds;ITKReview;ITKVideoCore;ITKVideoIO;ITKVtkGlue




Thanks,
Mengda



On Wed, Dec 11, 2013 at 11:12 PM, Mengda Wu <wumengda at gmail.com> wrote:

> Hi all,
>
>    I found there is a recent update in the git version of
> Modules\ThirdParty\DCMTK\CMake\FindDCMTK.cmake. Although it fixes the issue
> of the one shipped with CMake install. This version still has a problem.
>
>    It cannot assign the correct DCMTK linking libraries accounding to
> build type. So for both debug and release build of my own application, in
> my cmake generated vc projects settings, I saw both the DCMTK debug and
> release libraries are in my Linker->Input->Additional Dependencies.
>
>   Why is that?
>
> Thanks,
> Mengda
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131211/b3c3d5f8/attachment-0001.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


More information about the Community mailing list