Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to build
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:
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 \ libuchardet-dev
sudo apt-get install \ build-essential \ pkg-config \ cmake3 \ qtbase5-dev \ qttools5-dev-tools \ qttools5-dev \ libuchardet-dev
sudo dnf install \ gcc-c++ \ cmake \ qt5-qtbase-devel \ qt5-qttools-devel \ qt5-linguist \ uchardet-devel
wget https://github.com/flacon/flacon/archive/master.zip -O flacon-master.zip
or by cloning the git repository see github help.
git clone https://github.com/flacon/flacon.git
Building and installing
Now, suppose you have downloaded the
flacon-master.zip 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.
$ mkdir -p ~/src/flacon/ $ cp /where/you/put/the/downloaded/flacon-master.zip ~/src/flacon/
Unpack the archive.
$ cd ~/src/flacon/ $ unzip flacon-master.zip
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
builddirectory 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
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