From BlenderWiki

Jump to: navigation, search

Solaris 10, i386, 64bit

For this you will need an internet connection and 64bit AMD or Intel processor running solaris.

This also works in the virtual machine VMWare.

install blastwave - ref http://www.blastwave.org/howto.html Step 1

pkgadd -d http://www.blastwave.org/pkg_get.pkg

Skip Step 2, install software!

/opt/csw/bin/pkg-get -i gcc4core gcc4corert gcc4g++ gcc4g++rt subversion gmake wget

Path, add this line to your, ~/.bashrc

PATH=$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin
PS1="\w >"
CFLAGS="-m64 -O2 -pipe -mtune=opteron"
CCFLAGS=$CFLAGS

All commands below assume your running bash, not the default shell

make a dir for blender

mkdir ~/B

Get blenders source

cd ~/B
svn co https://svn.blender.org/svnroot/bf-blender/trunk/blender

Get the x86_64 libs, we could get all libs but better just to get what we need

cd ~/B
mkdir lib
cd lib
svn co https://svn.blender.org/svnroot/bf-blender/trunk/lib/solaris-2.10-x86_64

Build Blender

gmake NAN_NO_OPENAL=true

The blender binary will be created in ./obj/solaris-2.11-x86_64/bin/blender

Problems

OpenGL Headers

With Solaris 10 glu.h is in

/usr/X11/include/mesa

But blender expects it to be in

/usr/X11/include/GL

quick workaround is to do a symlink the headers, there is overlap

ln -s /usr/X11/include/mesa/*.h /usr/X11/include/GL/

Alternately you can edit blenders source and point to /usr/X11/include/mesa