tewarfel / wrapitk

Automatically exported from code.google.com/p/wrapitk
0 stars 0 forks source link

compilation problem : itkFlatStructuringElement.h: No such file or directory #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. extract wrapitk-0.3.0.tar.bz2
2. in wrapitk-0.3.0 :
mkdir bin && cd bin
cmake -DINSTALL_WRAP_ITK_COMPATIBILITY:BOOL=OFF -DWRAP_ITK_PYTHON:BOOL=ON ..
make

What is the expected output? What do you see instead?

the error messages I see :

[  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

What version of the product are you using? On what operating system?
wrapitk-0.3.0 on Ubuntu 10.10

Please provide any additional information below.

CMake ended with the following warning:

CMake Warning (dev) at Languages/Python/CMakeLists.txt:403 (ADD_LIBRARY):
  Policy CMP0003 should be set before this line.  Add code such as

    if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)

  as early as possible but after the most recent call to
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
  because target "IOPython" links to some libraries for which the linker must
  search:

    ITKCommon, ITKIO, ITKNrrdIO, itkjpeg8, ITKSpatialObject, ITKCommon
    itkvnl_inst, itkvnl_algo, itkv3p_netlib, itkvnl, itkvcl, itkv3p_lsqr, m
    -lpthread, ITKMetaIO, itksys, dl, ITKDICOMParser, ITKEXPAT, ITKniftiio
    -lm, ITKznz

  and other libraries with known full path:

    /usr/lib/libgdcmMSFF.so.2.0.15

  CMake is adding directories in the second list to the linker search path in
  case they are needed to find libraries from the first list (for backwards
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
  more information.
Call Stack (most recent call first):
  Languages/CMakeLists.txt:72 (END_WRAP_LIBRARY_PYTHON)
  TypedefMacros.cmake:139 (END_WRAP_LIBRARY_ALL_LANGUAGES)
  Libraries/IO/CMakeLists.txt:12 (END_WRAP_LIBRARY)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/aniko/Logiciels/ITK/wrapitk-0.3.0/bin

Original issue reported on code.google.com by aki...@yahoo.fr on 12 May 2011 at 4:08

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Are you sure to use the right ITK path?

Original comment by gaetan.l...@gmail.com on 13 May 2011 at 1:16

GoogleCodeExporter commented 9 years ago
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