Sign in

Building Polyphone for Ubuntu

Use these instructions if you cannot install Polyphone on your Linux distribution with the available installers in the section “Software”. This method is the one used for building the Linux versions of Polyphone, on Ubuntu 24.04.

Prerequisite

The following tools and libraries are required:

  • a compiler (build-essential)
  • cmake (cmake) and pkg-config (pkgconf)
  • qt 6 (qt6-base-dev, qt6-svg-dev, qt6-tools-dev, qt6-tools-dev-tools and qt6-l10n-tools)
  • alsa (libasound2-dev)
  • jack (libjack-jackd2-dev)
  • rtaudio (librtaudio-dev)
  • rtmidi (librtmidi-dev)
  • vorbis (libvorbis-dev)
  • ogg (libogg-dev)
  • flac (libflac-dev)
  • zlib (zlib1g-dev)
  • ssl (libssl-dev)
  • sndfile (libsndfile1-dev)

They can be installed with the following command:

sudo apt-get install build-essential cmake pkgconf qt6-base-dev qt6-svg-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libasound2-dev libjack-jackd2-dev librtaudio-dev librtmidi-dev libvorbis-dev libogg-dev libflac-dev zlib1g-dev libssl-dev libsndfile1-dev

You also need the sources of Polyphone, available here  or on GitHub .

Build

Polyphone is built with CMake, the project being described by the file CMakeLists.txt of the directory sources. At the root of the project (the directory containing sources), open a terminal and run the following commands:

cmake -S sources -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --parallel 4

An executable file polyphone in the directory build/bin should then appear if everything went right. It can be installed on the system with the command sudo cmake --install build.

In the case where libraries such as RtAudio or RtMidi are missing or are not in a compatible version in your distribution, the copies included in the sources of Polyphone can be used instead, by adding these options to the first command:

-DPOLYPHONE_LOCAL_RTAUDIO=ON -DPOLYPHONE_LOCAL_RTMIDI=ON

The packages librtaudio-dev and librtmidi-dev are then not necessary.

Other options can be added to the first command:

-DPOLYPHONE_QT_VERSION=5
Build with Qt 5 instead of Qt 6 (by default, the most recent version found is used). The packages of Qt 5 are then qtbase5-dev, libqt5svg5-dev, qttools5-dev and qttools5-dev-tools.
-DPOLYPHONE_BUILD_PLUGIN=ON
Also build the plugin.
-DPOLYPHONE_WOLFSSL=ON
Use wolfSSL instead of OpenSSL.

Note: if you are using Qt Creator, the project is opened via the file CMakeLists.txt present in the directory sources (see Using Qt Creator to build Polyphone).

Polyphone needs you!

Polyphone is free but there are costs associated with its website and development. A small donation will help a lot.

Donate
Learn the basics Try a tutorial
Scroll to
top