[Insight-users] itk fatal configuration error
Dean Inglis
dean.inglis at camris.ca
Fri Jun 25 07:46:29 EDT 2010
final update:
although the configuration succeeds with the manual edits, the build
eventually fails:
Linking CXX static library ..\..\bin\ITKIO.lib
[ 96%] Built target ITKIO
Scanning dependencies of target itkTestDriver
[ 96%] Building CXX object
Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.ob
j
itkTestDriver.cxx
Linking CXX executable ..\..\bin\itkTestDriver.exe
LINK : fatal error LNK1181: cannot open input file 'gdcmMSFF.lib'
LINK failed. with 2
NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.8\bin\cmake.exe"' :
return
code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.
Dean
> But it should never get to line 115 of that file when building ITK. That
> should happen only if you are building VTK.
>
> 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_VTK 0)
> 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)
> ....
> ....
>
> Somehow its getting the definition of VTK_VERSION, perhaps from GDCM,
> which
> probably was built with GDCM_USE_VTK ??
>
> Thanks
> --
> karthik
>
> On Thu, Jun 24, 2010 at 1:49 AM, Dean Inglis <dean.inglis at camris.ca>
> wrote:
>
>> Im building cvs ITK against static release builds of svn gdcm and git VTK
>> with CMake 2.8.1 on Win32 Vista with VS 2005 Express nmake. Im getting
>> the following cmake configuration errors involving MetaIO:
>>
>> 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!
>>
>> Is there a work around for this or am I missing something??
>>
>> regards,
>> Dean
>>
>> _____________________________________
>> 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