1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Building CsoundQt with OSX Lion

From qutecsound

(Difference between revisions)
Jump to: navigation, search
(Qt)
(CsoundQt)
 
(One intermediate revision not shown)
Line 63: Line 63:
Get the CsoundQt sources (still creating a folder called 'qutecsound'). You can either
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
+
# 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:
+
# clone the git repository. Install git, cd to your favorite source direction, and type:
-
<pre>
+
 
-
git clone git://qutecsound.git.sourceforge.net/gitroot/qutecsound/qutecsound
+
git clone git://qutecsound.git.sourceforge.net/gitroot/qutecsound/qutecsound
-
</pre>
+
 
 +
If you need write access to the repository use:
 +
git clone ssh://mantaraya36@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:
Now you are ready to build CsoundQt. You probably must set the PythonQt and the RtMidi directory, so in my case the command is:
-
<pre>
+
 
-
cd to the root qutecsound directory  
+
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 clean
-
make
+
qmake qcs.pro -spec macx-g++ CONFIG+=release CONFIG+=pythonqt CONFIG+=rtmidi PYTHONQT_SRC_DIR=../PythonQt2.1_Qt4.8 RTMIDI_DIR=../rtmidi-2.0.1
-
</pre>
+
make
You should now find the binary in the 'bin' folder.
You should now find the binary in the 'bin' folder.
 +
 +
You can try a minimal build of CsoundQt (without dependencies) with:
 +
 +
cd to the root qutecsound directory
 +
make clean
 +
qmake qcs.pro -spec macx-g++ CONFIG+=release
 +
make

Current revision as of 18:41, 19 October 2012

joachim heintz, august 2012

Contents

Preparation

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.)

Csound

Get the latest Csound for OSX from http://sourceforge.net/projects/csound/files. Run the installer.


Dependencies

Note: Create a folder in your home directory. Put all the dependencies here, as well as the CsoundQt sources.

libsndfile

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.)

Qt

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:

~/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake

Note: As of Oct. 19 2012, OS X 10.8 requires Qt 4.8.3, which is not curretly included in the SDK.

RtMidi

Get the RtMidi library from http://www.music.mcgill.ca/~gary/rtmidi.

cd to the root directory
./configure
cd to the tests directory
make

PythonQt

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/

CsoundQt

Get the CsoundQt sources (still creating a folder called 'qutecsound'). You can either

  1. download the latest release from http://sourceforge.net/projects/qutecsound/files/ or
  2. clone the git repository. Install git, cd to your favorite source direction, and type:
git clone git://qutecsound.git.sourceforge.net/gitroot/qutecsound/qutecsound

If you need write access to the repository use:

git clone ssh://mantaraya36@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
make clean
qmake qcs.pro -spec macx-g++ 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.

You can try a minimal build of CsoundQt (without dependencies) with:

cd to the root qutecsound directory
make clean
qmake qcs.pro -spec macx-g++ CONFIG+=release
make
Personal tools