[Bf-committers] Build error
Sergey Sharybin
sergey.vfx at gmail.com
Sun Jun 24 00:45:50 CEST 2012
Installed OpenSUSE 12.1 and successfully built recent trunk of Blender
there.
All i've done is based on existing documentation of building blender for
OpenSUSE:
http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Linux/OpenSUSE/CMake
Apparently, there's no FFmpeg in standard OpenSUSE repository, so what is
need is
to add extra repository:
$ sudo zypper addrepo http://packman.jacobs-university.de/suse/12.1/ packman
Then installed all needed dependencies:
$ sudo zypper install subversion gcc gcc-c++ libSDL-devel openal-soft-devel
libpng-devel \
libjpeg-devel python3-devel libtiff-devel OpenEXR-devel boost-devel \
python-devel glew-devel cmake
Then it's easier to compile OpenImageIO for this particular distro
(wouldn't cause any
issues like non-working jpeg textures which happens on Ubuntu).
Sources of OIIO could be found here:
https://sites.google.com/site/openimageio/
After download, run in the terminal:
$ tar -xf OpenImageIO-oiio-Release-1.0.6-1-g8088d01.tar.gz
$ cd OpenImageIO-oiio-8088d01
$ mkdir build
$ cd build
$ cmake \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/opt/lib/oiio-1.0.6 \
-D BUILDSTATIC=ON \
-D CMAKE_CXX_FLAGS:STRING="-fPIC" \
../src
$ make
$ sudo make install
Then it's needed to clone Blender's svn to somewhere on local machine:
$ svn co https://svn.blender.org/svnroot/bf-blender/trunk/blenderblender-svn
$ mkdir build-blender
$ cmake \
-D CMAKE_BUILD_TYPE=Release \
-D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio-1.0.6 \
../blender
$ make install
And voila, ./bin/blender works perfectly.
P.S. OpenJpeg was currently disabled, would check on if it does work and
why if not tomorrow.
--
With best regards, Sergey Sharybin
More information about the Bf-committers
mailing list