Missing libnvbufsurface.so at /opt/nvidia/deepstream/deepstream-6.1/lib/libnvbufsurface.so in Docker on Jetson Xavier

Setup Info:
Platform: Jetson Xavier
Deepstream Version: 6.1
Jetpack Version: 5.0.1
TensorRT Version: 8.4.0
Issue Type: question

Hi everyone,
I am currently trying to get a running Docker environment for my Pyhton Deepstream application.

Following the tutorial at deepstream_python_apps/bindings at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub the container looks like this so far:

FROM nvcr.io/nvidia/deepstream-l4t:6.1-samples

RUN apt update -y
RUN apt upgrade -y

# GStreamer Dependencies
RUN apt install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev \
    gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
    gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl \
    gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

# Deepstream Dependencies
RUN apt install -y python3-gi python3-dev python3-gst-1.0 python-gi-dev git python-dev \
    python3 python3-pip python3.8-dev cmake g++ build-essential libglib2.0-dev \
    libglib2.0-dev-bin libgstreamer1.0-dev libtool m4 autoconf automake libgirepository1.0-dev libcairo2-dev

# Clone the Deepstream Python Apps Repo into <deepstream>/sources
WORKDIR /opt/nvidia/deepstream/deepstream/sources
RUN git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps.git
WORKDIR /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/
RUN git submodule update --init

# Install Gst-Python
RUN apt install -y apt-transport-https ca-certificates
RUN update-ca-certificates

# Build and install gst-python
WORKDIR 3rdparty/gst-python
RUN ./autogen.sh
RUN make
RUN make install

# Compile the python bindings
RUN mkdir /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/build
WORKDIR /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/build
RUN cmake ..
RUN make

CMD ["/bin/bash"]

The cmake command from section 2.1.1 of the tutorial fails stating:

Missing libnvbufsurface.so at
  /opt/nvidia/deepstream/deepstream-6.1/lib/libnvbufsurface.so

There is a symlink at /opt/nvidia/deepstream/deepstream-6.1/lib/libnvbufsurface.so pointing to /usr/lib/aarch64-linux-gnu/tegra/libnvbufsurface.so, which does not exist.

Thank you in advance for you help!

I’ve resolved my issue by following the simpler route and downloading the compiled arm python bindings:

FROM nvcr.io/nvidia/deepstream-l4t:6.1-samples

RUN apt update -y
RUN apt upgrade -y

# GStreamer Dependencies
RUN apt install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev \
    gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
    gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl \
    gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

# Gst RTSP Server
RUN apt install -y libgstrtspserver-1.0-dev gstreamer1.0-rtsp

# Deepstream Dependencies
RUN apt install -y python3-gi python3-dev python3-gst-1.0 python-gi-dev git python-dev \
    python3 python3-pip python3.8-dev cmake g++ build-essential libglib2.0-dev \
    libglib2.0-dev-bin libgstreamer1.0-dev libtool m4 autoconf automake libgirepository1.0-dev libcairo2-dev

# Clone the Deepstream Python Apps Repo into <deepstream>/sources
WORKDIR /opt/nvidia/deepstream/deepstream/sources
RUN git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps.git

# Download and install the Deepstream Python Bindings
RUN mkdir /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/build
WORKDIR /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/build
RUN curl -O -L https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/releases/download/v1.1.3/pyds-1.1.3-py3-none-linux_aarch64.whl
RUN pip install ./pyds-1.1.3-py3-none-linux_aarch64.whl

CMD ["/bin/bash"] 

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.