Guides for compiling Blender
Moderators: jesterKing, stiv
Re: compiling on linux ia64
thank you for your quick answers! i tried it, but i have problems with resolving the dependencies. fortunately i have managed to compile blender on one of the ia64 machines. now i am using this binary on all ia64 machines and the performance is very nice.
sarah
sarah
I'm trying to compile Blender SVN under Ubuntu 8.04 64 bit using Scons witht the guide at this link:
http://wiki.blender.org/index.php/Blend ... _Compiling
I'm getting a compile/link errors due to undefined references. How do I fix this?
http://wiki.blender.org/index.php/Blend ... _Compiling
I'm getting a compile/link errors due to undefined references. How do I fix this?
Code: Select all
Linking library ==> 'libbf_kernel.a'
Compiling ==> 'creator.c'
Linking library ==> 'libblender_creator.a'
Compiling ==> 'buildinfo.c'
Linking program ==> 'blender'
/home/me/compile/build/linux2/lib/libextern_redcode.a(codec.o): In function `redcode_decode_video_float':
codec.c:(.text+0xe9): undefined reference to `opj_image_destroy'
/home/me/compile/build/linux2/lib/libextern_redcode.a(codec.o): In function `redcode_decode_video_raw':
codec.c:(.text+0x1a4): undefined reference to `opj_set_default_decoder_parameters'
codec.c:(.text+0x1d4): undefined reference to `opj_create_decompress'
codec.c:(.text+0x1ec): undefined reference to `opj_set_event_mgr'
codec.c:(.text+0x1f7): undefined reference to `opj_setup_decoder'
codec.c:(.text+0x20d): undefined reference to `opj_cio_open'
codec.c:(.text+0x21b): undefined reference to `opj_decode'
codec.c:(.text+0x22f): undefined reference to `opj_cio_close'
codec.c:(.text+0x23c): undefined reference to `opj_destroy_decompress'
codec.c:(.text+0x2f1): undefined reference to `opj_image_destroy'
codec.c:(.text+0x316): undefined reference to `opj_destroy_decompress'
codec.c:(.text+0x31e): undefined reference to `opj_cio_close'
collect2: ld returned 1 exit status
scons: *** [/home/me/compile/build/linux2/bin/blender] Error 1
scons: building terminated because of errors.
me@upc:~/compile/blender$
I haven't moved up to 64bit yet, but this error indicates that your libopenjpegrivendell wrote:I'm trying to compile Blender SVN under Ubuntu 8.04 64 bit using Scons witht the guide at this link:
http://wiki.blender.org/index.php/Blend ... _Compiling
I'm getting a compile/link errors due to undefined references. How do I fix this?Code: Select all
Linking library ==> 'libbf_kernel.a' Compiling ==> 'creator.c' Linking library ==> 'libblender_creator.a' Compiling ==> 'buildinfo.c' Linking program ==> 'blender' /home/me/compile/build/linux2/lib/libextern_redcode.a(codec.o): In function `redcode_decode_video_float': codec.c:(.text+0xe9): undefined reference to `opj_image_destroy' /home/me/compile/build/linux2/lib/libextern_redcode.a(codec.o): In function `redcode_decode_video_raw': codec.c:(.text+0x1a4): undefined reference to `opj_set_default_decoder_parameters' codec.c:(.text+0x1d4): undefined reference to `opj_create_decompress' codec.c:(.text+0x1ec): undefined reference to `opj_set_event_mgr' codec.c:(.text+0x1f7): undefined reference to `opj_setup_decoder' codec.c:(.text+0x20d): undefined reference to `opj_cio_open' codec.c:(.text+0x21b): undefined reference to `opj_decode' codec.c:(.text+0x22f): undefined reference to `opj_cio_close' codec.c:(.text+0x23c): undefined reference to `opj_destroy_decompress' codec.c:(.text+0x2f1): undefined reference to `opj_image_destroy' codec.c:(.text+0x316): undefined reference to `opj_destroy_decompress' codec.c:(.text+0x31e): undefined reference to `opj_cio_close' collect2: ld returned 1 exit status scons: *** [/home/me/compile/build/linux2/bin/blender] Error 1 scons: building terminated because of errors. me@upc:~/compile/blender$
library didn't build (?). As a quick check, does ./build/linux2/extern/libopenjpeg/openjpeg.o exist ??
Code: Select all
As a quick check, does ./build/linux2/extern/libopenjpeg/openjpeg.o exist ??[/quote]
Thanks frank_me. This file does not exist on my machine. What should I do now?
First thing is to try building without openjpeg.
Add the flag WITH_BF_OPENJPEG=0 to other flags you're passing on the command line, i.e. scons <other flags...> WITH_BF_OPENJPEG=0
(As an aside, typing scons -h will give you a list of Blender build flags,
along with their default and actual values. On my system, default value is
false, but actual is true for openjpeg, and I don't remember setting that anywhere
Give that a shot, see if the build gets further, then decide if you need
the openjpeg lib
Add the flag WITH_BF_OPENJPEG=0 to other flags you're passing on the command line, i.e. scons <other flags...> WITH_BF_OPENJPEG=0
(As an aside, typing scons -h will give you a list of Blender build flags,
along with their default and actual values. On my system, default value is
false, but actual is true for openjpeg, and I don't remember setting that anywhere
Give that a shot, see if the build gets further, then decide if you need
the openjpeg lib
hello all!
@rivendell: I could compile and run blender easily and - most important - succesfully with the following link: http://wiki.blender.org/index.php/Blend ... nder/Linux
In the first step all required dependancies are listed, maybe it helps when you install them.
Now to my question: Was anyone able to build Blender with Eclipse and Ubuntu?
When I build blender with scons as a build tool in eclipse I get this error message:
ImportError: No module named Variables:
File "/media/daten/Informatik/Java/blender2/SConstruct", line 42:
import tools.btools
File "/media/daten/Informatik/Java/blender2/tools/btools.py", line 6:
import SCons.Variables
Could anyone fix that problem? Or should I use makefiles instead of scons?
Thanks for every reply - and sorry for my English, it still has room for improvement
!
Stefan[/i]
@rivendell: I could compile and run blender easily and - most important - succesfully with the following link: http://wiki.blender.org/index.php/Blend ... nder/Linux
In the first step all required dependancies are listed, maybe it helps when you install them.
Now to my question: Was anyone able to build Blender with Eclipse and Ubuntu?
When I build blender with scons as a build tool in eclipse I get this error message:
ImportError: No module named Variables:
File "/media/daten/Informatik/Java/blender2/SConstruct", line 42:
import tools.btools
File "/media/daten/Informatik/Java/blender2/tools/btools.py", line 6:
import SCons.Variables
Could anyone fix that problem? Or should I use makefiles instead of scons?
Thanks for every reply - and sorry for my English, it still has room for improvement

Stefan[/i]
-
- Site Admin
- Posts: 207
- Joined: Fri Oct 18, 2002 12:48 pm
- Location: Finland
Thank you for the advice, it works! But the problem is, that this scons.py puts the binaries into a folder on the same level as the Eclipse-Project. Another place would be better but I don't know how to change the output folder.
But anyway, it works for me now with makefiles, finally I can start with coding - I hope I won't be frustrated too much
Stefan
But anyway, it works for me now with makefiles, finally I can start with coding - I hope I won't be frustrated too much

Stefan
-
- Site Admin
- Posts: 207
- Joined: Fri Oct 18, 2002 12:48 pm
- Location: Finland
blender scons on win xp and msvc 9
SOLVED see the update.
I have problem building with scons+vc9 on win xp but I can build with CMake so
its ok if you ignore me but I'm going insane!!!!
Here is the build log.
http://www.pasteall.org/5886
if its silly to add a pasteall link in here I have a short description:
scons: done reading SConscript files.
scons: Building targets ...
Compiling ==> 'SND_DummyDevice.cpp'
SND_DummyDevice.cpp
D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\exception(83) : error C2144: syntax error : 'size_t' should be preceded by ';'
and the errors goes on and on !!!
The fun/crazy part is that if I run lines 98 through 111 (which is cl.exe with
its arguments) in cmd the SND_DummyDevice.obj file is created with no
problem!!! what is it?!
I heard there must be no space in path of applications that are compiling
under linux and you are trying to compile on windows so there is no space.
And without any luck once I copied the whole source tree to c:\blender to
see if any magic happens. I digested every single bit of information from
doc and google about scons but I can't figure out what the problem is.
BestRegards
Mani
Update: I was running scons in VC9 environment variables. (2008 CMD)
that was not right , for a proper installation read this :
http://wiki.blender.org/index.php/Dev:D ... er/Windows
You can set python environment variables generally then if you want an
easy way to add SDK6 include files you can run SDK6 command prompt
and append lib and libpath with set command from what you see in VC9
environment variables.
It seems you need SDK6 include files and VC9 libs. if you don't set the lib
path you will get the famous:
IlmThread.lib(IlmThreadPool.obj) : error LNK2019: unresolved external symbol
that was mentioned in forum several times and thought to be OPENEXR problem.
I have problem building with scons+vc9 on win xp but I can build with CMake so
its ok if you ignore me but I'm going insane!!!!
Here is the build log.
http://www.pasteall.org/5886
if its silly to add a pasteall link in here I have a short description:
scons: done reading SConscript files.
scons: Building targets ...
Compiling ==> 'SND_DummyDevice.cpp'
SND_DummyDevice.cpp
D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\exception(83) : error C2144: syntax error : 'size_t' should be preceded by ';'
and the errors goes on and on !!!
The fun/crazy part is that if I run lines 98 through 111 (which is cl.exe with
its arguments) in cmd the SND_DummyDevice.obj file is created with no
problem!!! what is it?!
I heard there must be no space in path of applications that are compiling
under linux and you are trying to compile on windows so there is no space.
And without any luck once I copied the whole source tree to c:\blender to
see if any magic happens. I digested every single bit of information from
doc and google about scons but I can't figure out what the problem is.
BestRegards
Mani
Update: I was running scons in VC9 environment variables. (2008 CMD)
that was not right , for a proper installation read this :
http://wiki.blender.org/index.php/Dev:D ... er/Windows
You can set python environment variables generally then if you want an
easy way to add SDK6 include files you can run SDK6 command prompt
and append lib and libpath with set command from what you see in VC9
environment variables.
It seems you need SDK6 include files and VC9 libs. if you don't set the lib
path you will get the famous:
IlmThread.lib(IlmThreadPool.obj) : error LNK2019: unresolved external symbol
that was mentioned in forum several times and thought to be OPENEXR problem.
Last edited by manis on Fri Jun 05, 2009 1:56 am, edited 2 times in total.
Using Kubuntu Jaunty amd64.
I tried to compile blender 2.5 (completely new to this) by following blender wiki:
Installed all dependencies for 2.49a, because I didn't find dependencies list for 2.5.
svn checkout https://svn.blender.org/svnroot/bf-blen ... blender2.5
cd ~/blender2.5/blender/
scons
and by the end of the process I get the following error:
How do I fix this?
btw: I did manage to compile 2.49a by that method, without any problems.
Update:
I managed to build blender 2.5 by disabling blenderplayer. Add this to your user-config.py - WITH_BF_PLAYER = 'false' if you have the same problem.
I tried to compile blender 2.5 (completely new to this) by following blender wiki:
Installed all dependencies for 2.49a, because I didn't find dependencies list for 2.5.
svn checkout https://svn.blender.org/svnroot/bf-blen ... blender2.5
cd ~/blender2.5/blender/
scons
and by the end of the process I get the following error:
Code: Select all
.
.
(*It seems that up to this point it goes without any errors*)
Compiling ==> 'buildinfo.c'
Linking program ==> 'blender'
Linking program ==> 'blenderplayer'
/home/evgenij/blender2.5/build/linux2/lib/libgp_ghost.a(GPG_ghost.o): In function `load_game_data(char*, char*, char*)':
GPG_ghost.cpp:(.text+0x87): undefined reference to `BKE_reports_init'
.
.
(*A couple of thousands "undefined reference" messages.*)
.
.
BLO_readblenfile.c:(.text+0x196): undefined reference to `BKE_report'
collect2: выполнение ld завершилось с кодом возврата 1
scons: *** [/home/evgenij/blender2.5/build/linux2/bin/blenderplayer] Error 1
scons: building terminated because of errors.
evgenij@evg-dsk:~/blender2.5/blender$
btw: I did manage to compile 2.49a by that method, without any problems.
Update:
I managed to build blender 2.5 by disabling blenderplayer. Add this to your user-config.py - WITH_BF_PLAYER = 'false' if you have the same problem.
Linux distros usually put the headers and such in a *-dev or *-devel package. Your other alternative is to compile and install Python from the source, a relatively simple process.dsavi wrote:I can't find the development files for Python 3.1.1 in Ubuntu Jaunty 32bit. Does somebody know where I can find them? Or how to build Blender 2.5 with Python 2.6?
You will need Python 3.1 to build Blender 2.50. Note that running scons requires also that you have 2.x series Python since scons has not been ported yet.