Open GoogleCodeExporter opened 9 years ago
What is the ITK version? Have you turned on ITK_USE_REVIEW in ITK?
Original comment by gaetan.l...@gmail.com
on 13 May 2011 at 8:38
Hello,
thanks for responding.
The ITK version I use is
InsightToolkit-3.20.0
Indeed, in my ITKConfig.cmake it stands
SET(ITK_USE_REVIEW "OFF")
In fact almost everything in the same section� is "OFF"...
Here is the whole content of the ITKConfig.cmake file:
==================================
==================================
#-----------------------------------------------------------------------------
#
# ITKConfig.cmake - ITK CMake configuration file for external projects.
#
# This file is configured by ITK and used by the UseITK.cmake module
# to load ITK's settings for an external project.
# The ITK source tree.
# For backward compatibility issues we still need to define this variable,
although
# it is highly probable that it will cause more harm than being useful.
# Use ITK_INCLUDE_DIRS instead, since ITK_SOURCE_DIR may point to non-existent
directory
IF(NOT ITK_LEGACY_REMOVE)
� SET(ITK_SOURCE_DIR "/home/aniko/Logiciels/ITK/ITK_3.20.0src")
ENDIF(NOT ITK_LEGACY_REMOVE)
# The ITK include file directories.
SET(ITK_INCLUDE_DIRS
"/home/aniko/Logiciels/ITK/ITKbin;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Code/Algorithms;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Code/BasicFilters;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Code/Common;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Code/Numerics;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Code/IO;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Code/Numerics/FEM;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Code/Numerics/NeuralNetworks;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Code/SpatialObject;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Utilities/MetaIO;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Utilities/NrrdIO;/home/aniko/Logiciels/ITK/ITKbin/Utilities/NrrdIO;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Utilities/DICOMParser;/home/aniko/Logiciels/ITK/ITKbin/Utilities/DICOMParser;/home/aniko/Logiciels/ITK/ITKbin/Utilities/expat;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Utilities/expat;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Utilities/nifti/niftilib;/home/aniko/Logiciels/ITK/I
TK_3.20.0src/Utilities/nifti/znzlib;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Util
ities/itkExtHdrs;/home/aniko/Logiciels/ITK/ITKbin/Utilities;/home/aniko/Logiciel
s/ITK/ITK_3.20.0src/Utilities;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Code/Numer
ics/Statistics;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Utilities/vxl/v3p/netlib;
/home/aniko/Logiciels/ITK/ITK_3.20.0src/Utilities/vxl/vcl;/home/aniko/Logiciels/
ITK/ITK_3.20.0src/Utilities/vxl/core;/home/aniko/Logiciels/ITK/ITKbin/Utilities/
vxl/v3p/netlib;/home/aniko/Logiciels/ITK/ITKbin/Utilities/vxl/vcl;/home/aniko/Lo
giciels/ITK/ITKbin/Utilities/vxl/core;/home/aniko/Logiciels/ITK/ITKbin/Utilities
/gdcm;/home/aniko/Logiciels/ITK/ITK_3.20.0src/Utilities/gdcm/src")
# The ITK library directories.
SET(ITK_LIBRARY_DIRS "/home/aniko/Logiciels/ITK/ITKbin/bin")
# The C and C++ flags added by ITK to the cmake-configured flags.
SET(ITK_REQUIRED_C_FLAGS " -Wall -Wno-uninitialized -Wno-unused-parameter")
SET(ITK_REQUIRED_CXX_FLAGS " -ftemplate-depth-50 -Wall -Wno-deprecated")
SET(ITK_REQUIRED_LINK_FLAGS "")
# The ITK version number
SET(ITK_VERSION_MAJOR "3")
SET(ITK_VERSION_MINOR "20")
SET(ITK_VERSION_PATCH "0")
# The location of the UseITK.cmake file.
SET(ITK_USE_FILE "/home/aniko/Logiciels/ITK/ITKbin/UseITK.cmake")
# The build settings file.
SET(ITK_BUILD_SETTINGS_FILE
"/home/aniko/Logiciels/ITK/ITKbin/ITKBuildSettings.cmake")
# The library dependencies file.
SET(ITK_LIBRARY_DEPENDS_FILE
"/home/aniko/Logiciels/ITK/ITKbin/ITKLibraryDepends.cmake")
# Whether ITK was built with shared libraries.
SET(ITK_BUILD_SHARED "OFF")
# Whether ITK was built with Tcl wrapping support.
SET(ITK_CSWIG_TCL "OFF")
SET(ITK_CSWIG_PYTHON "OFF")
SET(ITK_CSWIG_JAVA "OFF")
# Path to CableSwig configuration used by ITK.
SET(ITK_CableSwig_DIR "")
# A list of all libraries for ITK.� Those listed here should
# automatically pull in their dependencies.
SET(ITK_LIBRARIES ITKAlgorithms ITKStatistics ITKFEM)
# The ITK library dependencies.
IF(NOT ITK_NO_LIBRARY_DEPENDS AND
��� EXISTS "${ITK_LIBRARY_DEPENDS_FILE}")
� INCLUDE("${ITK_LIBRARY_DEPENDS_FILE}")
ENDIF(NOT ITK_NO_LIBRARY_DEPENDS AND
� EXISTS "${ITK_LIBRARY_DEPENDS_FILE}")
# Whether ITK was built using a system VXL or system gdcm or review
SET(ITK_USE_SYSTEM_VXL "OFF")
SET(ITK_USE_SYSTEM_GDCM "OFF")
SET(ITK_USE_LIBXML2 "OFF")
SET(ITK_USE_SYSTEM_LIBXML2 "OFF")
SET(ITK_USE_REVIEW "OFF")
SET(ITK_USE_REVIEW_STATISTICS "OFF")
SET(ITK_USE_TRANSFORM_IO_FACTORIES "OFF")
SET(ITK_USE_OPTIMIZED_REGISTRATION_METHODS "OFF")
SET(ITK_USE_ORIENTED_IMAGE_DIRECTION "ON")
SET(ITK_USE_CENTERED_PIXEL_COORDINATES_CONSISTENTLY "ON")
SET(ITK_USE_REGION_VALIDATION_IN_ITERATORS "ON")
# The VXL_DIR setting used to build ITK.� Set if ITK_USE_SYSTEM_VXL is true.
# same for gdcm
SET(ITK_VXL_DIR "")
SET(ITK_GDCM_DIR "")
==================================
==================================
What would you propose me to change and how?
Thank you very much!
Annamaria
--- En date de�: Ven 13.5.11, wrapitk@googlecode.com <wrapitk@googlecode.com> a
�crit�:
De: wrapitk@googlecode.com <wrapitk@googlecode.com>
Objet: Re: Issue 36 in wrapitk: compilation problem :
itkFlatStructuringElement.h: No such file or directory
�: akiss0@yahoo.fr
Date: Vendredi 13 mai 2011, 10h38
Original comment by aki...@yahoo.fr
on 13 May 2011 at 11:03
You must turn on ITK_BUILD_SHARED and ITK_USE_REVIEW
Original comment by gaetan.l...@gmail.com
on 13 May 2011 at 11:07
hello,
I turned on ITK_BUILD_SHARED and ITK_USE_REVIEW
(in ITKConfig.cmake I verified they are set to ON)
and reinstalled ITK with the new settings.
Nevertheless, I have the same errors after the make of wrap_itk :
[� 3%] Building CXX object
Libraries/VXLNumerics/CMakeFiles/VXLNumericsPython.dir/wrap_vnl_vector_refPython
.o
Linking CXX shared module ../../lib/_VXLNumericsPython.so
[� 4%] Built target VXLNumericsPython
Scanning dependencies of target BaseIdx
[� 4%] Generating wrap_itkEventObjects.xml
/home/aniko/Logiciels/ITK/wrapitk-0.3.0/bin/Libraries/Base/wrap_itkEventObjects.
cxx:15:39: error: itkFlatStructuringElement.h: No such file or directory
make[2]: *** [Libraries/Base/wrap_itkEventObjects.xml] Error 1
make[1]: *** [Libraries/Base/CMakeFiles/BaseIdx.dir/all] Error 2
make: *** [all] Error 2
thank you for helping me figuring out where the problem is...
Original comment by aki...@yahoo.fr
on 13 May 2011 at 1:12
Are you sure to use the right ITK path?
Original comment by gaetan.l...@gmail.com
on 13 May 2011 at 1:16
how can I verify this in order to be 100% sure?
by the way, I realised the existence of the variable USE_WRAP_ITK already in
ITK.
at this moment I try to rebuild and reinstall ITK with this variable turned on.
What is your opinion? what is the difference between this option and that of
installing wrapitk separately?
thanks.
Original comment by aki...@yahoo.fr
on 13 May 2011 at 2:08
Original issue reported on code.google.com by
aki...@yahoo.fr
on 12 May 2011 at 4:08