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 powers 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
  • 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_Ubuntu18_v3.0.run
  • Run the ZED SDK installer.
$ ./ZED_SDK_Ubuntu18_v3.0.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 dependencies, tools and samples installation. Type y for yes and n for no and hit Enter. Hit Enter to pick the default option.

Installing in silent mode

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 -- an silent).

$ ./ZED_SDK_Ubuntu18_v3.0.run -- silent`

Installing SDK without Tools

To install the ZED SDK without any tools or samples, add the skip_tools option.

$ ./ZED_SDK_Ubuntu18_v3.0.run -- silent skip_tools`

Installing Runtime version only

To install the ZED SDK without any static library, headers, tools or samples, add the runtime_only option.

$ ./ZED_SDK_Ubuntu18_v3.0.run -- silent runtime_only`

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 to download a deb (network) version:

    • Linux
    • x86_64
    • Ubuntu
    • 18.04 or 16.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-${UBUNTU_VERSION}.pin
$ sudo mv cuda-${UBUNTU_VERSION}.pin /etc/apt/preferences.d/cuda-repository-pin-600
$ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/7fa2af80.pub
$ sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/ /"
  • 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-10-2

Restart your computer

At the end of the installation, restart your system to make sure your paths are updated.