How to build Cycles

How do you build cycles? I’ve tried the instructions in the blender wiki, but the build won’t render. Other methods result in complie/build errors. Has anyone been able to successfully build it recently?

Post errors here. Basics, if you got compiled Cycles, run it from command line and read any errors. Usually it some missed dependences . FYI, last svn change (39147) on Fedora 15, works fine here.

[withdrawn]

Took another shot at it- Worked a week ago, but render didn’t work. This time, its a configure error.

spongebob@spongebob:~/blender-cycles$ mkdir build
spongebob@spongebob:~/blender-cycles$ cd build
spongebob@spongebob:~/blender-cycles/build$ cmake …/blender -DCYCLES_OIIO=…/oiio/dist/linux64
– The C compiler identification is GNU
– The CXX compiler identification is GNU
– Check for working C compiler: /usr/bin/gcc
– Check for working C compiler: /usr/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Performing Test SUPPORT_SSE_BUILD
– Performing Test SUPPORT_SSE_BUILD - Success
– SSE Support: detected.
– Performing Test SUPPORT_SSE2_BUILD
– Performing Test SUPPORT_SSE2_BUILD - Success
– SSE2 Support: detected.
– Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
– Found ZLIB: /usr/include (found version “1.2.3.4”)
– Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so
– Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find PythonLibsUnix (missing: PYTHON_LIBRARY PYTHON_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
build_files/cmake/Modules/FindPythonLibsUnix.cmake:102 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:332 (find_package)

– Configuring incomplete, errors occurred!

You need to install python-devel package, not sure how it named in your distro.

Uhhh…How do I do that?

more precise: you might need python3.2
and most distributions are not up to date to this newest python version.

If you get the 3.2 version and make an install (normaly to /usr/local/…
what will not overwrite your default system-version),
then you automatically have the dev-system too (cause you need to built
from the sources). Check for python3.2 source (… sourceforge … or… search with google for its developer-page, there are compressed archives available).

For the blender-built you have to set manually the directory of the python3.2
system, (normaly its /usr/local) … in the config-file or per environment-var like the oiio-thing.
You might find more missing things … …

Thanks! Configuring works now! :slight_smile: Waiting for it to build, currently watching hundreds of lines of code scroll past.

Gah! It built, but without the Cycles Render Engine. When I go into Cycles Render view, all I see is black.

Any errors or warnings in command terminal when you start cycles? Do you remember to set oiio path? For example I use

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../oiio/dist/linux64/lib/ bin/blender

can some one make a cycles build running of open cl so ati can render

Can’t find “toggle system console”.

Uhhh…can anyone tell me how to get the system console open?

to view the in-blender-console-output
pull down the upper top-menu-row
and you can see the python-like-command-protocol there.

If you speak about the operation-system-console,
then you have to start blender out of such a terminal-window.

For some reason, I took another crack at it today, AND IT WORKS!!! I have a r39561 Cycles build!!!

ARRRGGGHHHHHH!!! >:( It worked once, and now refuses to open. [Bangs head on table[

Found the problem- You can’t delete the oiio folder.

then the created blender program uses a library from this folder … … .
(its possible to do static linking in librarys … … . but better would be to not delete or install in global path and link against this …)

Uhhh…how do I make it so the library is included in the bin folder?