Business, Technology, Tutorial, Ubuntu

How to Install Zint on Ubuntu

How to install Zint (command line) on Ubuntu.

I was hoping this would work with a GUI but for the life of me I could not figure it out nor find the repository. It used to work, obviously, by a simple sudo apt install but I’m gettin the ‘can’t find repository’ message. I think it might only work for 20.04 or something. So, At least I figured out how to get the command line version working for now for the records. Hope this helps.

Download Zint

Download the latest Zint version as a .tar.gz file from here (there might be a better github location as a disclaimer?)

Install dependencies for Zint

  1. Install g++ if not installed: sudo apt install g++
  2. Install cmake package: sudo apt install cmake
  3. Install QT: sudo apt install qtbase5-dev
  4. Install QT tools: sudo apt install qttools5-dev

If you want, you can also do this all with one command:

sudo apt install g++ cmake qtbase5-dev qttools5-dev

Install Zint

Now that you have all the packages installed let’s install Zint

  1. Navigate to downloaded Zint tar file with cd command
  2. Extract the file with a command line tool or right click ‘extract here’
  3. Move into the directory with the cd command adjusting this command to the version number you downloaded: cd zint-2.4.2
  4. Navigate into the ‘build’ directory cd build
  5. Cmake it: sudo cmake ..
  6. Make it: sudo make
  7. Make install it: sudo make install

Run it

See all the options and run it in the terminal: zint

Using it

This link to the manual should keep you busy for a while 🙂

Tagged , , , ,

4 thoughts on “How to Install Zint on Ubuntu

    1. Hmm. strange. I’m not that smart but I ‘think’ you didn’t install all the dependencies correctly from the “Install dependencies for Zint” above the cmake stuff? Try those again? Also, I’m on ubuntu 18.04 now so I wonder if that will change anything? You definitely seemed close though.. 🙁

  1. To anyone who’s experiencing issues with the Zint installation on Ubuntu or Linux Mint. Just follow the installation of the dependencies as per the author of the blog post. And then please download the Zint source from https://sourceforge.net/projects/zint/.

    Once done, untar the tarball and cd into it.
    Create the ‘build’ folder inside it.
    Navigate into the ‘build’ directory cd build
    Cmake it: sudo cmake ..
    Make it: sudo make
    Make install it: sudo make install

Leave a Reply

Your email address will not be published. Required fields are marked *