// you’re reading...

Blog

Compiling production ready Blender 3D and Cinelerra nonlinear video editor in Fedora

Rajiv

Rajiv

Compiling your own latest and greatest application from daily builds has its own advantage, in that they often are more up-to-date than the one shipped by the OS.

Compiling Blender 3d and Cinelerra non-linear video editor, Gimp and other encoding utilities is infact quite easy.

Follow these steps (I am using Fedora 10 64 sorry I have issues with 11)

(If you have newly installed fedora from a livecd which does not come with the development files, do the following.)

Step1

First and foremost activate the necessary repositories by opening the terminal.

type su

supply the password

and now you are in the root ready to install all the necessary things.

Step2

In the root (terminal) type

|

rpm -Uvh http://rpm.livna.org/livna-release.rpm  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm  http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

|

and then

|

rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

|

Step3

To install the build dependencies: Type in the terminal or simply copy and paste this and press enter

|

sudo yum install scons make subversion gcc gcc-c++ gcc-objc++ kino kino-devel dvgrab a52dec-devel a52dec alsa-lib-devel alsa-lib faac-devel faac faad2-libs faad2-devel faad2 fftw-devel fftw-static fftw fftw2-devel fftw2 lame-devel lame-libs lame twolame twolame-devel twolame-libs libavc1394-devel libavc1394 libiec61883-utils libiec61883 libiec61883-devel libraw1394-devel libraw1394 libsndfile libsndfile-devel libvorbis-devel libvorbis libogg-devel libogg liboggz-devel liboggz libpng-devel libpng libpng10-devel libpng10 libjpeg-devel libjpeg libjpeg-static libtiff-devel libtiff libtiff-static tritonus-esd esound-devel esound-libs freetype-devel freetype freetype-freeworld freetype1-devel freetype1 freetype1-utils mjpegtools-libs mjpegtools-devel mjpegtools y4mscaler OpenEXR-devel OpenEXR x264-libs x264 x264-devel gettext-devel gettext gettext-libs automake autoconf libtool libdv-devel libdv amrnb-devel amrnb amrwb-tools binutils-devel binutils arm-gp2x-linux-binutils mingw32-binutils gsm gsm-devel yasm zlib-devel bzip2-devel dbus-glib-devel hal-devel libnotify-devel gstreamer-devel gstreamer-plugins-base-devel gstreamer-plugins-bad-devel gstreamer-plugins-bad-extras gstreamer-ffmpeg gstreamer-plugins-good-devel gstreamermm-devel gstream-devel SDL-devel libzip libzip-devel ftgl ftgl-devel ffmpeg ffmpeg-devel ffmpeg-libs freealut openal openal-soft openal-soft-devel AllegroOGG ode ode-devel libXi libXi-devel libsamplerate libsamplerate-devel jack-audio-connection-kit jack-audio-connection-kit-devel xine-lib-extras qjackctl mplayer avidemux transcode audacious vnc mesa-libGL-devel libX11-devel libtheora libtheora-devel xvidcore xvidcore-devel gstreamer-plugins-bad gstreamer-plugins-ugly xine-lib-extras-nonfree vlc mencoder xine xine-lib libdvdcss ntfs-3g libdvdnav libdvdnav-devel totem-xine xine-lib-extras-freeworld kernel-devel kernel-headers libdvdread libdvdread-devel WebKit-gtk WebKit-gtk-devel aubio-devel boost-devel cwiid-devel desktop-file-utils gtkmm24-devel libcurl-devel libgnomecanvas-devel libgnomecanvasmm26-devel liblo-devel liblrdf-devel libsamplerate-devel libusb-devel libxslt-devel pkgconfig slv2-devel soundtouch-devel hicolor-icon-theme expat-devel flac-devel ladspa-devel libid3tag-devel vamp-plugin-sdk-devel zip libmad-devel openssl-devel python-devel xorg-x11-proto-devel libGL-devel libGLU-devel openjpeg-devel qhull-devel shared-mime-info dejavu-fonts shadow-utils aalib-devel babl-devel cairo-devel curl-devel fontconfig-devel gegl-devel glib2-devel gnome-keyring-devel gnome-vfs2-devel gtk2-devel gtk+ gtk+-devel gegl GConf2-gtk gtk-doc gtkhtml2-devel libexif-devel libgnomeui-devel libjpeg-devel libmng-devel librsvg2-devel libwmf-devel pango-devel poppler-glib-devel poppler-devel pygtk2-devel pygobject2-devel enchant enchant-devel libXmu-devel xorg-x11-server-devel sed intltool findutils lcms-devel gimp-libs glib2 gtk2 pango fontconfig gutenprint gutenprint-plugin gimp-print-plugin pygtk2 xml2 xdg-utils doxygen readline-devel ncurses-devel autoconf automake libfreebob-devel gimp-devel-tools gimp-devel fftw3-devel gtkglext glew gtkglext-devel glew-devel e2fsprogs audiofile nasm git libXt-devel libXv-devel libXxf86vm-devel libXext-devel libuuid e2fsprogs-devel python-numdisplay protobuf-python protobuf protobuf-compiler protobuf-devel fltk fltk-devel gdbm-devel tkinter tcl-devel tk-devel

