Skip to content

Latest commit

 

History

History
69 lines (58 loc) · 1.53 KB

BUILD-INSTRUCTIONS-LINUX.md

File metadata and controls

69 lines (58 loc) · 1.53 KB

gLabels Linux Build Instructions

General

Prerequisites

  • g++
  • CMake 2.8.12+
  • Qt5 5.6+ 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.

Compile and Install

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

Example: Ubuntu 19.04

Installing Prerequisites

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

Compile and Install gLabels

$ cd glabels-qt
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install