[Insight-users] Question about ITK+GDCM
Mario Ceresa
mrceresa at gmail.com
Mon Jun 27 09:23:18 EDT 2011
Hello again Kourosh!
I'm very sorry, but I am not really familiar with compilation in windows.
Maybe someone else in the list can help you?
I use itk in Fedora 14 and have no problem at all (ITK 3.20 + gdcm 2.0.16).
Bests,
Mario
On 27 June 2011 15:02, Jafari, Kourosh <kjafari at rad.hfh.edu> wrote:
> Thanks a lot Mario! I used your file but still I get the same error message. I cleared the cache, turned ITK_USE_SYSTEM_GDCM on and configured it again but still it displays the same error. I am using Windows Vista. Does it make a difference?
>
> I use ITK 3.20.0 and GDCM 2.0.14. I use an older version of GDCM since the 2.0.17 version would give link error when used with VTK.
>
> Thanks!
> Kourosh
>
> ________________________________________
> From: Mario Ceresa [mrceresa at gmail.com]
> Sent: Monday, June 27, 2011 3:25 AM
> To: Jafari, Kourosh
> Subject: Re: Question about ITK+GDCM
>
> Hello Kourosh!
> you are right indeed. I simply applied the suggested patch.
>
> The resulting file is attached.
>
> Hope this helps.
>
> Mario
>
> PS: which OS do you use?
>
>
> On 27 June 2011 06:04, Jafari, Kourosh <kjafari at rad.hfh.edu> wrote:
>> Dear Mario,
>>
>> I just saw a posting from you in November 30, 2010 with the title "[Insight-users] ITK 3.20 + gdcm 2.0.16 (with VTK support) = cmake config problem" in the ITK website. I have faced the same problem, i.e., I get the following error message when I turn ITK_USE_SYSTEM_GDCM on:
>>
>> Could NOT find Tclsh (missing: TCL_TCLSH)
>>
>> CMake Error at Utilities/MetaIO/CMakeLists.txt:115 (INSTALL):
>>
>> install TARGETS given no ARCHIVE DESTINATION for static library target
>>
>> "vtkmetaio".
>>
>> Configuring incomplete, errors occurred!
>>
>>
>>
>> I assume you were able to fix your problem by fixing CMakeLists.txt in \InsightToolkit-3.20.0\Utilities\MetaIO\. Unfortunately, I was unable to fix mine and I think I did not understand the answer to your question very well. May I ask how exactly you changed CMakeLists.txt? I just replaced VTK_VERSION with VTK_SOURCE_DIR in the following part of the file. Did I need to make more changes?
>>
>>
>>
>> I highly appreciate your kind help.
>>
>>
>>
>> Best regards,
>>
>> Kourosh
>>
>>
>>
>>
>>
>> IF(VTK_VERSION)
>>
>> SET(METAIO_FOR_VTK 1)
>>
>> MARK_AS_ADVANCED( METAIO_FOR_VTK )
>>
>> SET(METAIO_NAMESPACE "vtkmetaio")
>>
>> ELSE(VTK_VERSION)
>>
>> SET(METAIO_FOR_ITK 1)
>>
>> MARK_AS_ADVANCED( METAIO_FOR_ITK )
>>
>> SET(METAIO_NAMESPACE "ITKMetaIO")
>>
>> IF(ITK_USE_LIBXML2)
>>
>> ADD_DEFINITIONS(-DMETAIO_USE_LIBXML2)
>>
>> INCLUDE_DIRECTORIES(${ITK_LIBXML2_INCLUDE_DIR})
>>
>> ENDIF(ITK_USE_LIBXML2)
>>
>> ENDIF(VTK_VERSION)
>>
>> PROJECT( ${METAIO_NAMESPACE} )
>>
More information about the Insight-users
mailing list