How to build

Alexander Sokolov edited this page Jul 31, 2018 · 5 revisions

One simple solution is to install the program from the package for your distribution. Access the list of packages at our site.


Flacon uses CMake as its build tool, and requires following libraries:

  • Qt5
  • libuchardet

The names of packages depend on your distributions. Here are instructions for some of the popular distributions:

Ubuntu (Xenial and later)

sudo apt-get install \
  build-essential \
  pkg-config \
  cmake \
  qtbase5-dev \
  qttools5-dev-tools \

Ubuntu (Trusty)

sudo apt-get install \
  build-essential \
  pkg-config \
  cmake3 \
  qtbase5-dev \
  qttools5-dev-tools \
  qttools5-dev \


sudo dnf install \
  gcc-c++ \
  cmake \
  qt5-qtbase-devel \
  qt5-qttools-devel \
  qt5-linguist \

Getting sources

You can download sources of the latest stable version here. The source codes of the version being developed are always accessible at our page in github. You can get them as zip archive

wget -O

or by cloning the git repository see github help.

git clone

Building and installing

Now, suppose you have downloaded the archive, here are roughly what you should do next (character $ below indicates the shell prompt with normal user privilege)

  • Place the archive at your working directory, e.g. ~/src/flacon:

    $ mkdir -p ~/src/flacon/
    $ cp /where/you/put/the/downloaded/ ~/src/flacon/
  • Unpack the archive.

    $ cd ~/src/flacon/
    $ unzip
  • Make a new directory to perform an out-of-source build (recommended way to build software with CMake):

    $ cd ~/src/flacon/flacon-master
    $ mkdir build
  • Go to the build directory and run cmake:

    $ cd build
    $ cmake ..
  • There are somee useful variables to customize:

    • -DCMAKE_INSTALL_PREFIX=/usr - If "make install" is invoked or INSTALL is built, this directory is pre-pended onto all install directories. This variable defaults to /usr/local on UNIX.
    • -DBUILD_TESTS=Yes - Build unit tests program. You can find it in the build/tests directory.
  • If the configuration phase runs successfully, run make as usual.

    $ make
  • For the installation, run make install. However, for better management with package manager, checkinstall is preferred over the traditional make install. Anyway, suit yourself.

    $ sudo make install
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.