<html><head></head><body bgcolor="#FFFFFF"><div><br>As far as I can tell, ITK_USE_SYSTEM_GDCM is just plain broken.</div><div><br></div><div>I never got it to work. Hopefully it will work in 4.0</div><div><br>Rick Frank</div><div><br></div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font><span>Date: Fri, 2 Dec 2011 21:56:47 +0100</span><br><span>From: Arthur Porat &lt;<a href="mailto:arthur.porat@gmail.com">arthur.porat@gmail.com</a>&gt;</span><br><span>Subject: [Insight-users] Re : Build ITK with ITK_USE_SYSTEM_GDCM</span><br><span> &nbsp; &nbsp;option</span><br><span>To: <a href="mailto:gdcm-developers@lists.sourceforge.net">gdcm-developers@lists.sourceforge.net</a>, <a href="mailto:insight-users@itk.org">insight-users@itk.org</a>,</span><br><span> &nbsp; &nbsp;<a href="mailto:jmalsoaz@yahoo.fr">jmalsoaz@yahoo.fr</a></span><br><span>Message-ID:</span><br><span> &nbsp; &nbsp;&lt;<a href="mailto:CAK+Ltb6qCeD6+8QPCa7hZAomRM-Pj1ivGVkCQuUf=qK0TDMWmw@mail.gmail.com">CAK+Ltb6qCeD6+8QPCa7hZAomRM-Pj1ivGVkCQuUf=qK0TDMWmw@mail.gmail.com</a>&gt;</span><br><span>Content-Type: text/plain; charset="iso-8859-1"</span><br><span></span><br><span>Hi James,</span><br><span></span><br><span>I'm currently trying to do the same thing as you. I tryed several</span><br><span>possibilities and none of them work. :/ My goal is the same as you build</span><br><span>GDCM with GDCM_USE_VTK and build ITK with ITK_USE_SYSTEM_GDCM</span><br><span></span><br><span>I have 3 differents errors</span><br><span></span><br><span>1 - A CMake error regarding vtkMetaIO. I think I have solved this problem:</span><br><span>modify the CMakeList in Utilities/MetaIO, disable the "if(VTK_SOURCE_DIR)"</span><br><span>and let the CMake choose the itkMetaIO. I'm not sure if it is correct but</span><br><span>it works</span><br><span></span><br><span>2 - With the previous solution, I'm able to configure and generate the</span><br><span>makefile. Unfortunately the build fails with a "Cannot find gdcmMSFF..."</span><br><span>I found something on the GDCM mailing list to modify some files in GDCM</span><br><span>source dir. Solution here:</span><br><span><a href="http://sourceforge.net/tracker/?func=detail&amp;aid=3380038&amp;group_id=137895&amp;atid=739587">http://sourceforge.net/tracker/?func=detail&amp;aid=3380038&amp;group_id=137895&amp;atid=739587</a></span><br><span></span><br><span>3 - Unfortunately (again, ...), this leads me to other errors. The one you</span><br><span>mention in your email with the "undefined reference to ..." gdcm stuff. I</span><br><span>can't figure out how to solve this.</span><br><span></span><br><span></span><br><span>Here are the possibilities I try :</span><br><span>- Build ITK (3.20.1) with GDCM (2.0.18) and the GDCM_USE_VTK option.</span><br><span>- Build last release git for ITK and GDCM</span><br><span>- Build last git for ITK and GDCM. V4 for ITK and V1.2.0 for GDCM. For this</span><br><span>one, The solution 2 fails and I stuck to the "Cannot find gdcmMSFF".</span><br><span></span><br><span>All of them lead me to one of the several errors listed above.</span><br><span></span><br><span>Really, I'm out of ideas on this despite the time I spent. I really hope</span><br><span>someone will be able to help us.</span><br><span>Best</span><br><span>Arthur</span><br><span></span><br><span></span><br><span> &nbsp;------------------------------</span><br><span>*De :* Malsoaz James &lt;<a href="mailto:jmalsoaz@yahoo.fr">jmalsoaz@yahoo.fr</a>&gt;</span><br><span>*? :* "<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>" &lt;<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>&gt;; "</span><br><span><a href="mailto:gdcm-developers@lists.sourceforge.net">gdcm-developers@lists.sourceforge.net</a>" &lt;</span><br><span><a href="mailto:gdcm-developers@lists.sourceforge.net">gdcm-developers@lists.sourceforge.net</a>&gt;</span><br><span>*Envoy? le :* Mercredi 30 Novembre 2011 23h15</span><br><span>*Objet :* [Gdcm2] Build ITK with ITK_USE_SYSTEM_GDCM option</span><br><span></span><br><span>Hi all,</span><br><span></span><br><span>I'm trying to build ITK 3.20.1 with MinGW. Unfortunately I can't set the</span><br><span>ITK_USE_GDCM_SYSTEM option to ON. I got an error during the CMake</span><br><span>configuration regarding vtkMetaIO</span><br><span></span><br><span>1- Do you know how I can solve the problem ? I guess it is because my</span><br><span>GDCM(v2.0.18) is built with the GDCM_USE_VTK option. Should I use another</span><br><span>GDCM with this option set to off ?</span><br><span></span><br><span>2- Thus, I have tryed with a GDCM and GDCM_USE_VTK set to off (which is not</span><br><span>my initial goal - I would prefer to solve question1). The CMake</span><br><span>configuration and generation works but the build fails. The errors concerns</span><br><span>gdcmMSFF.lib. I paste the errors here : <a href="http://pastebin.com/sfrLNHZ7">http://pastebin.com/sfrLNHZ7</a>. A lot</span><br><span>of undefined reference with gdcm, ...</span><br><span>Have you any idea ?</span><br><span></span><br><span></span><br><span>Best</span><br><span>James.</span><br><span></span><br><span>------------------------------------------------------------------------------</span><br><span>All the data continuously generated in your IT infrastructure</span><br><span>contains a definitive record of customers, application performance,</span><br><span>security threats, fraudulent activity, and more. Splunk takes this</span><br><span>data and makes sense of it. IT sense. And common sense.</span><br><span><a href="http://p.sf.net/sfu/splunk-novd2d">http://p.sf.net/sfu/splunk-novd2d</a></span><br><span>_______________________________________________</span><br><span>Gdcm-developers mailing list</span><br><span><a href="mailto:Gdcm-developers@lists.sourceforge.net">Gdcm-developers@lists.sourceforge.net</a></span><br><span><a href="https://lists.sourceforge.net/lists/listinfo/gdcm-developers">https://lists.sourceforge.net/lists/listinfo/gdcm-developers</a></span><br><span>-------------- next part --------------</span><br><span>An HTML attachment was scrubbed...</span><br><span>URL: &lt;<a href="http://www.itk.org/pipermail/insight-users/attachments/20111202/ca8a92a6/attachment-0001.htm">http://www.itk.org/pipermail/insight-users/attachments/20111202/ca8a92a6/attachment-0001.htm</a>&gt;</span><br><span></span><br><span>------------------------------</span><br><span></span><br><span>_______________________________________________</span><br><span>Insight-users mailing list</span><br><span><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a></span><br><span><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br><span></span><br><span></span><br><span>End of Insight-users Digest, Vol 92, Issue 3</span><br><span>********************************************</span><br></div></blockquote></body></html>