GoldenPi007 Posted May 11, 2017 Share Posted May 11, 2017 Hello everyone, today I would like to show you how to compile Clementine on an Orange Pi PC (or PC Plus). I'm writing this because I couldn't find anything related to this topic on the internet, so I wrote this not very detailed guide. Step 1: Install all required dependencies for Clementine sudo apt-get update sudo apt-get install liblastfm-dev libtag1-dev gettext libboost-dev \ libboost-serialization-dev libqt4-dev qt4-dev-tools libqt4-opengl-dev \ cmake libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \ libglew1.5-dev libqjson-dev libgpod-dev libplist-dev \ libusbmuxd-dev libmtp-dev libcdio-dev \ protobuf-compiler libprotobuf-dev libcrypto++-dev \ libfftw3-dev libsparsehash-dev libsqlite3-dev libpulse-dev \ libqtwebkit-dev libechonest-dev libchromaprint-dev libqca2-dev Optionally install ccache to speed up the build process (recommended) sudo apt-get install ccache Step 2: Get the source files git clone https://github.com/clementine-player/Clementine.git && cd Clementine Step 3: Enable temporary swap (for some reason make allways failed without it) sudo dd if=/dev/zero of=swapfile bs=1M count=1024 sudo mkswap swapfile sudo swapon swapfile Step 4: Edit some source files... Edit the "src/analyzers/analyzerbase.h" file. Find this part and edit it like this: Before: #include <QGLWidget> #ifdef Q_WS_MACX #include <OpenGL/gl.h> #include <OpenGL/glu.h> #else #include <GL/gl.h> #include <GL/glu.h> #endif After: #include <QGLWidget> #ifdef Q_WS_MACX #include <OpenGL/gl.h> #include <OpenGL/glu.h> #else #include <GLES2/gl2.h> #endif And the "src/visualisations/projectmvisualisation.cpp" file: Before: #ifdef Q_OS_MAC #include "core/mac_startup.h" #include <OpenGL/gl.h> #else #include <GL/gl.h> #endif After: #ifdef Q_OS_MAC #include "core/mac_startup.h" #include <OpenGL/gl.h> #else #include <GLES2/gl2.h> #endif Step 5: Compiling (this will take a long time) Go to the bin directory and run the following commands: cmake ../ sudo make sudo make install Step 6: Install Gstreamer plugins (clementine will crash without them) sudo apt-get install gstreamer1.0-plugins-* Step 7: Remove swap sudo swapoff swapfile sudo rm swapfile And that's it! Hope this works for you too. Link to comment Share on other sites More sharing options...
Geraham Posted May 12, 2017 Share Posted May 12, 2017 Thanks, Russian version http://ua3nbw.ru/all/clementine-audiopleer/ Link to comment Share on other sites More sharing options...
Recommended Posts