Skip to content

Instantly share code, notes, and snippets.

@Jiab77
Last active January 31, 2020 14:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Jiab77/e8e2e98a427eee6760045b26c7161501 to your computer and use it in GitHub Desktop.
Save Jiab77/e8e2e98a427eee6760045b26c7161501 to your computer and use it in GitHub Desktop.
Compile Tomahawk Music Player on Ubuntu 18.04

Compile Tomahawk Music Player on Ubuntu 18.04

Just because I loved this music player but the project is abandonned and not available in Ubuntu 18.04 repository...

So I wanted to keep notes to compile it on Ubuntu 18.04 LTS.

Get the sources

Use the packages for Debian 9.x in https://github.com/tomahawk-player/tomahawk/wiki/Debian-Build-Instructions

sudo apt install qttools5-dev libqt5svg5-dev libqt5webkit5-dev libqca-qt5-2-dev libkf5attica-dev qt5keychain-dev libtelepathy-qt5-dev libquazip5-1 libquazip5-dev libquazip5-headers liblastfm5-1 liblastfm5-dev libboost-filesystem-dev

I have used a modified package list to install because echoest libs are not found in 18.04.

Missing dependencies

Follow the instructions to build other librairies from https://github.com/tomahawk-player/tomahawk/wiki/Ubuntu---Build-Instructions

libechonest

I had a lot of troubles getting this part done, here is what I did.

sudo apt install qt4-default libqjson-dev doxygen graphviz

Now you can proceed with cmake .. and other commands.

extra-cmake-modules

Follow instructions from the Debian 9.x page given at the beguining.

main dependencies

Needs a lot of external dependencies...

sudo apt install qt5-default liblucene++-dev libtag-extras-dev libsparsehash-dev libgnutls28-dev libvlc-dev libssl1.0-dev libjreen-qt5-dev

Before running cmake, edit the file CMakeList.txt and comment the line:

# original line
option(BUILD_TESTS "Build Tomahawk with unit tests" ${BUILD_NO_RELEASE})

# becomes
#option(BUILD_TESTS "Build Tomahawk with unit tests" ${BUILD_NO_RELEASE})

If you don't do that, the compilation will fail around 77%... Took me long to find it.

If you're not from the project developpers team, you might replace cmake .. by cmake .. -Wno-dev to suppress not required warnings.

Start compilation

I strongly suggest you to use the option -j $(nproc) to make the compilation faster.

cmake -Wno-dev ..
make -j $(nproc)

Now... Enjoy! 😁

Just run your favorite music player!

./tomahawk

Issues

If you get a core dump while trying to run your sweet new tomahawk, try installing vlc and it will works after.

If you don't want to install a complete vlc, you can try to find missing binaries by using strace ./tomahawk.

I just wasted few hours without finding the right one... so I opted to install vlc.

References

With some google-fu I solved my issues by using instructions from these pages:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment