Current stable version: 0.1.1

Build from sources

Building YafaRay

The code is still in the subversion repository where Lynx started it all:
https://ssl.little-isp.de/svn/lynx/yafaray

To checkout, you will need Subversion ("svn"). The actual render core is in the mainline tree, and the blender export in the blender tree.

Note: The code is mainly tested on Linux (32 and 64bit) and Windows (32bit) and OS X (intel). Other platforms may require some work on configurations. For additional information about customization etc. please read the "INSTALL" in the source tree

  1. Get YafaRay, the render code:

    svn co svn://svn.yafaray.org/repo/yafaray/mainline yafaray

    The last argument is the name of your local directory that should be created. If you omit it, it becomes the last subdir of the path (i.e. "mainline" here). Compiling YafaRay goes via scons. Note that you need at least scons 0.98 now, version 1.2 recommended!

  2. For building the Python bindings (to use YafaRay from blender without source code manipulations) you will also need SWIG
  3. If you want to build the Qt GUI, you need to enable Qt by adding WITH_YF_QT='true' in your user-config.py (if it does not exist, then create it). Recomended Qt version: 4.5.1+
  4. The list of libraries you need for a build with all features enabled became a bit longer though. Currently these are:
  5. The basic commands to scons are:
    scons or scons build : builds the binaries
    scons swig : build the Python bindings, found in bindings/python afterwards (do not forget to install swig before you do this)
    scons install : install the binaries to your file system (*nix) or copy to win32pak for building an installer (windows)

  6. If you are using the Visual Studio 8 Compiler, you can now get all libraries except Qt precompiled in SVN too:
    svn co https://ssl.little-isp.de/svn/lynx/yafaray/libs

    They were all (except libjpeg, which is from the old yafray repository) compiled with MSVC8 using dynamic runtime.

    On Windows, the librariess directory is assumed to be on the same level as the directory containing the sources. To achieve this, do the checkout commands in the same directory, for example if you do it in "C:\SomeDir" it should look something like:
    C:\SomeDir\yafaray
    C:\SomeDir\libs

  7. On Linux, you should have no problem getting all the libraries via your package manager, as they are all used in well established linux applications. Just don't forget to install the developer versions (for headers and libraries) too.

Blender export Python scripts.

The Python export scripts for Blender can be checked out with:
svn co svn://svn.yafaray.org/repo/yafaray-blender/mainline python

These scripts together allow the export from Blender. The scripts should be installed like this:

  • Linux
    Copy all scripts from the above source and the Python binding modules (all files from yafaray/bindings/python -- only available after you issued scons swig, see above) into either
    ~/.blender/scripts/yafaray
    or
    /usr/share/yafaray/blender/ (for a installation for all users). In the latter case, each user should copy the script yafaray_ui.py into ~/.blender/scripts (or you install it also globally, but must then ensure that Blender reads the directory you copy the script to as its script directory).