← Back to team overview

yade-users team mailing list archive

[Question #259104]: Problem with libpython when compiling from source

 

New question #259104 on Yade:
https://answers.launchpad.net/yade/+question/259104

Hello,

I'm trying to compile Yade-1.05 on my PC and the compile process give me this error:

...
[  5%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/moc_OpenGLManager.cxx.o
Linking CXX shared library lib/x86_64-linux-gnu/_GLViewer.so
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [gui/lib/x86_64-linux-gnu/_GLViewer.so] Error 1
make[1]: *** [gui/CMakeFiles/_GLViewer.dir/all] Error 2
make: *** [all] Error 2
...

and the compilation stop. And I don't know how to fix this.
I'm using Ubuntu 12.04, and yadedaily works well. The reason I want to use Yade-1.05 is because I want to reuse some saved models (xml.gz) from another computer which uses Yade-1.05.

Thanks for considering my request.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.