[Insight-users] ITK_USE_SYSTEM_GDCM ITK V4

Alexandre GOUAILLARD agouaillard at gmail.com
Wed Dec 14 00:26:05 EST 2011


Dear all,

Using SYSTEM_GDCM has been working with ITK v4 since may now to a
certain extend (with an installed tree), thanks to Brad King who fixed
target dependency propagation in the new modular ITK v4. If you
configure GDCM with CMAKE, compile and **install** gdcm then
everything should work fine.

if you do all of the above but do not install, the current GDCM code
does not export symbols/libraries from a build tree, findGDCM() then
won't be able to find automatically  the library, ITK not knowing were
to take it just tries to -lgdcmDICT and fails. Of course if you add
manually the good library path, it would work, but it's a manual
operation, and will nto allow you to switch from 32/64 bits or other
configuration options.

A fix is available here based on a slightly older version of GDCM 2.x
(may 2011):
https://github.com/ComplexSystemsModeling/GDCM

ITK v4 is compiled everyday on Karoshi2.SIgN with System GDCM.
GDCM-FORK use a build tree of the above-mentionned patched version of
GDCM and seems green enough (32/64). DGCM-PROPER use a build tree of
GDCM from the official repository and fails with missing libraries.
Patch was made available to the GDCM community.

regards,

alex.





On Wed, Dec 14, 2011 at 10:18 AM, Quang Tran <quangt.security at gmail.com> wrote:
> Hello,
>
> to build ITK with ITK_USE_SYSTEM_GDCM option (with assume that you have
> already had the code of gdcm library) you should:
>
> build gdcm library (using CMAKE with notice that the build directory is out
> side the code directory)
> check the option ITK_USE_SYSTEM_GDCM and set the GDCM_DIR to the gdcm build
> directory above
> set the variables environment of visual studio in such a way that it can
> find the gdcm libraries (ex:  Tools -> Options -> Projects and Solotions ->
> VC++ Directories -> Library files)
> Run CMake to generate ITK project and build it
>
> (In Linux environment you should set LD_LIBRARY_PATH point to the gdcm
> libraries directory)
>
> There is an another way by using CMAKE RPATH handling but I can't success
> with this. You can make a reference
> to http://www.vtk.org/Wiki/CMake_RPATH_handling . If you success by this
> way, please notice to everyone.
>
> /QuangT
>
> 2011/12/13 Rick Frank <rickf at fullspectrumsw.com>
>>
>> Hi
>>
>>
>>
>> I noticed someone posting that they tried ITK_USE_SYSTEM_GDCM ITK v4.
>>
>>
>>
>> > I'm trying to use ITK v4. I have been able to install it successfully
>> > (note
>>
>> > that the option ITK_USE_SYSTEM_GDCM doesn't work, it produce a link
>> > error to
>>
>> > gdcmMSFF).
>>
>>
>>
>>
>>
>> I would really like to be able use this feature. I’m currently building
>> with ITK 3.20 but looking to use 4.0 in final project.
>>
>>
>>
>> Is there any chance that this will be fixed in v4? If not, can anyone
>> explain/assist with the problem so that I could fix it myself? I wasn’t able
>> to figure out how to fix it.
>>
>>
>>
>> Thanks
>>
>>
>>
>>
>>
>>
>>
>> > I'm trying to use ITK v4. I have been able to install it successfully
>> > (note
>>
>> > that the option ITK_USE_SYSTEM_GDCM doesn't work, it produce a link
>> > error to
>>
>> > gdcmMSFF).
>>
>>
>>
>>
>>
>> Full Spectrum Software
>>
>> 225 Turnpike Rd.
>>
>> Southborough, MA 01772
>>
>> O. 508-620-6400
>>
>> F. 508-620-6465
>>
>> An ISO 13485 Certified Company
>>
>> rickf at fullspectrumsoftware.com
>>
>>
>>
>> www.FullSpectrumSoftware.com
>>
>>
>>
>>
>> _____________________________________
>> 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.html
>>
>> 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.html
>
> 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