Created attachment 282153 [details] blender-cycles-9999.ebuild Here is an ebuild for Blender with the cycles render engine http://wiki.blender.org/index.php/Dev:2.5/Source/Render/Cycles. 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 http://developer.nvidia.com/cuda-gpus 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.
Created attachment 282155 [details, diff] blender-cycles-2.5-collada.patch
Created attachment 282157 [details, diff] blender-cycles-2.5-doxygen.patch
Created attachment 282159 [details, diff] blender-cycles-2.5-eigen.patch
Created attachment 282161 [details, diff] blender-cycles-desktop.patch
Created attachment 282163 [details, diff] cycles-slot.patch
Created attachment 282573 [details] cycles-slot.patch.out
Hi! 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: /var/tmp/portage/media-gfx/blender-cycles-9999/temp/cycles-slot.patch.out
Created attachment 282581 [details, diff] cycles-slot.patch updated cycles-slot.patch
thank you very mutch!
Error come back again ((( >Failed Patch: cycles-slot.patch ! >( /usr/local/portage/media-gfx/blender-cycles/files/cycles-slot.patch )
Created attachment 283803 [details, diff] cycles-slot.patch Updated patch.
Created attachment 283807 [details] blender-cycles-9999.ebuild Cycles has moved to Blender 2.59.
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 newer). The following Boost libraries could not be found: boost_filesystem boost_regex boost_system boost_thread 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 Boost. -- Configuring incomplete, errors occurred! * ERROR: media-gfx/blender-cycles-9999 failed (configure phase): * cmake failed If you need more info Shannon please ask. Tim
Created attachment 284903 [details] blender-cycles-9999.ebuild 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.
(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. Tim
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 2.1.10.13 (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" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" 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" DISTDIR="/usr/portage/distfiles" 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" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/multimedia /var/lib/layman/hwoarang /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-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" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 285739 [details] blender-cycles-9999.ebuild They finally added a proper cmake module for opencollada. Removed the patch from the ebuild.
Created attachment 285741 [details, diff] blender-cycles-2.5-eigen.patch Fixed another include to point to the system Eigen.
Oh by the way, they seem to have relaxed the boost requirement. It built fine with the gameengine use for me.
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.
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 ps: 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"
(In reply to comment #21) It compiled without error for me using your use flags. Please attach your build log.
http://paste.org.ru/?4jmz7c There is...
with bullet 2.78 http://paste.org.ru/?9lyew1
(In reply to comment #24) > with bullet 2.78 > http://paste.org.ru/?9lyew1 /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.
Created attachment 289959 [details] blender-cycles-9999.ebuildd 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.
This seems to be obsolete since we have USE=cycles on blender now, please reopen if that's not the case.