Register    Login    Forum    Search    FAQ

Board index » FANN » Bugs




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Error compiling Python bindings on Linux 64-bit machine
 Post Posted: Wed Oct 14, 2009 6:51 pm 
Offline

Joined: Wed Oct 14, 2009 6:45 pm
Posts: 1
I was able to compile and install FANN, but when I try to run make for the Python bindings I get the an error. Here is the output from the make command:

Running SWIG before: swig -c++ -python pyfann/pyfann.i
running build
running build_py
copying pyfann/libfann.py -> build/lib.linux-x86_64-2.5/pyfann
running build_ext
building 'pyfann._libfann' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_COMPILE -I../src/include -I/usr/include/python2.5 -c pyfann/pyfann_wrap.cxx -o build/temp.linux-x86_64-2.5/pyfann/pyfann_wrap.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
g++ -pthread -shared build/temp.linux-x86_64-2.5/pyfann/pyfann_wrap.o ../src/doublefann.o -L/usr/lib -lpython2.5 -o build/lib.linux-x86_64-2.5/pyfann/_libfann.so
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: ../src/doublefann.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../src/doublefann.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
make: *** [build-stamp] Error 1


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 1 post ] 

Board index » FANN » Bugs


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: