[Insight-users] Python wrapping in cvs version
Luis Ibanez
luis.ibanez at kitware.com
Mon Aug 30 19:48:00 EDT 2004
Hi Charles,
It seems that you are providing the wrong directory
for "numarray" to CMake.
Chances are that you are providing the directory
"Numeric", while you should be providing "numarray".
Please rerun CMake and search for the variable
PYTHON_NUMARRAY_INCLUDE_DIR
in a typical Linux installation the directory
should be
/usr/include/python2.3/numarray
then do 'configure', 'generate' and finally do 'make'.
Please let us know if you still find any problem,
Thanks
Luis
---------------------
Charles Moad wrote:
> I did a cvs up today, and while trying to build I get the following
> error. It has probably been 2-3 months since I last updated. I have
> numarray set on.
>
> Thanks,
> Charlie
>
> /usr/local/src/itk/build-Insight/Wrapping/CSwig/Common: building
> default_target
> Building object file wrap_itkPyBufferPython.o...
> /usr/local/src/itk/Insight/Wrapping/CSwig/Common/itkPyBuffer.txx: In
> constructor `itk::PyBuffer<TImage>::PyBuffer() [with TImage =
> itk::Image<short unsigned int, 3>]':
> /usr/local/src/itk/Insight/Wrapping/CSwig/Common/itkPyBuffer.h:57:
> instantiated from `static itk::SmartPointer<itk::PyBuffer<TImage> >
> itk::PyBuffer<TImage>::New() [with TImage = itk::Image<short unsigned
> int, 3>]'
> /usr/local/src/itk/build-Insight/Wrapping/CSwig/Common/
> wrap_itkPyBufferPython.cxx:1162: instantiated from here
> /usr/local/src/itk/Insight/Wrapping/CSwig/Common/itkPyBuffer.txx:32:
> error: `
> import_libnumarray' undeclared (first use this function)
> /usr/local/src/itk/Insight/Wrapping/CSwig/Common/itkPyBuffer.txx:32:
> error: (Each
> undeclared identifier is reported only once for each function it
> appears
> in.)
> make[5]: *** [wrap_itkPyBufferPython.o] Error 1
> make[4]: *** [default_target] Error 2
> make[3]: *** [default_target_Common] Error 2
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Wrapping_CSwig] Error 2
> make: *** [default_target] Error 2
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list