Building Blender in Ubantu

Hi Guys,

I have been trying to build blender as python module for a while now on various OS’s and unfortunately i have been unsuccessful.

I am receiving this error on Ubantu:

Linking CXX shared module …/…/bin/bpy.so
/usr/bin/ld: /opt/lib/python-3.3/lib/libpython3.3m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct’ can not be used when making a shared object; recompile with -fPIC
/opt/lib/python-3.3/lib/libpython3.3m.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [bin/bpy.so] Error 1
make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

Any help is appreciated because I am losing hope. Please let me know if we have to repost this question on another thread?

Thanks,

I think no one look at this thread because your title is wrong. It is UBUNTU not UBANTU. I am facing the same problem. No solution yet.

Hello,

same problem here building python module bpy.so on Centos6:


[100%] Generating /usr/local/blender-2.69/source/creator/buildinfo.h
– Found Subversion: /usr/bin/svn (found version “1.6.11”)
[100%] Built target buildinfo
Scanning dependencies of target blender
[100%] Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o
make[3]: *** No rule to make target /opt/lib/python-3.3/lib/libpython3.3m.a', needed bybin/bpy.so’. Stop.
make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

Help will be greatly appreciated after several hours spent trying to get bpy.so.

Any suggestions?

Is there an official, tested howto / guide / wiki for Centos6?

Thanks.

I found a solution, in my case, I download and install Python 3.3 as described here.
Prior make I did ./configure --enable-shared --prefix=/opt/python3.3
Once python is successfully installed, configure cmake to find in the location where you installed python3.3 with --enable-shared argument.
I was able to compile python module this way.
All the best.

@by8

Have you tried to disable buildinfo from cmake config?
-ikel