Re: HOWTO: Compile Blender 2.5 SVN
Hello!
Before attempting to follow this HOWTO, I asked around at #python about upgrading to Python 3.1.1 in Jaunty.
These things I only learned from there:
An important thing to note is that Jaunty uses Python 2.6 as a system default. According to their advice, this command could cause problems
Code:
sudo make install # may cause problems
So instead of that, it should be
Code:
sudo make altinstall
Re: HOWTO: Compile Blender 2.5 SVN
hey thanks for all skseeker but it doesn't work.its still causing Segmentation fault's .When i try to start it from terminal by writing ./blender from /install/linux2 is says no such file or directory . I've done every thing .is it causing because my displaycard is on board ?.
.i'm 3ds max creator but ive changed my OS to linux and im trying to learn blender .
So Please Help Me !! my OS is Ubuntu 9.04 jaunty
Re: HOWTO: Compile Blender 2.5 SVN
Quote:
Originally Posted by
Labello
Well it did actually work but performance is soooo bad. about 1FPS. the blender from karmic repos works without such an issue.
Blender from karmic repos is version 2.49a v.2.5 still under active development...
Re: HOWTO: Compile Blender 2.5 SVN
i have been downloading "latest blender builds" from graphicall.org - look for builds by Fish, they are compiled on 9.04 - after installing python as above, i just unpack those builds and run blender direct from that directory. no problems.
Re: HOWTO: Compile Blender 2.5 SVN
srry man but its still causing segmentation fault .Guess i've done something wrong back there . i'll try to fix it
Re: HOWTO: Compile Blender 2.5 SVN
just an idea to keep you going. if you are wanting to learn blender, you could run v2.49 (which i think is in the jaunty repos)...until you can get 2.5 working. 2.5 is pretty different but the basic priciples are still the same. also, there are a lot of features in 2.5 which are not working yet, so that could be frustrating.
Re: HOWTO: Compile Blender 2.5 SVN
yeah but i'm still don't know how to work blender 2.49a or 2.49b in Ubuntu 9.04 any suggestions
Re: HOWTO: Compile Blender 2.5 SVN
i found it how stuped i m i skiped this error
see
PHP Code:
/usr/bin/ld: cannot find -lgettextlib
collect2: ld returned 1 exit status
scons: *** [/home/bagi/build/linux2/bin/blender] Error 1
scons: building terminated because of errors.
it caused while scons
and what is -gettextlib
help pls
im bit new in linux
Re: HOWTO: Compile Blender 2.5 SVN
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!
Re: HOWTO: Compile Blender 2.5 SVN
I figured out my mistakes
Quote:
Originally Posted by
mo0nykit
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}'
<--cut-->
Here is the correct one. Note BF_PYTHON and BF_PYTHON_LIB
Code:
# user-config.py
<--cut-->
BF_PYTHON = '/home/kit/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 = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
<--cut-->