Install Zivid + HALCON for LINUX
To use Zivid with HALCON, we first need to install the respective software and configure some system environments.
Install Zivid SDK
Install Zivid SDK by following the instruction on this page: Software Installation.
Installing GenICamTL package
Open a terminal window by pressing Ctrl + Alt + T keys on the keyboard.
If you have not yet, create a temporary folder and navigate into it:
mkdir Zivid
cd Zivid
Get the latest Zivid Software version:
zividVersion=$(curl -L https://www.zivid.com/software/latest_version)
Download and install all *.deb packages:
wget https://www.zivid.com/hubfs/softwarefiles/releases/${zividVersion}/u22/zivid-genicam_${zividVersion}_amd64.deb
sudo apt install ./zivid-genicam_${zividVersion}_amd64.deb
wget https://www.zivid.com/hubfs/softwarefiles/releases/${zividVersion}/u20/zivid-genicam_${zividVersion}_amd64.deb
sudo apt install ./zivid-genicam_${zividVersion}_amd64.deb
wget https://www.zivid.com/hubfs/softwarefiles/releases/${zividVersion}/u18/zivid-genicam_${zividVersion}_amd64.deb
sudo apt install ./zivid-genicam_${zividVersion}_amd64.deb
Note
Support for Ubuntu 16.04 is removed since SDK 2.7. To see Ubuntu 16.04 instructions for an earlier SDK version, change the Knowledge Base version in the top left corner.
In order for the setup to take effect, you must either log out and back in on linux or type:
source /etc/profile.d/zivid-genicam-gentl.sh
Install HALCON
Visit MVTec download page and under Product choose HALCON. Choose an appropriate version and select Linux as operating system. Download and install HALCON according to their documentation. We recommend that you use a HALCON version that has been tested by Zivid.
Set environment variables
After the installation of Zivid and HALCON, the following environment variables must be set or modified in order for HALCON to work. The environments should be set according to HALCON’s installation guide. An example for HALCON 21.05 follows.
To adjust the environment variables you should set the variables in a login script or a shell resource script, e.g., cshrc, profile or bashrc. Paste the following sample shell script in at the bottom of the file:
# Sample shell script for HALCON environment settings
# (sh syntax)
# If you are using the Bourne shell source this file with the following
# command:
# source .profile_halcon
HALCONARCH=x64-linux; export HALCONARCH
HALCONROOT="/opt/halcon"; export HALCONROOT
HALCONEXAMPLES=${HALCONROOT}/examples; export HALCONEXAMPLES
HALCONIMAGES=${HALCONROOT}/examples/images; export HALCONIMAGES
PATH=${HALCONROOT}/bin/${HALCONARCH}:${PATH}; export PATH
if [ ${LD_LIBRARY_PATH} ] ; then
LD_LIBRARY_PATH=${HALCONROOT}/lib/${HALCONARCH}:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=${HALCONROOT}/lib/${HALCONARCH}; export LD_LIBRARY_PATH
fi
Afterwards, verify that LD_LIBRARY_PATH
is set correctly:
echo $LD_LIBRARY_PATH
Get started!
You are now ready to go and try out some of our HALCON samples! To launch HALCON, open a terminal window and run:
hdevelop&