2021-01-09 10:51 - Edit on GitHub

Use these instructions if you cannot install Polyphone on your Fedora distribution with the available installers in the section “Download” (verified: Aug 27, 2020 on Fedora 32, 64bit).

Prerequisite

Qt installation

After a base installation of Fedora, install the following packages (including a compiler) as pre-requisites for Qt development:

sudo dnf update
sudo dnf install @development-tools

Then you can either install the default Qt framework with the following command:

sudo dnf install qt-creator qt5-qtsvg-devel qt5-qttools-devel

Polyphone dependencies

Install the following dependencies (if you have Synaptic installed you could alternatively use it for installation):

sudo dnf install alsa-lib-devel jack-audio-connection-kit-devel portaudio-devel zlib-devel libogg-devel flac-devel libvorbis-devel glib2-devel openssl-devel rtmidi-devel stk-devel qcustomplot-qt5-devel

Build

Sources

First, get Polyphone sources from here or from Github.

If you want to continue the build with Qt Creator, follow now this tutorial: build with Qt Creator. Otherwise, continue the reading of this document.

polyphone.pro modifications

Open the file polyphone.pro and change -lqcustomplot into -lqcustomplot-qt5 (add "-qt5") in the following block:

# Location of QCustomplot
contains(DEFINES, USE_LOCAL_QCUSTOMPLOT) {
    INCLUDEPATH += lib/_option_qcustomplot
    HEADERS += lib/_option_qcustomplot/qcustomplot.h
    SOURCES += lib/_option_qcustomplot/qcustomplot.cpp
} else {
    LIBS += -lqcustomplot
}

This is required otherwise Polyphone will crash with a segmentation fault during startup.

Alternatively, you can uncomment (remove the leading "#") the following line so that you use an embedded copy of the qcustomplot library:

DEFINES += USE_LOCAL_QCUSTOMPLOT

Getting the executable

Go into source directory (where the file polyphone.pro is located), open a terminal and build Polyphone with this command:

qmake-qt5 && make

If everything goes well you will have the compiled file polyphone in the build-XXX subdirectory next to sources.

Troubleshooting

This forum category will give you some help if needed.

Cron Job Starts