FS#14893 - [blender] Build with scons
Attached to Project:
Arch Linux
Opened by Alessandro Doro (adoroo) - Sunday, 31 May 2009, 14:53 GMT
Last edited by Eric Belanger (Snowman) - Monday, 18 April 2011, 02:58 GMT
Opened by Alessandro Doro (adoroo) - Sunday, 31 May 2009, 14:53 GMT
Last edited by Eric Belanger (Snowman) - Monday, 18 April 2011, 02:58 GMT
|
Details
The current blender PKGBUILD is really a mess.
There are a bunch of outdated NAN variables and stesp no more useful because the defaults are changed. I tried to build after a cleanup: export NAN_NO_PLUGIN=true export NAN_PYTHON_VERSION=2.6 export INTERNATIONAL=true export WITH_BF_OPENMP=true export NAN_FFMPEG=/usr export NAN_ODE=/usr export WITH_BF_OPENMP=true but I'm having issues. - problem while linking with openal; the linker search for /usr/lib/libopenal.a; no luck triyng to hardcode - WITH_BF_OPENMP=true exposes a gcc bug; in order to procede I have to set it to false; see The steps to build with scons are easy: · provide a user-config.py in the source root directory; this can be provided as an external file or generated in the PKGBUILD sedding config/linux2-config.py (note that one can also modify config/linux2-config.py directly). · scons In the next post I'll explain/justify the changes from the default linux2-config.py. |
This task depends upon
Closed by Eric Belanger (Snowman)
Monday, 18 April 2011, 02:58 GMT
Reason for closing: Implemented
Additional comments about closing: blender-2.57-1 in testing use cmake as build system as upstream seem to prefer cmake. In that release, cmake or scons are the only build systems available.
Monday, 18 April 2011, 02:58 GMT
Reason for closing: Implemented
Additional comments about closing: blender-2.57-1 in testing use cmake as build system as upstream seem to prefer cmake. In that release, cmake or scons are the only build systems available.
+++ user-config.py 2009-05-31 16:53:04.000000000 +0200
@@ -0,0 +1,2 @@
+WITH_BF_DOCS = True
***** This can be set to False; it builds the blender API documentation (8MB of html files).
+WITH_BF_OPENMP = True
***** It builds (It doens't with the make method:
FS#14766)!!!@@ -4 +6 @@
-WITH_BF_VERSE = False
+WITH_BF_VERSE = True
***** Maybe some user needs verse support.
@@ -87 +89 @@
-WITH_BF_ODE = False
+WITH_BF_ODE = True
***** Statically linked.
@@ -139,2 +141,2 @@
-BF_FFMPEG = '#extern/ffmpeg'
-BF_FFMPEG_LIB = ''
+# BF_FFMPEG = '#extern/ffmpeg'
+# BF_FFMPEG_LIB = ''
@@ -142,2 +144,2 @@
-# BF_FFMPEG = '/usr'
-# BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice'
+BF_FFMPEG = '/usr'
+BF_FFMPEG_LIB = 'avformat avcodec swscale avutil avdevice'
***** Blender source contains ffmpeg 0.5 now; so I link with the system ffmpeg.
@@ -148 +150 @@
-WITH_BF_OGG = False # -DWITH_OGG
+WITH_BF_OGG = True # -DWITH_OGG
***** ogg/vorbis/theora support for ffmpeg. Good!
@@ -180 +182 @@
-CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
+CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=i686','-mtune=generic']
@@ -183 +185 @@
-CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
+CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing','-march=i686','-mtune=generic']
***** Just taken from /etc/makepkg.conf. Are they needed?
At least for a stable version every build system is supported and working (but see
[1]); during development it happens that some system is not updated for a few hours/days after certain changes in the source tree.
The thread "Removing Build Systems" in the bf-committers ML (2009, April) sheds some light about this issue.
Anyway at the moment the build fails in Arch with the NAN makefile if openmp is enabled (see [2], to investigate further).
Also I can't compile with openal support (given we want satisfy [3]).
[1]
FS#12862- blender bullet physics not enabled due to wrong option[2]
FS#14766- [Blender] fails to build]3]
FS#13875- Blender3D has OpenAL disabled (no sound in games)scons works nearly out of the box. I did not tried cmake recently; last time (after 2.48a) it gave me executables with inferior performance.
Only my POV/experience.
But after SVN commit 20717 (trunk/blender/extern/ffmpeg: == FFMPEG ==) maybe it's better to stay with the blender provided ffmpeg.
References:
http://lists.blender.org/pipermail/bf-blender-cvs/2009-June/019907.html
http://lists.blender.org/pipermail/bf-committers/2009-June/023614.html
FS#13875.The build with the NAN Makefiles stops at linking time; it wants the static lib while the Arch Linux package provides only the dynamic library.
blender.install (0.5 KiB)
user-config.py (6.3 KiB)
Many libraries are linked statically, there is no theora/vorbis support for the ffmpeg animation output. The PKGBUILD needs still a clean up.
Anyway I'm fine with that, you can close this task. Too much users whining in
FS#14766and no one contributing to the discussion.Forget about theora/vorbis, after some research I see that only scons supports it and it's not a vital feature.
I have been building svn trunk pulls for months now and concluded that cmake is the way to go.
opencollada-svn.tar.gz (1.1 KiB)