- g++
- CMake 2.8.12+
- Qt5 5.4+ Development Packages ( Qt5Core, Qt5Widgets, Qt5PrintSupport, Qt5Xml, Qt5Svg )
- zlib 1.2+ Development Package
Even if the above library packages are installed, their corresponding development packages may also need to be installed. Development packages are usually named something like libraryName-dev or libraryName-devel.
gLabels uses the CMake meta build system. Use the following commands to build and install gLabels:
$ cd glabels_source_directory $ mkdir build $ cd build $ cmake .. $ make $ sudo make install
sudo apt install cmake
sudo apt install qtbase5-dev libqt5svg5-dev qttools5-dev zlib1g-dev
QREncode (Optional)
sudo apt install pkgconf libqrencode-dev
Zint (Optional)
Install zint from source:
wget https://downloads.sourceforge.net/project/zint/zint/2.6.3/zint-2.6.3_final.tar.gz
tar xzf zint-2.6.3_final.tar.gz
cd zint-2.6.3.src/
mkdir build && cd build && cmake .. && make
sudo make install
GNU Barcode (Optional)
As of version 0.99, GNU Barcode no longer installs its library. So install 0.98 from source:
wget https://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz
tar xzf barcode-0.98.tar.gz
cd barcode-0.98/
./configure && make
sudo make install
$ cd glabels-qt
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install