Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377857 - media-gfx/blender-cycles - Blender with the Cycles internal renderer
Summary: media-gfx/blender-cycles - Blender with the Cycles internal renderer
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
Depends on:
Reported: 2011-08-05 07:51 UTC by Shannon
Modified: 2022-08-20 02:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

blender-cycles-9999.ebuild (blender-cycles-9999.ebuild,6.45 KB, text/plain)
2011-08-05 07:51 UTC, Shannon
blender-cycles-2.5-collada.patch (blender-cycles-2.5-collada.patch,722 bytes, patch)
2011-08-05 07:51 UTC, Shannon
Details | Diff
blender-cycles-2.5-doxygen.patch (blender-cycles-2.5-doxygen.patch,1.29 KB, patch)
2011-08-05 07:52 UTC, Shannon
Details | Diff
blender-cycles-2.5-eigen.patch (blender-cycles-2.5-eigen.patch,11.71 KB, patch)
2011-08-05 07:53 UTC, Shannon
Details | Diff
blender-cycles-desktop.patch (blender-cycles-desktop.patch,654 bytes, patch)
2011-08-05 07:53 UTC, Shannon
Details | Diff
cycles-slot.patch (cycles-slot.patch,2.97 KB, patch)
2011-08-05 07:54 UTC, Shannon
Details | Diff
cycles-slot.patch.out (cycles-slot.patch.out,5.58 KB, text/plain)
2011-08-08 14:44 UTC, brothermechanic
cycles-slot.patch (cycles-slot.patch,2.93 KB, patch)
2011-08-08 15:57 UTC, Shannon
Details | Diff
cycles-slot.patch (cycles-slot.patch,1.36 KB, patch)
2011-08-18 17:58 UTC, Shannon
Details | Diff
blender-cycles-9999.ebuild (blender-cycles-9999.ebuild,6.45 KB, text/plain)
2011-08-18 18:01 UTC, Shannon
blender-cycles-9999.ebuild (blender-cycles-9999.ebuild,6.52 KB, text/plain)
2011-08-28 17:27 UTC, Shannon
blender-cycles-9999.ebuild (blender-cycles-9999.ebuild,6.47 KB, text/plain)
2011-09-06 23:31 UTC, Shannon
blender-cycles-2.5-eigen.patch (blender-cycles-2.5-eigen.patch,12.10 KB, patch)
2011-09-06 23:32 UTC, Shannon
Details | Diff
blender-cycles-9999.ebuildd (blender-cycles-9999.ebuild,6.47 KB, text/plain)
2011-10-16 15:53 UTC, Shannon

Note You need to log in before you can comment on or make changes to this bug.
Description Shannon 2011-08-05 07:51:12 UTC
Created attachment 282153 [details]

Here is an ebuild for Blender with the cycles render engine

It has a dependency on media-gfx/openimageio which I posted an ebuild for in bug #377853.

The collada use flag depends on media-libs/opencollada. Ebuild in bug #372507.

One huge difference from Blender 2.5/SVN is that cycles only supports CMake as the build system. It has a few strange things and I don't know if I approached them correctly. Please let me know if there is a more elegant way to do something.

I'm not sure if all the use flags work. But gpu rendering does work for nVidia cards.

You will need to set cuda and an sm_?? use. Check for your gpu so you don't have to wait for all the cuda kernels to compile; it takes a really long time.

