NOTE: currently the universal release builds are not building but the Intel only Debug ones are.
Building wxMac
The following is a shell script that will build wxMac. Save it to a file, say buildwx.sh, make it executable
Code: Select all
chmod u+x buildwx.shIt is assumed that you want to install to /usr/local. If you don't then change PREFIX
Run it with no arguments to just build Debug static or with an argument of 1 to build all four versions.
It will ask for your password to do the installs. If you forget the script is running and leave it waiting at the password prompt for a long time the install may fail or only partially complete.
Code: Select all
#!/bin/sh
PREFIX=/usr/local
CONF_LINE="../configure CC=gcc-4.0 CXX=g++-4.0 LD=g++-4.0 --prefix=${PREFIX}
--with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk
--with-macosx-version-min=10.4 --disable-compat26
--with-expat=builtin --with-zlib=builtin --with-regex=builtin
--enable-universal_binary=yes --enable-unicode=yes"
if [ -n "$1" ]
then
#Shared Release
rm -rf bld-ShRel
mkdir bld-ShRel
cd bld-ShRel
${CONF_LINE} --enable-static=no --enable-shared=yes --enable-debug=no
make clean
make
sudo make install
cd ..
#Static Release
rm -rf bld-StRel
mkdir bld-StRel
cd bld-StRel
${CONF_LINE} --enable-static=yes --enable-shared=no --enable-debug=no
make clean
make
sudo make install
cd ..
#Shared Debug
rm -rf bld-ShDeb
mkdir bld-ShDeb
cd bld-ShDeb
${CONF_LINE} --enable-static=no --enable-shared=yes --enable-debug=yes
make clean
make
sudo make install
cd ..
fi
#Static Debug
rm -rf bld-StDeb
mkdir bld-StDeb
cd bld-StDeb
${CONF_LINE} --enable-static=yes --enable-shared=no --enable-debug=yes
make clean
make
sudo make install
cd ..
Code: Select all
svn checkout http://audacity.googlecode.com/svn/audacity-src/trunk/ audacity
Code: Select all
xcodebuild -target Audacity -configuration "Debug Static" WX_PREFIX=/usr/local
Paul.