|

Now it should install all the needed dependencies for a proper compilation.

These next steps are crucial and so follow them closely.

Step4

Open a new terminal and create a folder ‘Blender’ in the default home directory by typing

|

mkdir Blender

|

To enter the folder type:

|

cd Blender

|

Step5

Once inside the folder copy and paste these and then press enter.

|

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

|

It will now create a folder ‘blender’ inside your newly created ‘Blender” directory and copy the latest (daily source build) into that folder.

Step6

next type

|

cd blender

|

This will take you into the (daily build) blender directory.

You can now type ‘scons‘ and it should start compiling your own blender.

Once the compilation is over, it will create two folders in the Blender directory. ‘build’ and  ‘install’. So now you have three folders there ‘blender’ ‘build’ and ‘install’

Your new blender will be in the ‘install’ folder.

Step7

To navigate to this folder do this:

Type cd ~/Blender

and then cd /install/linux2/

This will take you to your new blender build.

To run blender type ./blender

You may have noticed that creating the blender (daily) build takes quite some time and uses only one cpu, if your machine a dual or quad, you can speed up your daily compiles. To speed up the daily compiles do the following.

Step8

Copy and paste the following in the text editor and save it as “user-config.py”. place the file in the blender directory (same place where SConstruct resides), that is the /home/your-user-name/Blender/blender/

|
BF_NUMJOBS = '4'
#BF_OPENAL_LIB = 'openal alut'
#BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib64'
WITH_BF_OPENMP = 'true'

|

Now your compilation will use all the available cpu’s, as well your build will be multiprocessor aware.

If  you just want to have some fun and speed, you can optimize your builds to be as fast as possible. This will seedup your project rendering speed and you may see a gain of 30 to 40 percent depending on your hardware. But beware that these optimization sometimes introduce strange artifacts so use these at your own risk and never use them in a production environment.

If you still want that ultra speed renders, add these to the above and save. Now you can compile your ultrafast blender in Fedora10_64

|

WITH_BF_INTERNATIONAL = 'true'
WITH_BF_ELBEEM = 'true'
WITH_BF_VERSE = 'true'
WITH_BF_YAFRAY = 'true'
WITH_BF_GAMEENGINE='true'
WITH_BF_BULLET = 'true'
WITH_BF_PLAYER = 'true'
WITH_BF_ODE = 'true'
WITH_BF_JPEG = 'true'
WITH_BF_PNG = 'true'
WITH_BF_OPENEXR = 'true'
WITH_BF_FTGL = 'true'
WITH_BF_FMOD = 'true'
WITH_BF_FFMPEG = 'true'
WITH_BF_QUICKTIME = 'false'
WITH_BF_OPENAL = 'true'
WITH_BF_SDL = 'true'
WITH_BF_ICONV = 'false'
WITH_BF_STATICOPENGL = 'false'
BF_PYTHON_VERSION = '2.5'
BF_DEBUG = 'false'
BF_TWEAK_MODE = 'false'


CCFLAGS = ['-pipe','-fPIC','-march=native','-mtune=native','-msse','-msse2','-msse3','-mssse3','-mmmx','-mfpmath=sse','-funsigned-char','-fno-strict-aliasing']
CXXFLAGS = ['-pipe','-fPIC','-march=native','-mtune=native','-msse','-msse2','-msse3','-mssse3','-mmmx','-mfpmath=sse','-funsigned-char','-fno-strict-aliasing']
REL_CFLAGS = ['-O3','-fomit-frame-pointer','-funroll-loops']
REL_CCFLAGS = ['-O3','-fomit-frame-pointer','-funroll-loops']

|

to create fresh compile do the folowing

Open a fresh terminal and navigate to the blender directory by typing cd Blender

and repeat Step5

:)

Next we will compile Cinelerra non-linear video editor and some audio video encoding utilities as well as Gimp.

Also how to install nvidia Drivers

Stay tuned

Discussion

No comments for “Compiling production ready Blender 3D and Cinelerra nonlinear video editor in Fedora”

Post a comment