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.
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.
Follow the instructions to build other librairies from https://github.com/tomahawk-player/tomahawk/wiki/Ubuntu---Build-Instructions
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.
Follow instructions from the Debian 9.x
page given at the beguining.
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 fileCMakeList.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 ..
bycmake .. -Wno-dev
to suppress not required warnings.
I strongly suggest you to use the option -j $(nproc)
to make the compilation faster.
cmake -Wno-dev ..
make -j $(nproc)
Just run your favorite music player!
./tomahawk
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 usingstrace ./tomahawk
.I just wasted few hours without finding the right one... so I opted to install
vlc
.
With some google-fu
I solved my issues by using instructions from these pages:
- https://github.com/tomahawk-player/tomahawk
- https://github.com/tomahawk-player/tomahawk/wiki/Debian-Build-Instructions
- https://github.com/tomahawk-player/tomahawk/wiki/Ubuntu---Build-Instructions
- https://stackoverflow.com/questions/23703864/cmake-not-working-could-not-exec-qmake
- tomahawk-player/tomahawk#627