WSL Installation Step by step?

Hi,

I’m trying to run CVB 13.04.005 on WSL (Ubuntu 20.04 x64) using python 3.9, but having some issues:

I installed CVB with the following script:

#!/bin/bash

# Install packages required for CVB
sudo apt update --fix-missing
sudo apt upgrade -y
sudo apt-get install -y wget unzip
sudo apt-get install -y build-essential cmake libgtest-dev libice6 libsm6 libfontconfig1 libfreetype6 libxext-dev
sudo apt-get install -y libgtk-3-dev libglade2-0 libglade2-dev libpcap0.8 libcap2

# Obtain common vision blox (CVB) package and unzip it
CVB_VERSION=13.04.005
CVB_ZIP=cvb-${CVB_VERSION}-ubu2004-x86_64.zip

sudo wget https://ftp.commonvisionblox.com/webdavs/forum/setups/cvb/linux-x86_64/${CVB_ZIP}
sudo unzip -o ${CVB_ZIP} -d /cvb
sudo rm ${CVB_ZIP} || true

# Install CVB
RUN chmod +x /cvb/install_cvb.sh && /cvb/install_cvb.sh && ldconfig

# Start CVB
./src/python/drivers/line_scanner/opt/scripts/start_cvb.sh

CVB services I start with this script:

#!/bin/bash

CVB_VERSION=13.04.005

# Start CVB
/opt/cvb-${CVB_VERSION}/bin/siLogSvc -s
/opt/cvb-${CVB_VERSION}/bin/cvmgmtd
/opt/cvb-${CVB_VERSION}/bin/siGevSvc -s
. /etc/profile.d/cvb_environment.sh

What am I doing wrong? I tried to solve this by replacing the CVB site-package init.py file (as recommended in other topics on this forum but without success. Additional tips on how to use CVB with WSL would also be greatly appreciated.

Hi @Dyna
install_cvb.sh installs everything you need. Remove the RUN before chmod +x /cvb/install_cvb.sh && /cvb/install_cvb.sh
There shouldn’t be a need for the start_cvb.sh script…

Furthermore, use the most recent version, if you have the choice…

Thank you for your help @s-woe !
Updating to the most recent version (14.00.002) did the trick