[Gdcm2] itk/vtk/gdcm fconfiguration error
Cross-platform DICOM implementation
Brought to you by:
malat
From: Dean I. <dea...@ca...> - 2010-07-01 15:52:02
|
Can anyone else verify that there is a problem when statically building in Release mode latest repositories of gdcm, ITK, VTK with CMakeCache entries in gdcm: GDCM_USE_VTK:BOOL=ON in ITK: ITK_USE_SYSTEM_GDCM:BOOL=ON GDCM_DIR:PATH=path_to_static_build_of_gdcm using CMake 2.8 Dean 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 |