Guides for compiling Blender

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

etr9j
Posts: 35
Joined: Fri Mar 10, 2006 2:40 am

Postby etr9j » Wed Oct 04, 2006 2:46 pm

Hey Nathan, thanks for taking a look at it. Since I never went the python route to configure the flags I was wondering if you could clarify. Do you mean use the user config file through scons which will then use cl.exe or do you mean using the config file as a script that MSVC will recognize (i.e. no scons involvement)?

jesterKing
Site Admin
Posts: 1848
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Postby jesterKing » Wed Oct 04, 2006 2:53 pm

etr9j wrote:Hey Nathan, thanks for taking a look at it. Since I never went the python route to configure the flags I was wondering if you could clarify. Do you mean use the user config file through scons which will then use cl.exe or do you mean using the config file as a script that MSVC will recognize (i.e. no scons involvement)?


If you build blender with Scons/msvc, then cl.exe et al will be used to compile the source and link the final binary. By setting the proper flags in your user-config.py (or directly in win32-vc.py, if you must) you can ie. tell the compiler to create optimised code.

So if you have a user-config.py in the Blender root dir (where the top SConstruct also resides), the file will be used with the settings in it. This has all been documented in the scons documents in the doc/ directory of the sources of Blender :)

/Nathan

etr9j
Posts: 35
Joined: Fri Mar 10, 2006 2:40 am

Postby etr9j » Wed Oct 04, 2006 6:53 pm

Okay, I made the revision to the optimization section. Care to take a look to see if I got it right? I'm more interested if I have the toolset correct (=msvc right?).

Thanks for the help Nathan!

jesterKing
Site Admin
Posts: 1848
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Postby jesterKing » Fri Oct 06, 2006 2:25 pm

Looks fine :)

/Nathan

deepankar
Posts: 34
Joined: Thu Aug 09, 2007 2:43 pm
Location: india

compiling problems of blender 2.44 in mandriva 2006

Postby deepankar » Thu Aug 16, 2007 10:32 am

i have tried to compile blender 2.44 in mandriva 2006(linux) usin make file.can any want help with some inputs as how to proceed
D J Senapati

mpan3
Posts: 154
Joined: Wed Mar 24, 2004 7:16 pm

Postby mpan3 » Sat Feb 09, 2008 5:57 am

can you by any chance add the following two guide:

2.45 on Windows with Scons/MinGW
http://mpan3.homeip.net/?compileblender2

2.45 on Windows with Cmake/MSVC9
http://www.geneome.net/index.php/blende ... ing-cmake/

jesterKing
Site Admin
Posts: 1848
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Postby jesterKing » Sat Feb 09, 2008 9:45 am

mpan3 wrote:2.45 on Windows with Scons/MinGW
http://mpan3.homeip.net/?compileblender2


I think you can use the libpython25.a from C:\Python25\libs - that should be lib compatible with mingw gcc

/Nathan

mpan3
Posts: 154
Joined: Wed Mar 24, 2004 7:16 pm

Postby mpan3 » Tue Feb 12, 2008 2:48 am

jesterKing wrote:
mpan3 wrote:2.45 on Windows with Scons/MinGW
http://mpan3.homeip.net/?compileblender2


I think you can use the libpython25.a from C:\Python25\libs - that should be lib compatible with mingw gcc

/Nathan


i do not have a dot a file within the c:\python25 directory at all...

jesterKing
Site Admin
Posts: 1848
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Postby jesterKing » Tue Feb 12, 2008 6:44 am

mpan3 wrote:
jesterKing wrote:
mpan3 wrote:2.45 on Windows with Scons/MinGW
http://mpan3.homeip.net/?compileblender2


I think you can use the libpython25.a from C:\Python25\libs - that should be lib compatible with mingw gcc

/Nathan


i do not have a dot a file within the c:\python25 directory at all...


Interesting. I just confirmed on 4 machines on which I installed python 2.5 using the official installer from the python website, that there is a libpython25.a in the C:\Python25\libs directory. And I have helped during the past week two persons getting Blender compiled on mingw/scons with the suggestion to copy the file to the proper lib/windows/python library directory :)

/Nathan

mpan3
Posts: 154
Joined: Wed Mar 24, 2004 7:16 pm

Postby mpan3 » Wed Feb 13, 2008 9:21 am

Are any of the PC running x64 by any chance :wink:

I was using the Python AMD64 binary, maybe that's why. Do you think it's 'safe' to install the 32bit binary on my PC? Running Server 2003 x64.

jesterKing
Site Admin
Posts: 1848
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Postby jesterKing » Wed Feb 13, 2008 4:27 pm

It is not possible to build 64bit blender yet, unless you have compiled all dependencies for Blender :) Then there remains still the issue of Blender being 64bit clean for Windows - it hasn't been tested, and no-one has been working on it.

I guess you'll have to stick with the 32bit versions.

/Nathan

mpan3
Posts: 154
Joined: Wed Mar 24, 2004 7:16 pm

Postby mpan3 » Thu Feb 14, 2008 2:27 am

I know, it's just that I thought since I was running a 64bit OS, I should need the 64bit python environment (like Java and .NET framework), even to build 32bit blender :oops:

dotty
Posts: 2
Joined: Sun Feb 17, 2008 11:03 am

compiling on linux ia64

Postby dotty » Sun Feb 17, 2008 11:31 am

I am working on my master thesis and I am desperately trying to compile blender on a ia64 linux machine (64 bits). Unfortunately I am not very successful and got stuck -- left with no ideas. Has someone of you succeeded in compiling blender on a similar machine?

jesterKing wrote:I guess you'll have to stick with the 32bit versions.

My problem is that my thesis is about performance issues. I can run a 32bit version of blender on this machine only by emulating, which grants a very very poor performance...

I searched quite a lot, but I didn't find something that could help me. I'd be thankful of every hint I get!

sarah

PS I got stuck because of the following error (during make in sources):

Code: Select all

/usr/lib/libpthread.a(pthread.o)(.text+0x28c0):/usr/src/packages/BUILD/glibc-2.3/linuxthreads/pthread.c:369: undefined reference to `_errno'
/usr/lib/libpthread.a(pthread.o)(.text+0x28c1):/usr/src/packages/BUILD/glibc-2.3/linuxthreads/pthread.c:404: undefined reference to `_dl_cpuclock_offset'
collect2: ld returned 1 exit status
make: *** [/home/cb56/cb561088/blenderSVN/blender/obj/linux-glibc2.3.5-ia64/bin/blender] Error 1
make: Leaving directory `/home/cb56/cb561088/blenderSVN/blender/source'
cb561088@altix1:~/blenderSVN/blender/source $

LetterRip
Posts: 1462
Joined: Thu Mar 25, 2004 7:03 am

Postby LetterRip » Mon Feb 18, 2008 1:10 am

for linux ia64 there is already prebuilt blender,

https://launchpad.net/ubuntu/hardy/ia64 ... 5-3ubuntu1

it is windows that there are no 64 bit builds,

LetterRip

mpan3
Posts: 154
Joined: Wed Mar 24, 2004 7:16 pm

Re: compiling on linux ia64

Postby mpan3 » Mon Feb 18, 2008 1:14 am

You are trying to compile Blender on IA-64 architecture? I can't really help you with the building process since I don't have access to an Itanium processor, but a simple google returns a Blender IA64 binary: https://launchpad.net/ubuntu/hardy/ia64 ... 5-3ubuntu1


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 0 guests