網頁

2020年10月23日 星期五

DeepStream 安裝

安裝必要 packages
$ 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

安裝驅動 參考 nvidia driver install on ubuntu
安裝 CUDA Toolkit 10.2
先到 https://developer.nvidia.com/cuda-downloads
尋找底下 Resources 的 Archive of Previous CUDA Releases
選擇 CUDA Toolkit 10.2
選擇 Linux/x86_64/Ubuntu/18.04/deb(local)
依據指令安裝,若已經安裝需要先移除
$ sudo apt-get remove cuda
$ sudo apt-cache madison cuda
$ sudo apt-get install cuda=10.2.89-1

安裝 TensorRT 7.0 https://developer.nvidia.com/nvidia-tensorrt-download
安裝 librdkafka
$ git clone https://github.com/edenhill/librdkafka.git
$ cd librdkafka
$ git reset --hard 7101c2310341ab3f4675fc565f64f0967e135a6a
$ ./configure
$ make
$ 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

下載 DeepStreamSDK
https://developer.nvidia.com/deepstream-getting-started
$ sudo apt-get install ./deepstream-5.0_5.0.0-1_amd64.deb
$ sudo tar -xvf deepstream_sdk_v5.0.0_x86_64.tbz2 -C /
$ cd /opt/nvidia/deepstream/deepstream-5.0/
$ sudo ./install.sh
$ sudo ldconfig

若是出現 no such element factory 錯誤, 無法建立 Gst elements
$ rm $HOME/.cache/gstreamer-1.0/registry.x86_64.bin



沒有留言:

張貼留言