zml
zml

Reputation: 637

Building Blender on Fedora 20, OSL compilation failed

When trying to build Blender on Fedora 20, I got the following error when running the install_deps.sh script:

Linking CXX shared library liboslexec.so
[ 81%] Built target oslexec
make: *** [all] Error 2
ERROR! OpenShadingLanguage-1.5.11 failed to compile, exiting

Does anyone know how to fix this compilation error ?

Upvotes: 0

Views: 520

Answers (1)

sambler
sambler

Reputation: 7079

You'll need more information. The install_deps.sh script will download and compile each library for you, you should be able to find the OSL source files, and manually try building it.

As it is a linking error chances are a library (or required version) is missing, or not where it is expected to be found.

From the OSL build directory you can run ccmake and under advanced options you will find CMAKE_VERBOSE_MAKEFILE that when enabled will add more detail to the output.

After a quick look at the script, you should find a folder called $HOME/src/blender-deps/OpenShadingLanguage-1.5.11/build where you can run ccmake ../ or you can run cmake-gui if you have it installed and point it at that folder, and then run make.

Upvotes: 1

Related Questions