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
- Install g++ if not installed:
sudo apt install g++
- Install cmake package:
sudo apt install cmake
- Install QT:
sudo apt install qtbase5-dev
- 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
- Navigate to downloaded Zint tar file with
cd
command - Extract the file with a command line tool or right click ‘extract here’
- Move into the directory with the
cd
command adjusting this command to the version number you downloaded:cd zint-2.4.2
- Navigate into the ‘build’ directory
cd build
- Cmake it:
sudo cmake ..
- Make it:
sudo make
- 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 🙂
I tried this process, but when I went to “sudo cmake ..”
it was prompted:
https://ibb.co/ngjZxHV
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.. 🙁
I downloaded the tar ball here:https://zint.github.io/, where are you?