InstallSnowLeopard
From SOFAWiki
SOFA on Mac OS X 10.6 (Snow Leopard)
Update: a new pre-compiled dependencies package supporting both 32-bits and 64-bits is now available: dependencies-mac-i386+x86_64.zip
Some manipulations are required if you want to install Sofa (from sources) on Mac OS X 10.6 ,aka Snow Leopard.
- You must install Qt 4.6 (http://get.qt.nokia.com/qt/source/qt-mac-cocoa-opensource-4.6.2.dmg)
- Packages dependencies are obsolete for 10.6 ; for every depency like libPNG or GLEW, install Macport (http://www.macports.org/) and get the package like this :
(TIP : to ensure that you will not be bothered about 32/64 bits, add the flag +universal when installing package with Macport)
port install libpng +universalThen add these two lines at the beginning of your sofa-local.cfg file (assuming you have the default configuration for macport)
INCLUDEPATH += /opt/local/include LIBS += -L/opt/local/lib
- Compile in 32bits. Support for 64bits is quite hazardous due to some libraries linking error. To force 32bits compilation, add this to the sofa-local.cfg file :
CONFIG += x86
