[Insight-users] error building cvs py wrappers

John Hunter jdhunter at ace.bsd.uchicago.edu
Thu Apr 7 17:34:11 EDT 2005


>>>>> "Brad" == Brad King <brad.king at kitware.com> writes:


    Brad> This is a bug in the CVS version of CableSwig that was
    Brad> introduced yesterday and fixed this morning.  You just had
    Brad> bad luck when you checked it out.  Just update.

Thanks -- that worked.

Now on to the next problem :-)

I turned on the ITK_USE_PYTHON_NUMARRAY option and specified the
correct path to arrayobject.h for PYTHON_NUMARRAY_INCLUDE_DIR in the
cmake configure step, and now get a build error

/home/jdhunter/python/cvs/Insight/Wrapping/CSwig/CommonA/itkPyBuffer.txx:32: error: `
   import_libnumarray' undeclared (first use this function)


Building CXX object _ITKCommonAPython.dir/wrap_ITKCommonAPythonPython.o
Generating wrap_ITKPyUtilsPython.cxx
Building CXX object _ITKCommonAPython.dir/wrap_ITKPyUtilsPython.o
Generating wrap_itkPyBufferPython.cxx
Building CXX object _ITKCommonAPython.dir/wrap_itkPyBufferPython.o
/home/jdhunter/python/cvs/Insight/Wrapping/CSwig/CommonA/itkPyBuffer.txx: In
   constructor `itk::PyBuffer<TImage>::PyBuffer() [with TImage =
   itk::Image<unsigned char, 3>]':
/home/jdhunter/python/cvs/Insight/Wrapping/CSwig/CommonA/itkPyBuffer.h:57:   instantiated from `static itk::SmartPointer<itk::PyBuffer<TImage> > itk::PyBuffer<TImage>::New() [with TImage = itk::Image<unsigned char, 3>]'
/home/jdhunter/python/cvs/Insight/Wrapping/CSwig/CommonA/wrap_itkPyBufferPython.cxx:1192:   instantiated from here
/home/jdhunter/python/cvs/Insight/Wrapping/CSwig/CommonA/itkPyBuffer.txx:32: error: `
   import_libnumarray' undeclared (first use this function)
/home/jdhunter/python/cvs/Insight/Wrapping/CSwig/CommonA/itkPyBuffer.txx:32: error: (Each
   undeclared identifier is reported only once for each function it appears
   in.)
make[5]: *** [_ITKCommonAPython.dir/wrap_itkPyBufferPython.o] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all__home_jdhunter_python_cvs_Insight_Wrapping_CSwig_CommonA] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all__home_jdhunter_python_cvs_Insight_Wrapping_CSwig] Error 2
make: *** [all] Error 2
peds-pc311:~/python/cvs/Insight> cd /home/jdhunter/python/cvs/In

Any ideas?

Thanks,
JDH


More information about the Insight-users mailing list