jetson nano 安装deepstream5.0

参考网址:https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Quickstart.html

Install Dependencies

xhost + #如果是 ssh 远程连接开发板,在远程连接之前需要在输入这个命令
sudo apt install \
libssl1.0.0 \
libgstreamer1.0-0 \
gstreamer1.0-tools \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
libgstrtspserver-1.0-0 \
libjansson4=2.11-1 \
libgstrtspserver-1.0-dev

Install librdkafka (to enable Kafka protocol adaptor for message broker)

  1. Clone the librdkafka repository from GitHub:

$ git clone https://github.com/edenhill/librdkafka.git

  1. Configure and build the library:

$ cd librdkafka
$ git reset --hard 7101c2310341ab3f4675fc565f64f0967e135a6a
./configure
$ make
$ sudo make install
3. Copy the generated libraries to the deepstream directory:

$ sudo mkdir -p /opt/nvidia/deepstream/deepstream-5.0/lib
$ sudo cp /usr/local/lib/librdkafka* /opt/nvidia/deepstream/deepstream-5.0/lib

git clone https://gitee.com/mirrorgit/librdkafka
cd librdkafka
git reset --hard 7101c2310341ab3f4675fc565f64f0967e135a6a
./configure
make -j4
sudo make install
sudo mkdir -p /opt/nvidia/deepstream/deepstream-5.0/lib
sudo cp /usr/local/lib/librdkafka* /opt/nvidia/deepstream/deepstream-5.0/lib

Install NVIDIA V4L2 GStreamer plugin

  1. 首先换源(一般是不需要做这一步,需要跟自己的板子的jetpack版本一致)
sudo vi /etc/apt/sources.list.d/nvidia-l4t-apt-source.list

下面贴出的是jetpack版本4.4的源
nano:

deb https://repo.download.nvidia.com/jetson/common r32.4 main

deb https://repo.download.nvidia.com/jetson/t210 r32.4 main

nx:

deb https://repo.download.nvidia.com/jetson/common r32.4 main

deb https://repo.download.nvidia.com/jetson/t194 r32.4 main

tx2:

deb https://repo.download.nvidia.com/jetson/common r32.4 main

deb https://repo.download.nvidia.com/jetson/t186 r32.4 main
  1. 安装 nvidia-l4t-gstreamer
sudo apt update
sudo apt install --reinstall nvidia-l4t-gstreamer

Install the DeepStream SDK

  1. deb安装
sudo apt-get install ./deepstream-5.0_5.0.1-1_arm64.deb
  1. tar安装(如果是4.0,解压完后里面还有一个压缩包(binaries.tbz2),binaries.tbz2 解压到根目录)
sudo tar -xvf deepstream_sdk_v5.0.1_jetson.tbz2 -C /
cd /opt/nvidia/deepstream/deepstream-5.0
sudo ./install.sh
sudo ldconfig
posted @ 2021-03-05 11:49  cc96  阅读(1075)  评论(0编辑  收藏  举报