The index page

Yafray 0.0.9 compiling


3D, 05/14/07
Yafray 0.0.9 did not install on my computer (Ubuntu 6.06). I needed to compile and install from source. I present how I did this, hope it will be to help for others.

Quick install

This is how I did it, and does not necessarily be the best way. But I present it anyway since this is a method that worked and mostly important is tested. You might have heard about the command make to compile programs, however Yafray 0.0.9 uses scons as its compiling utility. I must admit that this was the first time I ever has used this compiling utility.

Step1: preliminaries
Get the sources from Yafray download site and unpack it, also install scons to your distro. I won't go in details here.

Step2: compile & install yafray

> sudo scons install

Step 3: Test it
Yafray might be ready to run now, test it from a terminal be simply using the command yafray. If you get a error message like below, you do not have the libraries in your library path.

yafray: error while loading shared libraries: libyafraycore.so: cannot open shared object file: No such file or directory
Yafray libraries has installed itself in /usr/local/lib and /usr/local/bin. I simply just linked these files from /usr/lib:
> ln -s /usr/local/lib/libyafraycore.so /usr/lib/libyafraycore.so
> ln -s /usr/local/lib/libyafrayplugin.so /usr/lib/libyafrayplugin.so
> ln -s /usr/local/lib/yafray /usr/lib/yafray

Step 4: Try again
Type yafray again in a terminal. If you get error messages now, you got to figure out what to do on your own.

Step 5: Blender
First of all select yafray as your renderer in the render panel (F10): If blender crash when you try to render you must let blender call yafray by a system call and not the plugin. Note that you will not see the progress of the rendering in the preview window. To do this go to yafray settings: