[Insight-developers] CMake Problems with Insight CVS

Bill Lorensen wlorens1 at nycap.rr.com
Tue Nov 7 19:07:12 EST 2006


I had a similar problem with Slicer3. I added the extra directory name in 
the Code/IO files.

Bill

At 05:11 PM 11/7/2006, Kent Williams wrote:
>1. Headers got moved to Utilities/itkExtHdrs .   I had compilation 
>failures because itkAnalyzeDbh.h wasn't found.  I fixed this by adding 
>${ITK_INCLUDE_DIRS_BUILD_TREE}/Utilities to the INCLUDE_DIRECTORIES 
>command in the toplevel CMakeLists.txt, but I am not sure that is right. 
>There's no consistency in how the itkExtHdrs files are included.
>itkGE4ImageIO.cxx has #include "Ge4xHdr.h", itkGE5ImageIO.h has #include 
>"itkExtHdrs/Ge5xHdr.h", and itkAnalyzeImageIO.h has #include 
>"itkExtHdrs/itkAnalyzeDbh.h"
>
>2. The CMakeLists.txt for Utilities/nifti/niftilib and 
>Utilities/nifti/zlib both have a problem in a peculiar (i.e. to Iowa's 
>brains2 build process) situation: configuring a standalone nifti build, 
>pointing at the source in Utilities/nifti.  Why would someone want to 
>build the NIfTI stuff outside Insight?  To compile the utility programs 
>like nifti_tool.
>Plus, the CMakeLists.txt should be able to handle a compilation 
>environment besides being a subdirectory of Insight/Utilities, because the 
>standalone NIfTI and the Insight NIfTI should stay synchronized.
>
>*Index: Utilities/nifti/niftilib/CMakeLists.txt
>===================================================================
>RCS file: /cvsroot/Insight/Insight/Utilities/nifti/niftilib/CMakeLists.txt,v
>retrieving revision 1.9
>diff -c -r1.9 CMakeLists.txt
>*** Utilities/nifti/niftilib/CMakeLists.txt    26 Oct 2006 19:59:47 
>-0000    1.9
>--- Utilities/nifti/niftilib/CMakeLists.txt    7 Nov 2006 22:06:18 -0000
>***************
>*** 17,26 ****
>--- 17,33 ----
>  ENDIF(ITK_LIBRARY_PROPERTIES)
>  IF(NOT NIFTI_INSTALL_NO_LIBRARIES)
>+ IF(ITK_INSTALL_BIN_DIR_CM24)
>    INSTALL(TARGETS ${PACKAGE_PREFIX}niftiio
>      RUNTIME DESTINATION ${ITK_INSTALL_BIN_DIR_CM24} COMPONENT 
> RuntimeLibraries
>      LIBRARY DESTINATION ${ITK_INSTALL_LIB_DIR_CM24} COMPONENT 
> RuntimeLibraries
>      ARCHIVE DESTINATION ${ITK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
>+ ELSE(ITK_INSTALL_BIN_DIR_CM24)
>+   INSTALL(TARGETS ${PACKAGE_PREFIX}niftiio
>+     RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin COMPONENT 
>RuntimeLibraries
>+     LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT 
>RuntimeLibraries
>+     ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT Development)
>+ ENDIF(ITK_INSTALL_BIN_DIR_CM24)
>  ENDIF(NOT NIFTI_INSTALL_NO_LIBRARIES)
>  IF(NOT NIFTI_INSTALL_NO_DEVELOPMENT)
>cvs diff: Diffing Utilities/nifti/real_easy
>cvs diff: Diffing Utilities/nifti/utils
>cvs diff: Diffing Utilities/nifti/znzlib
>Index: Utilities/nifti/znzlib/CMakeLists.txt
>===================================================================
>RCS file: /cvsroot/Insight/Insight/Utilities/nifti/znzlib/CMakeLists.txt,v
>retrieving revision 1.9
>diff -c -r1.9 CMakeLists.txt
>*** Utilities/nifti/znzlib/CMakeLists.txt    26 Oct 2006 19:59:47 -0000    1.9
>--- Utilities/nifti/znzlib/CMakeLists.txt    7 Nov 2006 22:06:18 -0000
>***************
>*** 11,20 ****
>--- 11,28 ----
>  ENDIF(ITK_LIBRARY_PROPERTIES)
>  IF(NOT NIFTI_INSTALL_NO_LIBRARIES)
>+ IF(ITK_INSTALL_BIN_DIR_CM24)
>    INSTALL(TARGETS ${PACKAGE_PREFIX}znz
>      RUNTIME DESTINATION ${ITK_INSTALL_BIN_DIR_CM24} COMPONENT 
> RuntimeLibraries
>      LIBRARY DESTINATION ${ITK_INSTALL_LIB_DIR_CM24} COMPONENT 
> RuntimeLibraries
>      ARCHIVE DESTINATION ${ITK_INSTALL_LIB_DIR_CM24} COMPONENT Development)
>+ ELSE(ITK_INSTALL_BIN_DIR_CM24)
>+   INSTALL(TARGETS ${PACKAGE_PREFIX}znz
>+     RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin COMPONENT 
>RuntimeLibraries
>+     LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT 
>RuntimeLibraries
>+     ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT Development)
>+ ENDIF(ITK_INSTALL_BIN_DIR_CM24)
>+
>  ENDIF(NOT NIFTI_INSTALL_NO_LIBRARIES)
>  IF(NOT NIFTI_INSTALL_NO_DEVELOPMENT)
>*
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at itk.org
>http://www.itk.org/mailman/listinfo/insight-developers



More information about the Insight-developers mailing list