January 25, 2011

Compile Blender 2.56 on Fedora 13 and 14

To have Blender 2.56 successfully running on Fedora 13 and Fedora 14 you need to compile it from source.
This is not as hard as most people would think if you follow these simple instructions.

  1. Install needed package dependencies
  2. Download Blender source
  3. Edit scons config file (WITH_BF_FFMPEG = False)
  4. Compile Blender
  5. Run Blender

So lets start with first step:
UPDATE: There were two dependencies missing: gettext and gettext-devel

su -

yum install gcc-c++ subversion esound-devel freeglut-devel libjpeg-devel libogg-devel libpng-devel libtool libvorbis-devel freealut-devel openssl-devel python3-devel scons SDL-devel zlib-devel libtiff-devel libXi-devel xorg-x11-proto-devel libGL-devel libGLU-devel freetype-devel OpenEXR-devel glew-devel libsamplerate-devel fftw-devel ftgl-devel ode-devel openjpeg-devel qhull-devel gettext gettext-devel -y

  Second step is also really easy:
cd ~ mkdir blender-build cd blender-build svn co https://svn.blender.org/svnroot/bf-blender/trunk/blender
  Edit scons config file Just open Linux config file, find line with "WITH_BF_FFMPEG = True" and change it to "WITH_BF_FFMPEG = False":
gedit blender/build_files/scons/config/linux2-config.py

Now compile Blender:

cd blender python scons/scons.py

Running Blender
After compilation blender binary executable file is located in ~/blender-build/install/linux2/blender. So just create symbolic link to it:

ln -s ~/blender-build/install/linux2/blender ~/blender-build/blender/
  When you start Blender you should see something like this in terminal:
$ ./blender Info: Config directory with "startup.blend" file not found. found bundled python: /home/liveuser/blender-build/install/linux2/2.56/python