[Insight-developers] Compilation problem ITK with Python Wrapping and NumArray

Sven Prevrhal sven.prevrhal at radiology.ucsf.edu
Wed May 30 17:10:51 EDT 2007


It seems the CMake configurator for this combination is off.
import_libnumarray() is needed in itkPyBuffer.txx however this macro is
defined in libnumarray.h which nowhere included. When I added #include
<libnumarray.h> and the path to it in the configuration it compiled fine. 

Then I get an error during installation – see #1 below. It seems the
compilation configuration subdir (e.g. Release) is not being included, so
CMake can’t find the file. Again, when I edit the paths in the .cmake file,
installation moves along fine. Then it hits another trouble spot – see #2
below. Again, “release” subdir is missing! SO when I edit the first line of
that .cmake file to 
FILE(GLOB ITK_PYTHON_FILES
"C:/packages/InsightToolkit-3.2.0/bin/release/*.py")
Everything works just fine.

Not sure I made a mistake or there is bug.

Thanks,
Sven

Installation Error #1
---------------------
CMake Error: Error in cmake code at
C:/packages/InsightToolkit-3.2.0/Wrapping/CSwig/cmake_install.cmake:31:
FILE INSTALL cannot find file
"C:/packages/InsightToolkit-3.2.0/Wrapping/CSwig/Python/InsightToolkit.py"
to install.
Current CMake stack:
c:/packages/InsightToolkit-3.2.0/cmake_install.cmake;C:/packages/InsightTool
kit-3.2.0/Wrapping/cmake_install.cmake;C:/packages/InsightToolkit-3.2.0/Wrap
ping/CSwig/cmake_install.cmake

Installation Error #2
-- Installing generated python files.
CMake Error: Error in cmake code at
C:/packages/InsightToolkit-3.2.0/Wrapping/CSwig/pythonfiles_install.cmake:3:
FILE called with inapropriate arguments. No FILES provided.
Current CMake stack:
c:/packages/InsightToolkit-3.2.0/cmake_install.cmake;C:/packages/InsightTool
kit-3.2.0/Wrapping/cmake_install.cmake;C:/packages/InsightToolkit-3.2.0/Wrap
ping/CSwig/cmake_install.cmake;C:/packages/InsightToolkit-3.2.0/Wrapping/CSw
ig/pythonfiles_install.cmake

 





More information about the Insight-developers mailing list