Can't build deepstream-app after installing DeepStream 6.1.1

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Orin AGX
• DeepStream Version 6.1.1
• JetPack Version (valid for Jetson only) 5.0.2
• TensorRT Version 8.4.1.5
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

I have just installed DeepStream 6.1.1 using the Debian package and following instructions from this link.

First thing I tried to do is run the reference app found under

/opt/nvidia/deepstream/deepstream-6.1/sources/apps/sample_apps/deepstream-app

So, I have edited the Makefile adding

CUDA_VER?=11.4

Then I tried to

make all

but get the following error:

Package json-glib-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing json-glib-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'json-glib-1.0' found Package json-glib-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing json-glib-1.0.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘json-glib-1.0’ found
cc -c -o deepstream_app.o -DPLATFORM_TEGRA -I./ -I…/…/apps-common/includes -I…/…/…/includes -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I /usr/local/cuda-11.4/include deepstream_app.c
deepstream_app.c:23:10: fatal error: gst/gst.h: No such file or directory
23 | include <gst/gst.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:69: deepstream_app.o] Error 1

I’m pretty sure I have already installed all the required packages mentioned in the link given above. Is there sth I’m still missing though?

sudo apt-get update
sudo apt-get install libgstreamer1.0-dev libjson-glib-dev

Ok, I’ve installed these two. Now I get the following error:

cc -c -o …/…/apps-common/src/deepstream_common.o -DPLATFORM_TEGRA -I./ -I…/…/apps-common/includes -I…/…/…/includes -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I /usr/local/cuda-11.4/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include …/…/apps-common/src/deepstream_common.c
cc -c -o …/…/apps-common/src/deepstream_sink_bin.o -DPLATFORM_TEGRA -I./ -I…/…/apps-common/includes -I…/…/…/includes -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5 -I /usr/local/cuda-11.4/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include …/…/apps-common/src/deepstream_sink_bin.c
…/…/apps-common/src/deepstream_sink_bin.c:32:10: fatal error: gst/rtsp-server/rtsp-server.h: No such file or directory
32 | include <gst/rtsp-server/rtsp-server.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:69: …/…/apps-common/src/deepstream_sink_bin.o] Error 1

There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

apt-get install libgstrtspserver-1.0-dev

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