Building OS X Application Bundle

From TomahaWiki

Jump to: navigation, search


Installing Homebrew & Dependencies

ruby -e "$(curl -fsSL"
brew install git
brew update
brew tap tomahawk-player/tomahawk
brew install gnutls
brew install google-sparsehash
brew install --HEAD qtkeychain
brew install --HEAD tomahawk-player/tomahawk/lucenepp --c++11
brew install --HEAD tomahawk-player/tomahawk/jreen
brew install tomahawk-player/tomahawk/lastfmlib
brew install `brew deps tomahawk`
brew install --HEAD tomahawk-player/tomahawk/vlc
brew install phonon-vlc

Compiling Tomahawk

git clone git://
mkdir tomahawk/build && cd tomahawk/build
cmake -DPhonon_DIR=/usr/local/Cellar/kde-phonon/4.8.1/lib/cmake/phonon ..


Compiling on Mavericks

cmake -DPhonon_DIR=/usr/local/Cellar/kde-phonon/4.8.1/lib/cmake/phonon -DWITH_BREAKPAD=OFF ..

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_DIR=/usr/local/Cellar/kde-phonon/4.8.1/lib/cmake/phonon  ..

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



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

Personal tools