Building OS X Application Bundle
From TomahaWiki
Contents |
Installing Homebrew & Dependencies
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) brew install git brew update brew tap tomahawk-player/tomahawk brew tap owncloud/owncloud brew install --HEAD qtkeychain brew install tomahawk-player/tomahawk/cmake brew install --HEAD tomahawk-player/tomahawk/clucene brew install tomahawk-player/tomahawk/lastfmlib tomahawk-player/tomahawk/libechonest brew install `brew deps tomahawk` brew install --HEAD tomahawk-player/tomahawk/vlc brew install phonon-vlc
Compiling Tomahawk
git clone git://github.com/tomahawk-player/tomahawk.git mkdir tomahawk/build && cd tomahawk/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 open tomahawk.app
Troubleshooting
Updating Qt
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
Runtime Issues
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
~/Library/Application Support/Tomahawk
Preferences
~/Library/Preferences/org.tomahawk-player.*
Qt 5
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).

