Compile Ubuntu

From Strawberry Music Player Wiki
Jump to navigation Jump to search

Compiling on Ubuntu

Install the required dependencies:

   apt install -y git make cmake gcc g++ gettext \
   libglib2.0-dev libdbus-1-dev \
   libboost-dev libsqlite3-dev libgnutls28-dev libicu-dev libasound2-dev libpulse-dev \
   qt6-base-dev qt6-base-dev-tools qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools \
   libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev \
   libchromaprint-dev libfftw3-dev libtag1-dev libcdio-dev libmtp-dev libgpod-dev libebur128-dev

Compile and install:

   git clone --recursive https://github.com/strawberrymusicplayer/strawberry
   cd strawberry
   mkdir build
   cd build
   cmake ..
   make -j$(nproc)
   sudo make install

(If you already did `git clone`, do `git pull` to make sure you have the latest code).