[Insight-users] ITK 3.20 + gdcm 2.0.16 (with VTK support) = cmake config problem

Bill Lorensen bill.lorensen at gmail.com
Fri Dec 3 14:48:43 EST 2010


Luis,

Shouldn't this fix be put into 3.20. ITKV4 is a moving target with
possible API changes that may or may not be retained.

Bill

On Tue, Nov 30, 2010 at 10:57 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
> Hi Mario,
>
> This problem was fixed recently in ITKv4
>
> Please see the patch below:
>
> git show 93833edb2294c0190af9e6c0de26e9485399a7d3
>
>
> ~/src/ITK/Utilities/MetaIO
> commit 93833edb2294c0190af9e6c0de26e9485399a7d3
> Author: ITK Robot <itkrobot at kitware.com>
> Date:   Thu Jul 22 10:54:04 2010 -0400
>
>    r2796 aylward | 2010-07-22T14:53:45.146190Z
>    BUG: Changed from VTK_VERSION to VTK_SOURCE_DIR to determine if
> being compiled within VTK or ITK.
>
> diff --git a/Utilities/MetaIO/CMakeLists.txt b/Utilities/MetaIO/CMakeLists.txt
> index 1f368f0..757bfc6 100644
> --- a/Utilities/MetaIO/CMakeLists.txt
> +++ b/Utilities/MetaIO/CMakeLists.txt
> @@ -9,11 +9,14 @@
>  # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>  # See the License for more information.
>  #=============================================================================
> -IF(VTK_VERSION)
> +IF(VTK_SOURCE_DIR)
> +
>   SET(METAIO_FOR_VTK 1)
>   MARK_AS_ADVANCED( METAIO_FOR_VTK )
>   SET(METAIO_NAMESPACE "vtkmetaio")
> -ELSE(VTK_VERSION)
> +
> +ELSE(VTK_SOURCE_DIR)
> +
>   SET(METAIO_FOR_ITK 1)
>   MARK_AS_ADVANCED( METAIO_FOR_ITK )
>   SET(METAIO_NAMESPACE "ITKMetaIO")
> @@ -23,7 +26,7 @@ ELSE(VTK_VERSION)
>     INCLUDE_DIRECTORIES(${ITK_LIBXML2_INCLUDE_DIR})
>   ENDIF(ITK_USE_LIBXML2)
>
> -ENDIF(VTK_VERSION)
> +ENDIF(VTK_SOURCE_DIR)
>
>  PROJECT( ${METAIO_NAMESPACE} )
>
>
>
> Regards,
>
>
>      Luis
>
>
> ---------------------------------------------------
> On Mon, Nov 22, 2010 at 6:57 AM, Mario Ceresa <mrceresa at gmail.com> wrote:
>> Hello all!
>> I have the following error during ITK 3.20 compilation on Fedora 14 x86_64:
>>
>> CMake Error at Utilities/MetaIO/CMakeLists.txt:115 (INSTALL):
>>  install TARGETS given no LIBRARY DESTINATION for shared library target
>>  "vtkmetaio".
>>
>> These are the cmake parameters used for the build:
>>
>> cmake -DBUILD_SHARED_LIBS:BOOL=ON \
>>       -DBUILD_EXAMPLES:BOOL=ON \
>>       -DCMAKE_BUILD_TYPE:STRING="Release"\
>>       -DCMAKE_VERBOSE_MAKEFILE=OFF\
>>       -DBUILD_TESTING=OFF\
>>       -DITK_USE_ORIENTED_IMAGE_DIRECTION:BOOL=ON \
>>       -DITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE:BOOL=ON \
>>       -DITK_USE_CENTERED_PIXEL_COORDINATES_CONSISTENTLY=ON \
>>       -DITK_USE_REVIEW:BOOL=ON \
>>       -DITK_USE_PATENTED:BOOL=OFF \
>>       -DITK_USE_SYSTEM_TIFF=ON \
>>       -DITK_USE_SYSTEM_PNG=ON \
>>       -DITK_USE_SYSTEM_ZLIB=ON \
>>       -DITK_USE_SYSTEM_LIBXML2=ON \
>>       -DITK_USE_SYSTEM_GDCM=ON \
>>       -DITK_USE_SYSTEM_VXL=OFF \
>>       -DITK_USE_SYSTEM_EXPAT=ON .
>>
>> It seems that the variable VTK_INSTALL_LIB_DIR_CM24 is not defined.
>> I use gdcm 2.0 from the Fedora repositories. It has the vtk support enabled.
>>
>> I would be very grateful if you could help me on the subject :)
>>
>> With best regards,
>>
>> Mario
>> _____________________________________
>> 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