EDIT: I figured out my mistakes relating to this post. Look here post #20
I have Python 3.1.1 installed in
Code:
$HOME/python/Python-3.1.1-install
I copied the linux2-config.py to the top of the source tree as user-config.py
Code:
cp ~/blender-source/blender/config/linux2-config.py ~/blender-source/blender/user-config.py
In my user-config.py, I edited BF_PYTHON= to match my Python3.1.1 installation. Included here are also the other unedited variables relating to Python
Code:
# user-config.py
<--cut-->
BF_PYTHON = '$HOME/python/Python-3.1.1-install'
BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
BF_PYTHON_VERSION = '3.1'
WITH_BF_STATICPYTHON = False
BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
BF_PYTHON_LIB = BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a' #'python${BF_PYTHON_VERSION}'
BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION}.a'
<--cut-->
However I cannot finish compiling. It complains that it cannot find Python.h. Is there something wrong in my user-config.py? Here is the tail end of the output
Code:
Compiling ==> 'nla.c'
Compiling ==> 'node.c'
source/blender/blenkernel/intern/node.c:31:20: error: Python.h: No such file or directory
scons: *** [/home/kit/blender-source/build/linux2/source/blender/blenkernel/intern/node.o] Error 1
scons: building terminated because of errors.
$
I tried to locate Python.h and here is the output
Code:
$ locate -e Python.h
/home/kit/blender-source/blender/source/gameengine/Expressions/KX_Python.h
/home/kit/blender-source/blender/source/gameengine/Expressions/.svn/prop-base/KX_Python.h.svn-base
/home/kit/blender-source/blender/source/gameengine/Expressions/.svn/text-base/KX_Python.h.svn-base
/home/kit/python/Python-3.1.1/Include/Python.h
/usr/include/python2.6/Python.h
$
Is there something that I'm missing?
Thanks in advance!
Bookmarks