Compiling Blender for Ubuntu AMD64

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
methinks
Posts: 0
Joined: Fri Feb 09, 2007 5:25 am
Location: Vancouver, Canada
Contact:

Compiling Blender for Ubuntu AMD64

Post by methinks » Fri Feb 09, 2007 7:29 am

Hi. I'm trying to compile blender from the CVS, but I've got a bit of a problem with the 32bit vs 64bit. My system has the 64bit version of ubuntu edgy (6.10) installed.
I've managed to get blender compiled, but when I try to run it, it warns me about incompatibility with the files from the 32 bit version.
The way I see it, I have two options: use 64 bit and forgo compatability, or download a pre-compiled version (which I can't seem to get to actually run)
My question is if there is any way for me to compile a 32bit version on my 64bit system?

z3r0_d
Posts: 289
Joined: Wed Oct 16, 2002 2:38 am
Contact:

Re: Compiling Blender for Ubuntu AMD64

Post by z3r0_d » Sat Feb 10, 2007 6:55 am

methinks wrote:My question is if there is any way for me to compile a 32bit version on my 64bit system?
yes, you can, but I am not an expert as to how

essentially: install 32 bit libraries and build dependencies for the 32 bit version of blender, and modify the make file [probably you could create and edit config.opts in this case] to specify to target a 32 bit architecture, and use the 32 bit libs

I am in the same situation, but actually haven't spent any time trying to build a 32 bit version instead.

z3r0_d
Posts: 289
Joined: Wed Oct 16, 2002 2:38 am
Contact:

Post by z3r0_d » Sat Feb 10, 2007 7:12 am

or you could build from a chroot environment

a howto to set one up:
http://ubuntuforums.org/showthread.php?t=24575

the mailing list post that suggested it:
http://projects.blender.org/pipermail/b ... 14758.html

z3r0_d
Posts: 289
Joined: Wed Oct 16, 2002 2:38 am
Contact:

Post by z3r0_d » Sat Feb 10, 2007 7:48 am

follow this, but say "edgy" instead of "hoary" in the sources.list and such
http://ubuntuforums.org/showthread.php?t=24575

I stopped before installing synaptic

then I changed my chroot's sources.list [/usr/chroot32/etc/apt/sources.list from the point of view my regular install] to contain:

Code: Select all

deb http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
then tried this incredibly useful command, which ought to install everything required to compile the specified package.

Code: Select all

sudo apt-get build-dep blender

Code: Select all

$ sudo apt-get build-dep blender
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting freeglut3-dev instead of libglut-dev
Note, selecting libjpeg62-dev instead of libjpeg-dev
Package libpng-dev is a virtual package provided by:
  libpng12-dev 1.2.8rel-5.1ubuntu0.1
You should explicitly select one to install.
E: Package libpng-dev has no installation candidate
E: Failed to satisfy Build-Depends dependency for blender: libpng-dev
well, might as well install libpng12-dev

Code: Select all

$ sudo apt-get install libpng12-dev
trying to get the build dependencies for blender is wanting to download another 157Mb [complier, libraries, other goodies], so I'll come back when that finishes

then running scons didn't succeed, openal development stuff wasn't installed

Code: Select all

sudo apt-get install libopenal-dev libalut-dev
I ran scons again, this time it completed, and the build [in install/linux2] ran fine. [no game engine tho]
Note: I ran blender from my 32 bit chroot. I could probably install the libraries so that isn't necessary, but I don't particularly see the need.

Post Reply