[Insight-users] linking issues using system gdcm in centOS 6

Matt McCormick matt.mccormick at kitware.com
Wed Apr 17 11:57:15 EDT 2013


Hi Lewes,

Please try adding the CMake code similar to DCMTK here:

  http://itk.org/gitweb?p=ITK.git;a=blob;f=Modules/ThirdParty/DCMTK/CMakeLists.txt;h=cd36c5272a8092c32e474ec6d5f6d2c31052c13a;hb=HEAD#l64

i.e., set the module export code for install and build in a similar
fashion.  If it fixes your issue, please consider submitting a patch:

  http://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html

Thanks,
Matt

On Wed, Apr 17, 2013 at 3:06 PM, Bradley Lowekamp
<blowekamp at mail.nih.gov> wrote:
> Hello Lewes,
>
> There is probably needs to be some cmake code updated. I know we have had a
> couple developers working hard to try to unify some CMake GDCM issues. I
> hope they are ware of this issue and have already improved it.
>
> If you just want to hack it for yourself I'd start with the following CMake
> line:
>
> https://github.com/Kitware/ITK/blob/master/Modules/ThirdParty/GDCM/CMakeLists.txt#L9
>
> I am not too familiar with this CMake code, but that would be where I'd
> start.
>
> Brad
>
> On Apr 17, 2013, at 10:53 AM, liulewes <lewes_infor at hotmail.com> wrote:
>
> It turns out that I have to add additional gdcm libs manually into the
> corresponding link.txt files for these itk test projects. Just wonder if
> there is a more systematic way to do it.
>
> ________________________________
> From: lewes_infor at hotmail.com
> To: insight-users at itk.org
> Date: Tue, 16 Apr 2013 17:03:29 -0400
> Subject: [Insight-users] linking issues using system gdcm in centOS 6
>
> Environment: centOS 6
> Libs: custom built gdcm 2.3, itk 4.3
> cmake: 2.8
> issue: when building itk with the custom built gdcm, the linker complains
> when linking for itkTestDriver. Symbols such as uuid_generate,
> JepgLsReadHeader, opj_cio_close, inflate, and etc. are not found; however,
> they exist in libgdcmuuid, libgdcmcharls, libgdcmzlib, respectively.
>
> I think some gdcm libs are not included in the itk cmake file correctly.
> What is the general suggested way to solve this type of issues?
>
> Best,
> Lewes
>
> _____________________________________ 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
> _____________________________________
> 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
>
>
>
> _____________________________________
> 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 Insight-users mailing list