[Insight-developers] Compilation problem ITK with Python Wrapping
and NumArray
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Tue Jun 5 16:20:48 EDT 2007
Hi Sven,
Numarray support is broken with the current wrapping system.
It is however fully functionnal with WrapITK - you should try to use
this one.
Regards,
Gaëtan
Le 30 mai 07 à 23:10, Sven Prevrhal a écrit :
> 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
>
>
>
>
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://www.itk.org/mailman/private/insight-developers/attachments/20070605/f8d19973/PGP.pgp
More information about the Insight-developers
mailing list