Building CsoundQt with OSX Lion
joachim heintz, august 2012
Command Line Tools
Install Xcode from Apple's AppStore. To use the command line tools, open Xcode, go to the Preferences > Downloads and install Command Line Tools. (Using MacPorts or Fink may be another option.)
Get the latest Csound for OSX from http://sourceforge.net/projects/csound/files. Run the installer.
Note: Create a folder in your home directory. Put all the dependencies here, as well as the CsoundQt sources.
Download the sources from http://www.mega-nerd.com/libsndfile/#Download.
cd to the root directory ./configure make
(I had a problem because Carbon.h has not been found, but the built worked anyway.)
Go to http://qt-project.org/downloads . Scroll down and download the Qt 4.8 libraries for Mac (you do not necessarily need the Qt SDK). Run the installer.
If you are using the QtSDK, remember to specify the full path for qmake for all usages below, for example:
Note: As of Oct. 19 2012, OS X 10.8 requires Qt 4.8.3, which is not curretly included in the SDK.
Get the RtMidi library from http://www.music.mcgill.ca/~gary/rtmidi.
cd to the root directory ./configure cd to the tests directory make
Get the latest PythonQt sources from http://pythonqt.sourceforge.net. You will need at least version 2.1.
cd to PythonQtRoot qmake PythonQt.pro -r -spec macx-g++ CONFIG+=release make all
Now you must set two links, so that CsoundQt can find the libraries:
sudo ln /your/path/to/libPythonQt.1.dylib /usr/local/lib/ sudo ln /your/path/to/libPythonQt_QtAll.1.dylib /usr/local/lib/
Get the CsoundQt sources (still creating a folder called 'qutecsound'). You can either a) download the latest release from http://sourceforge.net/projects/qutecsound/files/ or b) clone the git repository. Install git, cd to your favorite source direction, and type:
git clone git://qutecsound.git.sourceforge.net/gitroot/qutecsound/qutecsound
Now you are ready to build CsoundQt. You probably must set the PythonQt and the RtMidi directory, so in my case the command is:
cd to the root qutecsound directory qmake qcs.pro -spec macx-g++ CONFIG+=buildDoubles CONFIG+=release CONFIG+=pythonqt CONFIG+=rtmidi PYTHONQT_SRC_DIR=../PythonQt2.1_Qt4.8 RTMIDI_DIR=../rtmidi-2.0.1 make
You should now find the binary in the 'bin' folder.