How to Install ZED SDK on Linux
Download and Install the ZED SDK #
The ZED SDK for Linux contains all the drivers and libraries that power your camera along with tools that let you test its features and settings.
Download the ZED SDK for Linux.
Go to the folder where the installer has been downloaded.
$ cd path/to/download/folder
- If you don’t have it installed already, install
zstd
. It will be needed for the installer to run.
$ sudo apt install zstd
- Add execution permission to the installer using the
chmod +x
command. Make sure to replace the installer name with the version you downloaded.
$ chmod +x ZED_SDK_Ubuntu22_cuda11.8_v4.0.0.zstd.run
- Run the ZED SDK installer.
$ ./ZED_SDK_Ubuntu22_cuda11.8_v4.0.0.zstd.run
At the beginning of the installation, the Software License will be displayed, hit
q
after reading it.During the installation, you might have to answer some questions on the installation of dependencies, tools and samples. Type
y
for yes andn
for no and hitEnter
. HitEnter
to pick the default option.
Installing in silent mode #
The silent-mode installation allows you to install specific configurations of the ZED SDK. It removes any display or manual configuration options during the installation process.
The installer can be launched in silent mode with the -- silent
option (with a space between --
and silent
).
$ ./ZED_SDK_Ubuntu22_cuda11.8_v4.0.0.zstd.run -- silent
Installing Runtime version only #
To install the ZED SDK without any static library, headers, tools or samples, add the runtime_only
option.
$ ./ZED_SDK_Ubuntu22_cuda11.8_v4.0.0.zstd.run -- silent runtime_only
Installing SDK without checking CUDA #
To install the ZED SDK without checking that CUDA is installed, add the skip_cuda
option.
$ ./ZED_SDK_Ubuntu22_cuda11.8_v4.0.0.zstd.run -- silent skip_cuda
Installing SDK without Object Detection #
To install the ZED SDK without the AI module (required for Object Detection, Body Tracking and Neural Depth), add the skip_od_module
option.
$ ./ZED_SDK_Ubuntu22_cuda11.8_v4.0.0.zstd.run -- silent skip_od_module
Installing SDK without Python Wrapper #
To install the ZED SDK without the Python wrapper, add the skip_python
option.
$ ./ZED_SDK_Ubuntu22_cuda11.8_v4.0.0.zstd.run -- silent skip_python
Installing SDK without sl_hub
#
To install the ZED SDK without sl_hub
, add the skip_hub
option.
$ ./ZED_SDK_Ubuntu22_cuda11.8_v4.0.0.zstd.run -- silent skip_hub
Installing SDK without Tools #
To install the ZED SDK without any tools or samples, add the skip_tools
option.
$ ./ZED_SDK_Ubuntu22_cuda11.8_v4.0.0.zstd.run -- silent skip_tools
Setup CUDA #
CUDA is an NVIDIA® library used by the ZED SDK to run fast AI and computer vision tasks on your graphics card. During the ZED SDK installation, CUDA is automatically downloaded and installed by the ZED SDK if it is not detected on your computer.
Follow the steps below if you are installing CUDA manually.
Download and install CUDA from the CUDA Toolkit archive.
On the CUDA download page, select the following options. We recommend downloading a deb (network) version:
Linux
x86_64
Ubuntu
22.04
or20.04
deb (network)
- Find out what Ubuntu release you are running using
lsb_release
command.
$ source /etc/lsb-release
$ UBUNTU_VERSION=ubuntu${DISTRIB_RELEASE/./}
- Add the CUDA
apt
repository.
$ wget https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/cuda-keyring_1.0-1_all.deb
$ sudo dpkg -i cuda-keyring_1.0-1_all.deb
- Update the
apt
repository cache.
$ sudo apt-get update
- Install CUDA. We recommend specifying the exact CUDA version you’re installing.
$ sudo apt-get -y install cuda-11-8
Restart your computer #
At the end of the installation, restart your system to make sure your paths are updated.