From BlenderWiki
[edit] Building on Mac OS X 10.6 Snow Leopard
Build succeeded using the following tools:
- Compiler: GCC 4.2 (i686-apple-darwin10-gcc-4.2.1)
- Build Path: SCons (part of blender sources)
- SCons config: instructions on setting up user-config.py file found here: http://www.blender.org/forum/viewtopic.php?p=74897&highlight=#74897. (Everything needed seems to be in darwin-config.py, see instructions below. - Indy)
- External library: FFTW3 (installed via MacPorts, see below) - Essential for fluid/smoke simulations
[edit] Dependencies
- GCC 4.2 comes with Apple's XCode 3.2, install it from a Snow Leopard disk or download it from http://developer.apple.com/technology/xcode.html
- Install MacPorts 1.8: Grab a DMG from http://www.macports.org/
- Install FFTW-3 via MacPorts
sudo port install fftw-3 +universal
Make sure it says "Building fftw-3 for architecture i386". That's the 32bit version of FFTW3 for Blender.
[edit] Building Blender
This might be trivial, but here's how to get the most recent Blender sources:
svn co https://svn.blender.org/svnroot/bf-blender/trunk bf-blender
You need to copy bf-blender/blender/config/darwin-config.py up one directory (bf-blender/blender) and rename as user-config.py. Then you change the flags at the very top to match your needs (some instructions here: http://www.blender.org/forum/viewtopic.php?p=74897&highlight=#74897). Don't actually change darwin-config.py.
FFTW3 32bit binaries aren't included in the SVN checkout. This is why you need to copy FFTW3 libraries and headers into the bf-blender/lib dir:
mkdir -p ../lib/darwin-8.x.i386/fftw3/include mkdir -p ../lib/darwin-8.x.i386/fftw3/lib cp -a /opt/local/lib/libfftw3* ../lib/darwin-8.x.i386/fftw3/lib/ cp -a /opt/local/include/fftw3* ../lib/darwin-8.x.i386/fftw3/include/
Ready to bake the cake:
python scons/scons.py
If everything went fine, the resulting blender.app will reside here:
bf-blender/2.5-py3.1sl-build/darwin/bin/blender.app







![[]](/skins/blender/open.png)
