硬件:NVIDIA Jetson Xavier NX develop kit
系统软件:Jetson4.6,deepstream6.0
根据该路径的README文件,进行第二步骤的命令sudo make
/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-app/README
terminal中报错如下:
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-10.2/include deepstream_app.c
deepstream_app.c:23:10: fatal error: gst/gst.h: No such file or directory
#include <gst/gst.h>
^~~~~~~~~~~
compilation terminated.
Makefile:67: recipe for target 'deepstream_app.o' failed
make: *** [deepstream_app.o] Error 1
原因:前提安装包没有安装,因为没有运行README中的第一个步骤
解决方法:
sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev \
libgstrtspserver-1.0-dev libx11-dev libjson-glib-dev