2021-12-22 13:51:22 +00:00
|
|
|
#!/bin/bash
|
2022-07-04 09:56:45 +00:00
|
|
|
##makedesc: Install zint (latest)
|
|
|
|
|
2022-01-08 06:35:10 +00:00
|
|
|
echo
|
|
|
|
echo "==============================================="
|
2022-07-04 09:56:45 +00:00
|
|
|
echo "Installing zint (latest)..."
|
2022-01-08 06:35:10 +00:00
|
|
|
echo "==============================================="
|
|
|
|
echo
|
2021-12-22 13:51:22 +00:00
|
|
|
|
2022-01-08 06:35:10 +00:00
|
|
|
sudo apt install -y --autoremove \
|
|
|
|
g++ \
|
|
|
|
cmake \
|
|
|
|
qtbase5-dev \
|
|
|
|
qttools5-dev \
|
|
|
|
libpng-dev
|
2021-12-22 13:51:22 +00:00
|
|
|
|
|
|
|
if installed git; then
|
|
|
|
# 2.9.* ===============================================================================
|
2022-07-04 09:56:45 +00:00
|
|
|
sudo git clone git@github.com:zint/zint.git /usr/src/zint
|
2021-12-22 13:51:22 +00:00
|
|
|
cd /usr/src/zint
|
|
|
|
sudo cmake .
|
|
|
|
sudo make
|
|
|
|
sudo make install
|
|
|
|
else
|
|
|
|
echo "You need git to be installed!"
|
|
|
|
# 2.4.2 ===============================================================================
|
|
|
|
# https://wayneoutthere.com/2021/02/17/how-to-install-zint-on-ubuntu/
|
|
|
|
# sudo wget https://github.com/downloads/zint/zint/zint-2.4.2.tar.gz -O /usr/src/zint.tar.gz
|
|
|
|
# sudo tar -C /usr/src/ -xzf /usr/src/zint.tar.gz
|
|
|
|
# sudo rm -rf /usr/src/zint.tar.gz
|
|
|
|
# cd /usr/src/zint-2.4.2/build
|
|
|
|
# sudo cmake ..
|
|
|
|
# sudo make
|
|
|
|
# sudo make install
|
|
|
|
# sudo rm -rf /usr/src/zint*
|
|
|
|
# cd -
|
|
|
|
fi
|