make problems(ubuntu 9.10)

Asked by Sophie

I ran into several problems when installing pytave.
After running "./configure" on Ubuntu 9.10, I got the following errors when running "make"

/bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I/usr/include/octave-3.0.5 -I/usr/include/python2.6 -I/usr/lib/python2.6/dist-packages/numpy/core/include -g -O2 -MT _pytave_la-octave_to_python.lo -MD -MP -MF .deps/_pytave_la-octave_to_python.Tpo -c -o _pytave_la-octave_to_python.lo `test -f 'octave_to_python.cc' || echo './'`octave_to_python.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I/usr/include/octave-3.0.5 -I/usr/include/python2.6 -I/usr/lib/python2.6/dist-packages/numpy/core/include -g -O2 -MT _pytave_la-octave_to_python.lo -MD -MP -MF .deps/_pytave_la-octave_to_python.Tpo -c octave_to_python.cc -fPIC -DPIC -o .libs/_pytave_la-octave_to_python.o
octave_to_python.cc: In function ‘PyArrayObject* pytave::octvalue_to_pyarrobj(const octave_value&)’:
octave_to_python.cc:207: error: ‘FloatComplex’ was not declared in this scope
octave_to_python.cc:207: error: ‘FloatComplexNDArray’ was not declared in this scope
octave_to_python.cc:208: error: ‘const class octave_value’ has no member named ‘float_complex_array_value’
octave_to_python.cc:210: error: ‘FloatNDArray’ was not declared in this scope
octave_to_python.cc:211: error: ‘const class octave_value’ has no member named ‘float_array_value’
make[1]: *** [_pytave_la-octave_to_python.lo] error 1
make[1]: leaving directory `/home/feather/work/openmih/pytave'
make: *** [all] error 2

I have installed all the dependencies and "./configure"ran smoothly.
also tried command sudo python setup.py install

running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/pytave
copying ./package/pytave.py -> build/lib.linux-i686-2.6/pytave
copying ./package/__init__.py -> build/lib.linux-i686-2.6/pytave
running build_ext
building 'pytave/_pytave' extension
creating build/temp.linux-i686-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_CONFIG_H=1 -I/usr/include/octave-3.0.5 -I/usr/lib/python2.6/dist-packages/numpy/core/include -I/home/feather/work/openmih/pytave -I. -I/usr/include/python2.6 -c ./octave_to_python.cc -o build/temp.linux-i686-2.6/./octave_to_python.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
./octave_to_python.cc: In function ‘PyArrayObject* pytave::octvalue_to_pyarrobj(const octave_value&)’:
./octave_to_python.cc:207: error: ‘FloatComplex’ was not declared in this scope
./octave_to_python.cc:207: error: ‘FloatComplexNDArray’ was not declared in this scope
./octave_to_python.cc:208: error: ‘const class octave_value’ has no member named ‘float_complex_array_value’
./octave_to_python.cc:210: error: ‘FloatNDArray’ was not declared in this scope
./octave_to_python.cc:211: error: ‘const class octave_value’ has no member named ‘float_array_value’
error: command 'gcc' failed with exit status 1

Thanks for any suggestions.

Question information

Language:
English Edit question
Status:
Solved
For:
Pytave Edit question
Assignee:
No assignee Edit question
Solved by:
Sophie
Solved:
Last query:
Last reply:
Revision history for this message
David Grundberg (individ) said :
#1

Hi Sophie,

what versions are you running of Pytave and Octave? Looks like your linking Pytave against Octave 3.0.5. Remember, the Pytave trunk has been developed and requires Octave 3.2 (or the development sources).

hth
David

Revision history for this message
Sophie (wangsoftware) said :
#2

Hi David,

Your are right about the Octave version. I installed Octave3.0.5 according to the project requirement which seems to be out of date. Pytave should be revision 44.
 I'm going to try again with Octave 3.2 and see if it works out this time.
 I appreciate your advise.

Sophie

Revision history for this message
Sophie (wangsoftware) said :
#3

Hi David,
Thank you very much.The problem is solved.