Skip to main content
Version: Next

Installation - Linux

This document describes the steps to install the software development environment for U3V camera on Linux.

Content (Click to jump)​

  • SDK Installation
    • C++ User
      • Install procedure
      • Set environment variables
      • Uninstall procedure
    • Python User
      • Install procedure
      • Uninstall procedure

C++ User ​

Prerequisite​

  • OS: ubuntu 22.04 with sudo privilege
  • Development environment
    • C++
  • Hardware:
    • USB3.0 compatible USB port x2

Download the setup script​

wget -O setup.sh https://github.com/Sensing-Dev/sensing-dev-installer/releases/download/v25.01.03/setup.sh

Install and setup SDK​

Note that --install-opencv, --install-gst-tools, and --install-gst-plugin are optional.

The following command install SDK and its dependencies with optional contents.

sudo bash setup.sh --install-opencv --install-gst-tools --install-gst-plugin 
  • --install-opencv: Add this option to install OpenCV with Sensing-Dev SDK.
  • --install-gst-tools: Add this option to install Gstreamer tools with Sensing-Dev SDK.
  • --install-gst-plugin: Add this option to install Gstreamer plugins with Sensing-Dev SDK.

Set Environment Variables​

export LD_LIBRARY_PATH=/opt/sensing-dev/lib:/opt/sensing-dev/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
Confirmation

Using /opt/sensing-dev/bin/arv-tool-0.8 may help to check if the software package is appropriately installed. Please check this page to know the procedure.

Uninstall SDK​

When you want to uninstall the package introduced by Sensing-Dev, please execute the following command.

sudo rm -r /opt/sensing-dev

Python User ​

Prerequisite​

  • OS: ubuntu 22.04 or later with sudo privilege
  • Development environment
    • Python >=3.10
  • Hardware:
    • USB3.0 compatible USB port x2
For users of previous versions

Sensing-Dev v24.09 or later uses ion-contrib-python instead of ion-python. Therefore, please uninstall ion-python with the following command.

pip uninstall ion-python -y

Install dependency​

Ubuntu 22.04​

sudo apt install -y libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-4.0
pip3 install -U pip
pip3 install pycairo
pip3 install 'PyGObject<=3.50'

Ubuntu later than 22.04​

install libgirepository-2.0-dev if you want to install latest PyGObject

sudo apt install -y libgirepository-2.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-4.0
pip3 install -U pip
pip3 install pycairo
pip3 install 'PyGObject>3.50'

Install Python Modules​

Install aravis-python and gendc-python and ion-contrib-python to fully utilize. It is optional to install opencv-python, which is required for some of tutorials.

pip3 install aravis-python==0.8.31.dev1
pip3 install ion-contrib-python==3.2.8
pip3 install gendc-python==0.4.1
pip3 install opencv-python

Uninstall Python Modules​

When you want to uninstall the modules introduced by Sensing-Dev, please execute the following command.

pip3 uninstall aravis-python ion-contrib-python gendc-python PyGObject  -y