Building OS X Application Bundle
Installing Homebrew & Dependencies
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) brew install git brew update brew tap tomahawk-player/tomahawk brew install --HEAD qtkeychain brew install --HEAD tomahawk-player/tomahawk/clucene brew install tomahawk-player/tomahawk/lastfmlib brew install `brew deps tomahawk` brew install --HEAD tomahawk-player/tomahawk/vlc brew install phonon-vlc
git clone git://github.com/tomahawk-player/tomahawk.git mkdir tomahawk/build && cd tomahawk/build cmake -DPhonon_DIR=/usr/local/Cellar/kde-phonon/4.6.0/lib/cmake/phonon .. make open tomahawk.app
After updating to a newer Qt version, you need to run the following commands to compile and link the dependencies against the new Qt:
cd /usr/local brew cleanup packages_using_qt=`brew uses --installed qt` echo $packages_using_qt | xargs brew remove echo $packages_using_qt | xargs brew install unset packages_using_qt
cd tomahawk rm -rf build
Then start again from creating the build directory.
CMake Failed to Execute
If you get 'Failed to execute: cmake' try again with a standard environment. For example the below.
brew install --env=std tomahawk-player/tomahawk/libechonest
Streaming Freezes Tomahawk
If you have trouble with streaming, such as Tomahawk freezing when trying to stream, redo the build like so:
cd tomahawk rm -rf build mkdir build cd build cmake -DPHONON_INCLUDE_DIR=/usr/local/Cellar/kde-phonon/4.6.0/include -DPHONON_LIBRARY=/usr/local/Cellar/kde-phonon/4.6.0/lib/libphonon.dylib .. make
Application Database and Preferences
In the case of a crash when nothing else seems to clear out a problem and the Tomahawk devs say it's ok to remove them, these are the paths to Tomahawk's database, cache and preferences.
Database and Cache
Although Homebrew provides a qt5 package, it is not yet actively supported by Tomahawk at the time of this writing. For now, proceed with the standard qt package (4.8.x).