[Insight-users] Re : Build ITK with ITK_USE_SYSTEM_GDCM option

Arthur Porat arthur.porat at gmail.com
Fri Dec 2 15:56:47 EST 2011


Hi James,

I'm currently trying to do the same thing as you. I tryed several
possibilities and none of them work. :/ My goal is the same as you build
GDCM with GDCM_USE_VTK and build ITK with ITK_USE_SYSTEM_GDCM

I have 3 differents errors

1 - A CMake error regarding vtkMetaIO. I think I have solved this problem:
modify the CMakeList in Utilities/MetaIO, disable the "if(VTK_SOURCE_DIR)"
and let the CMake choose the itkMetaIO. I'm not sure if it is correct but
it works

2 - With the previous solution, I'm able to configure and generate the
makefile. Unfortunately the build fails with a "Cannot find gdcmMSFF..."
I found something on the GDCM mailing list to modify some files in GDCM
source dir. Solution here:
http://sourceforge.net/tracker/?func=detail&aid=3380038&group_id=137895&atid=739587

3 - Unfortunately (again, ...), this leads me to other errors. The one you
mention in your email with the "undefined reference to ..." gdcm stuff. I
can't figure out how to solve this.


Here are the possibilities I try :
- Build ITK (3.20.1) with GDCM (2.0.18) and the GDCM_USE_VTK option.
- Build last release git for ITK and GDCM
- Build last git for ITK and GDCM. V4 for ITK and V1.2.0 for GDCM. For this
one, The solution 2 fails and I stuck to the "Cannot find gdcmMSFF".

All of them lead me to one of the several errors listed above.

Really, I'm out of ideas on this despite the time I spent. I really hope
someone will be able to help us.
Best
Arthur


  ------------------------------
*De :* Malsoaz James <jmalsoaz at yahoo.fr>
*À :* "insight-users at itk.org" <insight-users at itk.org>; "
gdcm-developers at lists.sourceforge.net" <
gdcm-developers at lists.sourceforge.net>
*Envoyé le :* Mercredi 30 Novembre 2011 23h15
*Objet :* [Gdcm2] Build ITK with ITK_USE_SYSTEM_GDCM option

Hi all,

I'm trying to build ITK 3.20.1 with MinGW. Unfortunately I can't set the
ITK_USE_GDCM_SYSTEM option to ON. I got an error during the CMake
configuration regarding vtkMetaIO

1- Do you know how I can solve the problem ? I guess it is because my
GDCM(v2.0.18) is built with the GDCM_USE_VTK option. Should I use another
GDCM with this option set to off ?

2- Thus, I have tryed with a GDCM and GDCM_USE_VTK set to off (which is not
my initial goal - I would prefer to solve question1). The CMake
configuration and generation works but the build fails. The errors concerns
gdcmMSFF.lib. I paste the errors here : http://pastebin.com/sfrLNHZ7. A lot
of undefined reference with gdcm, ...
Have you any idea ?


Best
James.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Gdcm-developers mailing list
Gdcm-developers at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gdcm-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111202/ca8a92a6/attachment.htm>


More information about the Insight-users mailing list