[Insight-users] itk fatal configuration error

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Nov 17 04:02:11 EST 2010


On Wed, Nov 17, 2010 at 2:32 AM, Dean Inglis <dean.inglis at camris.ca> wrote:
> Hi,
>
> I originally posted this topic thread Wed June 23 2010.  I am
> currently building with MSVC 2005 Express, CMake 2.8.3, InsightToolkit
> 3.20.0,
> against static build of vtk-5.7 (current git) and gdcm 2.0.16 (built with
> GDCM_USE_VTK).
>
> D:\Developer\Releases\VS\STATIC\itkStatic>cmake
> d:/Developer/Sources/Insight -G"
> NMake Makefiles"
> 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 did the workaround again, as originally suggested by Karthik Krishnan
>
>> What happens if you manually uncomment the first few lines in
>> Utilities/MetaIO/CMakeLists.txt to something like this :
>
> #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)
>
> as the error is persisting, should this be reported on the bug tracker?
> Can anyone specify what is causing this configuration error?

This has been solved in git/master:

http://itk.org/gitweb?p=ITK.git;a=patch;h=93833edb2294c0190af9e6c0de26e9485399a7d3

Should this be backported to ITK 3.x branch ? I am not sure none of
the use_system stuff was ever supported 'officially'

HTH
-- 
Mathieu


More information about the Insight-users mailing list