Previous Thread  Next Thread

chat icon Problem build blender 2.6a in python module

chatzich

Posted: Mon Dec 05, 2011 6:59 pm
Joined: 05 Dec 2011
Posts: 2
Hi folks i am newbie in blender and i am try to build it in linux ubuntu 11.04 64bit and i got the following error

Linking CXX shared library ../../bin/bpy.so
/usr/bin/ld: /usr/local/lib/libpython3.2m.a(abstract.o): relocation R_X86_64_32S against `_PyObject_NextNotImplemented' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython3.2m.a: could not read symbols: Bad value
collect2: ld returned 1 exit status


can anyone tell my what's wrong?
Thanx at progress
Reply with quote


stiv

Posted: Mon Dec 05, 2011 7:17 pm
Joined: 05 Aug 2003
Posts: 3493
Either your python or your blender is not being compiled with the -fPIC flag (for position independent code).
Reply with quote


chatzich

Posted: Mon Dec 05, 2011 7:21 pm
Joined: 05 Dec 2011
Posts: 2
stiv wrote:
Either your python or your blender is not being compiled with the -fPIC flag (for position independent code).

So if I compile python with -fPIC option will solve the problem???
Reply with quote


ldo

Posted: Sat Feb 25, 2012 3:35 am
Joined: 07 Nov 2010
Posts: 544
Any reason why you have a custom Python build (/usr/local/lib) instead of using the distro-provided one (/usr/lib)?
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group