Skip to content
jgoppert edited this page Apr 6, 2012 · 13 revisions

Install macports

http://www.macports.org/

Edit macports config

vi /opt/local/etc/macports/macports.conf

Set universal architectures and the binary path for builds. The universal architectures lets us compile universal binaries supporting all mac platforms. The binpath tells macports to use the tools like gcc built by macports in preference to the ones found in /usr/bin :

universal_arches = i386 ppc x86_64
binpath = /opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin

Install dependencies

Grab a newer gcc compiler first:

sudo port install gcc44 +universal

Then install dependencies:

sudo port install OpenSceneGraph-devel +universal sudo port install qt4-mac-devel +universal