Updated Compiling from Source (markdown)

Jonas Kvinge 2019-11-17 01:40:13 +01:00
parent b94d360671
commit 815e4cdb12
1 changed files with 30 additions and 22 deletions

@ -1,8 +1,8 @@
## Introduction
You probably don't need to compile Clementine yourself. [We already provide downloads](http://www.clementine-player.org/downloads) for Debian, Ubuntu, Fedora, Windows and Mac OS X. If you don't want to use one of the above packages, or you want to compile the latest version of Clementine from git, then read on.
You probably don't need to compile Clementine yourself. [We already provide downloads](http://www.clementine-player.org/downloads) for Debian, Ubuntu, Fedora, Windows and macOS. If you don't want to use one of the above packages, or you want to compile the latest version of Clementine from git, then read on.
The instructions below are for Linux. Compiling for [Windows](https://github.com/clementine-player/Clementine/wiki/Compiling-from-Source-(Windows)) or [Mac OS X](https://github.com/clementine-player/Clementine/wiki/Compiling-from-Source-(Mac-OS-X)) is a little more complicated.
The instructions below are for Linux. Compiling for [Windows](https://github.com/clementine-player/Clementine/wiki/Compiling-from-Source-(Windows)) or [macOS](https://github.com/clementine-player/Clementine/wiki/Compiling-from-Source-(macOS)) is a little more complicated.
## Prerequisites
@ -12,17 +12,15 @@ You need CMake and the development packages for these libraries:
* gettext
* libgstreamer
* libgstreamer-plugins-base
* liblastfm
* liblastfm-qt5
* libglib2.0
* Qt 4
* Qt 5
* taglib
* libfftw3 or libchromaprint
* libfftw3
* libchromaprint
* GLEW
* libqjson
* libsqlite3
* libprotobuf and protobuf-compiler
* libchromaprint
* libqca2 (Qt Cryptographic Architecture for Spotify support)
* libgpod (optional, for iPod support)
* libplist (optional, for iPod support)
* libusbmuxd (optional, for iPod support)
@ -41,23 +39,33 @@ On Precise (12.04) or older you'll need to add a PPA to get packages for gstream
On Ubuntu (and probably Debian) you can install everything you need with:
sudo apt-get install liblastfm-dev libtag1-dev gettext libboost-dev \
libboost-serialization-dev libqt4-dev qt4-dev-tools libqt4-opengl-dev \
cmake g++ 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 libchromaprint-dev libqca2-dev
sudo apt-get install -y cmake g++ git gettext \
libglib2.0-dev libdbus-1-dev \
libboost-dev libprotobuf-dev protobuf-compiler libsqlite3-dev sqlite3 libcrypto++-dev \
libasound2-dev libpulse-dev libtag1-dev \
qtbase5-dev qtbase5-dev-tools qtbase5-private-dev \
libqt5core5a libqt5gui5 libqt5widgets5 libqt5concurrent5 libqt5network5 libqt5sql5 \
libqt5x11extras5-dev libqt5dbus5 qttools5-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev \
gstreamer1.0-alsa gstreamer1.0-pulseaudio \
libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libgstreamer-plugins-bad1.0-0 \
libchromaprint-dev libfftw3-dev libsparsehash-dev ibglew-dev \
libcdio-dev libmtp-dev libgpod-dev libplist-dev libusbmuxd-dev \
liblastfm5-dev
On Fedora:
su -c "dnf install make gcc-c++ liblastfm-devel taglib-devel gettext boost-devel \
qt-devel cmake gstreamer1-devel gstreamer1-plugins-base-devel glew-devel \
libgpod-devel qjson-devel libplist-devel \
libusbmuxd-devel libmtp-devel protobuf-devel protobuf-compiler cryptopp-devel \
libcdio-devel fftw-devel sparsehash-devel sqlite-devel \
pulseaudio-libs-devel sha2-devel libchromaprint-devel qca-devel"
sudo dnf install --assumeyes \
git cmake glib glibc gcc-c++ gettext \
desktop-file-utils libappstream-glib hicolor-icon-theme \
dbus-devel boost-devel protobuf-devel protobuf-compiler sqlite-devel \
alsa-lib-devel pulseaudio-libs-devel libnotify-devel \
qt5-devel qt5-qtbase-devel qt5-qtx11extras-devel qt5-qttools-devel \
gstreamer1-devel gstreamer1-plugins-base-devel \
libcdio-devel libgpod-devel libplist-devel libusbmuxd-devel libmtp-devel \
taglib-devel libchromaprint-devel fftw-devel liblastfm-qt5-devel glew-devel cryptopp-devel sparsehash-devel
You can also optionally install ccache, to speed up compilation in some cases.
On Ubuntu: