Thanks for your attention.<div><br></div><div>Stephen, no, WrapITK isn't enabled in my configuration.</div><div><br></div><div>Karthik, yes, GDCM has been built with the flag GDCM-USE-VTK set to ON.</div><div><br></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">I checked the following in my installed GDCM and VTK directories (include and lib dirs):</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>
$ grep -R VTK_VERSION include/vtk-5.6/ lib/vtk-5.6/ include/gdcm-2.0/ lib/gdcm-2.0/</div><div>include/vtk-5.6/vtkConfigure.h:#define VTK_VERSION "5.6.0"</div><div>include/vtk-5.6/vtkVersion.h:# define VTK_SOURCE_VERSION "vtk version " VTK_VERSION ", Date: " vtksys_DATE_STAMP_STRING</div>
<div>include/vtk-5.6/vtkVersion.h:# define VTK_SOURCE_VERSION "vtk version " VTK_VERSION</div><div>include/vtk-5.6/vtkVersion.h: static const char *GetVTKVersion() { return VTK_VERSION; }</div><div><br></div><div>
<br></div><div>Thanks,</div><div><br></div><div>Roger</div></span></div><br><div class="gmail_quote">On Sat, Jul 17, 2010 at 6:26 PM, Karthik Krishnan <span dir="ltr"><<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I think the more likely place VTK-VERSION may be getting pulled in is<br>
that GDCM has been built with the flag GDCM-USE-VTK set to ON. Dean<br>
Inglis who initially reported the error on the attached link did have<br>
this flag on.<br>
<div><div></div><div class="h5"><br>
On 7/17/10, Stephen Aylward <<a href="mailto:stephen.aylward@kitware.com">stephen.aylward@kitware.com</a>> wrote:<br>
> The problem is that VTK_VERSION is being set somewhere that it shouldn't<br>
><br>
> Bill H thinks VTK_VERSION might be set in GDCM. Check the Cache/Use<br>
> file on your local install.<br>
><br>
> I checked the following in ITK:<br>
><br>
> $ grep -R VTK_VERSION *<br>
> Utilities/MetaIO/CMakeLists.txt:IF(VTK_VERSION)<br>
> Utilities/MetaIO/CMakeLists.txt:ELSE(VTK_VERSION)<br>
> Utilities/MetaIO/CMakeLists.txt:ENDIF(VTK_VERSION)<br>
> Wrapping/WrapITK/ExternalProjects/ItkVtkGlue/Wrapping/CMakeLists.txt:<br>
> SET(VTK_VERSION<br>
> "${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}.${VTK_BUILD_VERSION}")<br>
> Wrapping/WrapITK/ExternalProjects/ItkVtkGlue/Wrapping/CMakeLists.txt:<br>
> IF("${VTK_VERSION}" STRLESS "${MIN_ITK_VER}")<br>
> Wrapping/WrapITK/ExternalProjects/ItkVtkGlue/Wrapping/CMakeLists.txt:<br>
> ELSE("${VTK_VERSION}" STRLESS "${MIN_ITK_VER}")<br>
> Wrapping/WrapITK/ExternalProjects/ItkVtkGlue/Wrapping/CMakeLists.txt:<br>
> ENDIF("${VTK_VERSION}" STRLESS "${MIN_ITK_VER}")<br>
><br>
> So, if WrapITK is being used, then a temp var called VTK_VERSION is<br>
> being created...which is kind of a "reserved" CMake variable and could<br>
> cause the error. Is wrapping enabled?<br>
><br>
> s<br>
><br>
> On Sat, Jul 17, 2010 at 10:35 AM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>> Hmmm... that happened to me too.<br>
>><br>
>> Why haven't we fixed this?<br>
>><br>
>> Bill<br>
>><br>
>> On Sat, Jul 17, 2010 at 8:47 AM, Karthik Krishnan<br>
>> <<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>> wrote:<br>
>>> Known issue.. See this<br>
>>><br>
>>> <a href="http://www.itk.org/pipermail/insight-users/2010-June/037360.html" target="_blank">http://www.itk.org/pipermail/insight-users/2010-June/037360.html</a><br>
>>><br>
>>> and<br>
>>><br>
>>> <a href="http://www.itk.org/pipermail/insight-users/2010-July/037404.html" target="_blank">http://www.itk.org/pipermail/insight-users/2010-July/037404.html</a><br>
>>><br>
>>> I think the consensus is to downgrade to CMake 2.6 from Cmake 2.8<br>
>>><br>
>>><br>
>>> On Sat, Jul 17, 2010 at 3:25 PM, Roger Bramon Feixas<br>
>>> <<a href="mailto:rogerbramon@gmail.com">rogerbramon@gmail.com</a>><br>
>>> wrote:<br>
>>>><br>
>>>> Hi,<br>
>>>> I have the same problem reported in this<br>
>>>> thread: <a href="http://www.itk.org/pipermail/insight-users/2010-March/035903.html" target="_blank">http://www.itk.org/pipermail/insight-users/2010-March/035903.html</a>,<br>
>>>> but any solution was published. I would like to continue the discussion.<br>
>>>> I'm trying to compile ITK 3.18 with GDCM 2.0.15. I compiled correctly<br>
>>>> GDCM<br>
>>>> 2.0.15 with VTK 5.6 but when I set to 1 the ITK_USE_SYSTEM_GDCM option<br>
>>>> this<br>
>>>> CMake message error appears:<br>
>>>> CMake Error at Utilities/MetaIO/CMakeLists.txt:104 (INSTALL):<br>
>>>> install TARGETS given no LIBRARY DESTINATION for shared library target<br>
>>>> "vtkmetaio".<br>
>>>><br>
>>>> In the mentioned thread, Brad King proposed a test:<br>
>>>> "<br>
>>>> Edit ITK/Utilities/MetaIO/CMakeLists.txt to add some message()-s<br>
>>>> in this top block:<br>
>>>> IF(VTK_VERSION)<br>
>>>> SET(METAIO_FOR_VTK 1)<br>
>>>> MARK_AS_ADVANCED( METAIO_FOR_VTK )<br>
>>>> SET(METAIO_NAMESPACE "vtkmetaio")<br>
>>>> MESSAGE(FATAL_ERRORO "ITK IS NOT VTK!") # ADD THIS LINE<br>
>>>> ELSE(VTK_VERSION)<br>
>>>> ...<br>
>>>> ENDIF(VTK_VERSION)<br>
>>>> Does CMake hit this? Are you pointing ITK at a VTK? "<br>
>>>> I tested it, and yes, CMake hits this.<br>
>>>> Anyone have any suggestion?<br>
>>>> Thanks,<br>
>>>> Roger<br>
>>>> _____________________________________<br>
>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>><br>
>>>> Visit other Kitware open-source projects at<br>
>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>>><br>
>>>> Kitware offers ITK Training Courses, for more information visit:<br>
>>>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>>>><br>
>>>> Please keep messages on-topic and check the ITK FAQ at:<br>
>>>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>>>><br>
>>>> Follow this link to subscribe/unsubscribe:<br>
>>>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>>>><br>
>>><br>
>>><br>
>>> _____________________________________<br>
>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at<br>
>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Kitware offers ITK Training Courses, for more information visit:<br>
>>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>>><br>
>>> Please keep messages on-topic and check the ITK FAQ at:<br>
>>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>>><br>
>>><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://kitware.com/products/protraining.html" target="_blank">http://kitware.com/products/protraining.html</a><br>
>><br>
>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
>><br>
><br>
><br>
><br>
> --<br>
><br>
> ==============================<br>
> Stephen R. Aylward, Ph.D.<br>
> Director of Medical Imaging Research<br>
> Kitware, Inc. - North Carolina Office<br>
> <a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>
> stephen.aylward (Skype)<br>
> (919) 969-6990 x300<br>
><br>
</div></div></blockquote></div><br>