giovedì 12 maggio 2011



«Compilare "Blender" utilizzando SCons su Debian/Ubuntu 64 Bit».

Alla fine della descrizione, i link alle Guide Ufficiali di Blender, e il Download alla attuale release stabile».


*** Blender 2.5x SVN 64 bit compiled with SCons ***

svn co https://svn.blender.org/svnroot/bf-blender/trunk/blender

64bit needs "gettext"

>>> Install dependencies:

# apt-get install subversion build-essential gettext libxi-dev libsndfile1-dev libpng12-dev libfftw3-dev libopenexr-dev libopenjpeg-dev libopenal-dev libalut-dev libvorbis-dev libglu1-mesa-dev libsdl-dev libfreetype6-dev libtiff4-dev libsamplerate0-dev libavdevice-dev libavformat-dev libavutil-dev libavcodec-dev libjack-dev libswscale-dev libx264-dev libmp3lame-dev scons libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev

>>> Install python 3.2

Get the Python 3.2 source from http://www.python.org/download/releases/3.2 and Extract the Python 3.2 source.

:~$ wget -c http://www.python.org/ftp/python/3.2/Python-3.2.tgz && tar -xvf Python-3.2.tgz

# In the folder where you extracted Python 3.2 source open a terminal and type (note, /usr/local/Py32 is just an example):

./configure --prefix="/usr/local/Py32"

by default Py3.X doesn't build zlib, and some addons in blender (ie:luxblend) need it so make sure to install zlib and zlib-dev libraries in your system and then uncomment the following line

"zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz"

in the Modules/Setup file in the python source

1. Now type:

make
sudo make install

2. Later you will need to setup your blender build system (cmake or scons) to find your Python 3.2 build.


# make 3.2 the default python system wide (number 1 at the end stays there)
sudo update-alternatives --install /usr/bin/python python /usr/local/Py32

# ensure various versions of python play nice with each other
sudo update-alternatives --config python

*** Setting Python Path in SCons ***

Scons needs to know the Python 3.2 installation path. If your distro already uses Python 3.2, you probably don't need to do anything.

In case you have compiled your own Python in

/usr/local/Py32

go in in your user-config.py file and change the following :

BF_PYTHON = '/usr/local'
BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
BF_PYTHON_VERSION = '3.2'
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'
BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION}.a'

into :

SUFFIX = "m" # may be any combination of 'dmu'
BF_PYTHON = '/usr/local/Py32'
BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
BF_PYTHON_VERSION = '3.2'
BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}' + SUFFIX
BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' + SUFFIX
BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic', '-ltk8.5', '-ltcl8.5', '-lz']
BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION}' + SUFFIX + '.a'

Note that this is an example, use your own Python 3.2 installation path (use the absolute path!). By default the file user-config.py does not exist. You have to create a file called user-config.py in the root directory of the Blender source. All the configuration in this file will override the ones in your Scons config file (for example, linux2-config.py).

>>> Compile Blender

cd ~/blender-build/blender
python scons/scons.py

Done!

Tip of the day:

«Everytime I need to update my SVN build I type into my ~/blender-build/blender the command "svn up" and I rebuild the source with "python scons/scons.py"».

***

29-Apr-2011 - 11.21 - build revision r36380M

Official Blender Troubleshooting Guides Here:

http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Linux

http://wiki.blender.org/index.php?title=Dev:2.5/Doc/Building_Blender/Linux/Ubuntu/Scons

http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Linux/Troubleshooting

Original Article Here:

Follow the Download of my latest Build (It works only with Linux 64 bit):


Try it at your own risk... Or get the Official Build:

http://www.blender.org/download/get-blender/

Unuseful Beat 100 BPM The Black Side - The Black Lotus House - Performed by Patrizio Melis and The Black Lotus House on the early of 21.08.2010


The Land Lubber Under Low Waters - The Black Lotus House - Performed by Patrizio Melis and The Black Lotus House on the early of 30.08.2010


The Smile Of Pomegranate - The Black Lotus House - Performed by Patrizio Melis and The Black Lotus House on the early of 14.07.2010 - The Black Lotus House is © by Patrizio Melis


Narcosis - The Black Lotus House - Performed by Patrizio Melis and The Black Lotus House on the early of 19.08.2010


Sopportabile Tenerezza - -​ Per­for­med by Pa­tri­zio Me­lis - The Black Lo­tus Hou­se on the ear­ly of 08.08.2010 - The Black Lotus House is © by Patrizio Melis

Hosting Density (Ft. Black Hill Inverted) - The Black Lotus House - Performed by Patrizio Melis and The Black Lotus House on the early of 29.08.2010