David Burnett - 2009-01-24

Once again I've created a mac binary for download. You can download all 11 Mb from http://oxidizer.sourceforge.net/StructureSynth09.zip

It includes all the Qt libraries required.

As before it's not been tested anywhere except my Intel iMac put it should be a Universal app. No idea if it will work on Tiger but probably not.

Dave

For those interested here's the recipe to roll your own...

#Download qt-mac-opensource-src-4.4.3 and StructureSynth-Source-v0.9.zip

# Just make a dylib version of Qt, not Mac style but makes thing easier

cd /Users/vargol/Source/ports/qt-mac-opensource-src-4.4.3 
./configure -universal -no-framework 
make
sudo make install

PATH=/usr/local/Trolltech/Qt-4.4.3/bin:$PATH
export PATH

#build Struct Synth using make, not xcode, to make things easier, same as the linux instructions
#but with added universal app config.

cd ../Structure\ Synth\ Source/
qmake -project -after "CONFIG += opengl release" -after "QT+=xml opengl script" -after "CONFIG+=ppc" -after "CONFIG+=x86"
qmake
make

# You should now have a working "Structure Synth Source.app" applicaton

# To make a relocatable app bundle  for distribution also do the following

#copy the Qt dylibs to the app bundle.
cd Structure\ Synth\ Source.app/Contents/MacOS/ 

cp /usr/local/Trolltech/Qt-4.4.3/lib/libQtCore.4.dylib .
cp /usr/local/Trolltech/Qt-4.4.3/lib/libQtOpenGL.4.dylib .
cp /usr/local/Trolltech/Qt-4.4.3/lib/libQtXml.4.dylib .
cp /usr/local/Trolltech/Qt-4.4.3/lib/libQtGui.4.dylib .
cp /usr/local/Trolltech/Qt-4.4.3/lib/libQtScript.4.dylib .

#tell dyld to look for the Qt dylibs in the app bundle.
install_name_tool -id @executable_path/libQtOpenGL.4.dylib "./libQtOpenGL.4.dylib"
install_name_tool -id @executable_path/libQtXml.4.dylib "./libQtXml.4.dylib"
install_name_tool -id @executable_path/libQtGui.4.dylib "./libQtGui.4.dylib"
install_name_tool -id @executable_path/libQtCore.4.dylib "./libQtCore.4.dylib"
install_name_tool -id @executable_path/libQtScript.4.dylib "./libQtScript.4.dylib"

install_name_tool -change `otool -L "./libQtOpenGL.4.dylib" | awk '/libQtCore/ {print $1}'` @executable_path/libQtCore.4.dylib "./libQtOpenGL.4.dylib"
install_name_tool -change `otool -L "./libQtOpenGL.4.dylib" | awk '/libQtGui/ {print $1}'` @executable_path/libQtGui.4.dylib "./libQtOpenGL.4.dylib"
install_name_tool -change `otool -L "./libQtXml.4.dylib" | awk '/libQtCore/ {print $1}'` @executable_path/libQtCore.4.dylib "./libQtXml.4.dylib"
install_name_tool -change `otool -L "./libQtGui.4.dylib" | awk '/libQtCore/ {print $1}'` @executable_path/libQtCore.4.dylib "./libQtGui.4.dylib"
install_name_tool -change `otool -L "./libQtScript.4.dylib" | awk '/libQtCore/ {print $1}'` @executable_path/libQtCore.4.dylib "./libQtScript.4.dylib"

install_name_tool -change `otool -L "./Structure Synth Source" | awk '/libQtCore/ {print $1}'` @executable_path/libQtCore.4.dylib "./Structure Synth Source"
install_name_tool -change `otool -L "./Structure Synth Source" | awk '/libQtOpenGL/ {print $1}'` @executable_path/libQtOpenGL.4.dylib "./Structure Synth Source"
install_name_tool -change `otool -L "./Structure Synth Source" | awk '/libQtXml/ {print $1}'` @executable_path/libQtXml.4.dylib "./Structure Synth Source"
install_name_tool -change `otool -L "./Structure Synth Source" | awk '/libQtGui/ {print $1}'` @executable_path/libQtGui.4.dylib "./Structure Synth Source"
install_name_tool -change `otool -L "./Structure Synth Source" | awk '/libQtScript/ {print $1}'` @executable_path/libQtScript.4.dylib "./Structure Synth Source"

#Done, give it a run