Error when building in 64-bit..

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

pep
Posts: 0
Joined: Wed Dec 16, 2009 7:58 pm
Location: Costa Rica

Post by pep »

stiv wrote: It is a common mistake to run back and forth between the various build systems without taking the time see how to set them up for your configuration.

Actually i was using cmake, that's why i looked in blender-svn/blender/CMakeLists.txt, but couldn't find the string lib/python3.1 and there are several lines about python configuration...

Before messing with CMakeLists.txt, should i try to build with scons?

I already resolved how to test a recent version, problem that fired the need to build blender. I could manage to run the builds from Graphicall
http://www.graphicall.org/builds/index.php

correcting problems with openAL and pulseaudio as in
http://wiki.blender.org/index.php/Dev:D ... /2.5/Linux

But i still would like to learn building blender for my machine.
So, as always, any help would be very appreciated

pep
Posts: 0
Joined: Wed Dec 16, 2009 7:58 pm
Location: Costa Rica

Post by pep »

stiv wrote:It is a common mistake to run back and forth between the various build systems without taking the time see how to set them up for your configuration.
Quite true !
Reading carefully at http://wiki.blender.org/index.php/Dev:D ... /2.5/Linux i found
* Update CMakeCache.txt file like this:

//Missing description
PYTHON_INC:STRING=/opt/py31/include/python3.1

//Missing description
PYTHON_LIB:STRING=/opt/py31/lib/libpython3.1.a

//Missing description
PYTHON_LIBPATH:STRING=/opt/py31/lib
for PYTHON_INC:STRING=/opt/py31/include/python3.1
i didn't make any change, as in SUSE 11.2 there is a /usr/include/python3.1 directory

for PYTHON_LIB:STRING=/opt/py31/lib/libpython3.1.a
i changed with libpython3.1.so as there is no libpython3.1.a and a change with libpython3.1.so.1.0 brings an error during compilation (in /usr/lib64 i found both files) and

for PYTHON_LIBPATH:STRING=/opt/py31/lib
i changed with /usr/lib64

now it finish compilation and builds Blender in /blender-svn/blender/cmake-make/bin but, when i try to run it, i get

found bundled python: /home/pep/blender-svn/blender/cmake-make/bin/.blender/python
Fatal Python error: Py_Initialize: can't initialize sys standard streams
ImportError: No module named encodings.utf_8
Aborted

and no Blender. Any suggestion?

Post Reply