# Building ## Dependencies ### Libraries - [Qt](https://www.qt.io/) - at least 5.9 (codebase should largely work with Qt 5.7) - core, widgets - webengine, webenginewidgets - [libconfig](https://hyperrealm.github.io/libconfig/) ### Tools * A working compiler - gcc or clang on Linux - msvc on Windows due to QtWebEngine * qbs - minimal version 1.8.0 ## Compiling ### Create qbs configuration Before you can build anything with qbs, you need to set up the compiler toolchain. ``` qbs setup-toolchains --detect qbs setup-qt /usr/bin/qmake-qt5 qt5 ``` ### Compiling ``` mkdir ../build qbs build -d ../build profile:qt5 release ``` ## Packaging ### Source Tarball ``` # Get source code from the repository git archive --format=tar HEAD > head.tar # Compress with lzip lzip -9 --force --output=head.tar.lz head.tar # Generate checksum sha512sum --binary head.tar.lz > head.tar.lz.sha512 ``` ### makepkg A PKGBUILD is provided in linux/makepkg/PKGBUILD. ## Troubleshooting ### Cannot link libconfig You don't have pkg-config installed.