I tried hard to implement this so that Blender 2.5 and Blender cycles could co-exist on the same system. So far I haven't had any problems. But I'm pretty sure that I didn't get ~/.blender separated. So if you have plug-ins installed here that are incompatible with cycles, there might be problems.
Comment 1 Shannon 2011-08-05 07:51:49 UTC
Created attachment 282155 [details, diff]
Comment 2 Shannon 2011-08-05 07:52:44 UTC
Created attachment 282157 [details, diff]
Comment 3 Shannon 2011-08-05 07:53:22 UTC
Created attachment 282159 [details, diff]
Comment 4 Shannon 2011-08-05 07:53:48 UTC
Created attachment 282161 [details, diff]
Comment 5 Shannon 2011-08-05 07:54:06 UTC
Created attachment 282163 [details, diff]
Comment 6 brothermechanic 2011-08-08 14:44:45 UTC
Created attachment 282573 [details]
Comment 7 brothermechanic 2011-08-08 14:47:50 UTC
Thank you for ebuild, i'll was wating for!
But i can't install, cycles-slot.patch don't work correct(((
Please check this patch

console out:
 * Applying blender-cycles-2.5-collada.patch
 * Applying cycles-slot.patch ...

 * Failed Patch: cycles-slot.patch !
 *  ( /usr/local/portage/media-gfx/blender-cycles/files/cycles-slot.patch )
 * Include in your bugreport the contents of:
Comment 8 Shannon 2011-08-08 15:57:18 UTC
Created attachment 282581 [details, diff]

updated cycles-slot.patch
Comment 9 brothermechanic 2011-08-09 08:24:52 UTC
thank you very mutch!
Comment 10 brothermechanic 2011-08-18 05:43:18 UTC
Error come back again (((
>Failed Patch: cycles-slot.patch !
>( /usr/local/portage/media-gfx/blender-cycles/files/cycles-slot.patch )
Comment 11 Shannon 2011-08-18 17:58:57 UTC
Created attachment 283803 [details, diff]

Updated patch.
Comment 12 Shannon 2011-08-18 18:01:00 UTC
Created attachment 283807 [details]

Cycles has moved to Blender 2.59.
Comment 13 Tim 2011-08-28 01:44:56 UTC
It seems that the cycles ebuild could use your spacenav patch.

-- Could NOT find Spacenav (missing:  SPACENAV_LIBRARY SPACENAV_INCLUDE_DIR)

It would appear that it has also moved to boost-1.47

CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1138 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.46.1

  Boost include path: /usr/include

  Detected version of Boost is too old.  Requested version was 1.47 (or

  The following Boost libraries could not be found:


  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of

-- Configuring incomplete, errors occurred!
 * ERROR: media-gfx/blender-cycles-9999 failed (configure phase):
 *   cmake failed

If you need more info Shannon please ask.

Comment 14 Shannon 2011-08-28 17:27:26 UTC
Created attachment 284903 [details]

This adds an 'ndof' use flag for 3dmouse control. You'll need libspnav from Bug 377859 if you enable it.

On Boost, see  Bug 376937. I don't have time to work it out for about a week. If you try it let me know how it goes.
Comment 15 Tim 2011-08-29 22:18:49 UTC
(In reply to comment #14)
> Created attachment 284903 [details]
> blender-cycles-9999.ebuild

> If you try it let me know how it goes.

Got it to build. I'm on ~amd64 (testing) so I had my entire system built with gcc-4.5.3.  Cuda requires gcc-4.4  Can you guess where this is going? :)

Flags that built for me.

[ebuild   R    ] media-gfx/blender-cycles-9999  USE="collada cuda dds elbeem ffmpeg fftw game-engine openal openexr openmp sdl sm_21 sse -apidoc -debug -eltopo -intl -jack -jpeg2k -ndof -player -redcode -sm_10 -sm_11 -sm_12 -sm_13 -sm_20 -sndfile"

Now to see what all the fuss is about.

Comment 16 Tim 2011-09-06 17:11:42 UTC
With the svn version 39977 of blender-cycles it looks like the CMakeLists.txt file has changed (probably even for earlier versions), so the collada patch fails.  A quick look at the new CMakeLists.txt will be more than enough to allow you to see why it fails.

I ended up having to disable the game-engine use flag to get 39977 to build as well.

Flags for the version that I have built;

[ebuild   R    ] media-gfx/blender-cycles-9999  USE="cuda dds elbeem ffmpeg fftw openal openexr openmp sdl sm_21 sse -apidoc -collada -debug -eltopo -game-engine -intl -jack -jpeg2k -ndof -player -redcode -sm_10 -sm_11 -sm_12 -sm_13 -sm_20 -sndfile" LINGUAS="en -ar -bg -ca -cs -de -el -es -fi -fr -hr -it -ja -ko -nl -pl -pt_BR -ro -ru -sr -sv -uk -zh_CN" 0 kB [1]

 emerge --info
Portage (default/linux/amd64/10.0/desktop, gcc-4.4.6, glibc-2.13-r4, 3.0.4 x86_64)
System uname: Linux-3.0.4-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.0.3
Timestamp of tree: Mon, 05 Sep 2011 23:30:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.2-r2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x11 multimedia hwoarang local-blender-9999
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-unmerge-warn"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/multimedia /var/lib/layman/hwoarang /usr/local/portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 apng assistant berkdb bluetooth branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam fat ffmpeg fftw firefox flac fontconfig fortran gdbm gdu gif git gpm gtk hddtemp iconv introspection ipv6 java jfs jpeg lcms libsamplerate lm_sensors mad melt mercurial midi mmx mmxext mng modules mp3 mp4 mpeg msn mudflap multilib ncurses nls nptl nptlonly nsplugin ntfs ogg openal opengl openmp pam pango pcre pdf perl png policykit ppds pvr python qt3support qt4 readline sdl secure-delete session smp spell sqlite sse sse2 ssl startup-notification subversion svg sysfs system-sqlite tcpd theora tiff tk tools truetype udev unicode unlock-notify usb v4l v4l2 vlc vorbis vpx webkit x264 xcb xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="cx23885" ELIBC="glibc" INPUT_DEVICES="evdev wacom" KERNEL="linux" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 17 Shannon 2011-09-06 23:31:01 UTC
Created attachment 285739 [details]

They finally added a proper cmake module for opencollada. Removed the patch from the ebuild.
Comment 18 Shannon 2011-09-06 23:32:24 UTC
Created attachment 285741 [details, diff]

Fixed another include to point to the system Eigen.
Comment 19 Shannon 2011-09-06 23:33:35 UTC
Oh by the way, they seem to have relaxed the boost requirement. It built fine with the gameengine use for me.
Comment 20 Shannon 2011-09-07 18:48:48 UTC
If you use the collada use flag you will probably need to get the updated ebuild for opencollada from bug #372507. The header files where moved to accommodate the fact that blender-cycles has better detection for opencollada now.
Comment 21 brothermechanic 2011-10-04 05:16:08 UTC
Linking CXX static library ../../lib/libextern_bullet.a
[ 87%] Built target extern_bullet                                                                                                                           
make: *** [all] Error 2
 * ERROR: media-gfx/blender-cycles-9999 failed (compile phase):
 *   emake failed

USE="cuda dds elbeem ffmpeg fftw game-engine openexr openmp sdl sm_13 sse -apidoc -collada -debug -eltopo -intl -jack -jpeg2k -ndof -openal -player -redcode -sm_10 -sm_11 -sm_12 -sm_20 -sm_21 -sndfile" LINGUAS="en ru -ar -bg -ca -cs -de -el -es -fi -fr -hr -it -ja -ko -nl -pl -pt_BR -ro -sr -sv -uk -zh_CN"
Comment 22 Shannon 2011-10-04 15:28:38 UTC
(In reply to comment #21)

It compiled without error for me using your use flags. Please attach your build log.
Comment 23 brothermechanic 2011-10-05 05:39:44 UTC
There is...
Comment 24 brothermechanic 2011-10-05 05:50:46 UTC
with bullet 2.78
Comment 25 Shannon 2011-10-05 10:54:50 UTC
(In reply to comment #24)
> with bullet 2.78

/opt/cuda/bin/../include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.5 and up are not supported!

Your gcc is too new for cuda.
Comment 26 Shannon 2011-10-16 15:53:54 UTC
Created attachment 289959 [details]

Openimageio version 0.10.2 is now in Portage. It was however moved from media-gfx to media-libs. This is an updated ebuild to depend on media-libs/openimageio.

If you wish to continue using the live version of oiio you can move the ebuild to media-libs in your overlay. I would suggest modifying the ebuild that Samuli Suominen put in Portage. It is better than mine.
Comment 27 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-15 21:30:00 UTC
This seems to be obsolete since we have USE=cycles on blender now, please reopen if that's not the case.