[Insight-users] problem compiling Python/Java wrappers for ITK

Carlos Santos csantos.incor at gmail.com
Wed Jun 29 18:24:33 EDT 2005


Hi all,

I'm having some trouble compiling the Python and Java wrappers for ITK.

I tried compiling the python wrapper with the numarray library (version
1.3.2) enabled and received a message complaining that "import_libnumarray"
had not been defined in file
"InsightToolkit-2.0.1/Wrapping/CSwig/Common/itkPyBuffer.txx". I solved
the
problem by inserting the line "#include <libnumarray.h>" into
"InsightToolkit-2.0.1/Wrapping/CSwig/Common/itkPyBuffer.h". I was then
able to compile the python wrapper normally.

A more serious problem occurred when compiling the Java wrapper. Firstly
the make process stopped with a message saying that "assert(p->ptr)"
had failed on line 47 of
"InsightToolkit-2.0.1/Utilities/CableSwig/SWIG/Source/DOH/memory.c" when
running cswig. As I ran make again to reproduce the error I received a
slightly different message:

/home/csantos/workspace/tools/InsightToolkit-2.0.1/Wrapping/CSwig/Common:
building default_target
Building wrap_itkInPlaceImageFilterJava.cxx from 
/home/csantos/workspace/tools/InsightToolkit-2.0.1/Wrapping/CSwig/Common/wr
ap_itkInPlaceImageFilterJava.cxx...
make[5]: ***
[/home/csantos/workspace/tools/InsightToolkit-2.0.1/Wrapping/CSwig/Common/w
rap_itkInPlaceImageFilterJava.cxx] Terminated
make[5]: *** Deleting file
`/home/csantos/workspace/tools/InsightToolkit-2.0.1/Wrapping/CSwig/Common/w
rap_itkInPlaceImageFilterJava.cxx'
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

I'm using a Cableswig version which I checkout from CVS in Jun.28.2005.
Any help in solving this problem would be appreciated. Follows some info
about my environment:

Suse linux 9.2
gcc        3.3.4
java       1.4.2_06
cmake      2.0.6
python     2.3.4
numarray   1.3.2
glibc      2.3.3
CableSwig  checkout from CVS in Jun.28.2005

Many thanks in advance,

Carlos Santos


More information about the Insight-users mailing list