DeepStream make error

Please provide complete information as applicable to your setup.

**• Hardware Platform: Jetson Tx2
**• DeepStream Version: DS 6.0.1
**• JetPack Version (valid for Jetson only): 4.6.2
**• TensorRT Version: 8.2.1.8
**• Hi, I’m having a problem when I run “make”. I am following the steps from this link: GitHub - NVIDIA-AI-IOT/deepstream_lpr_app: Sample app code for LPR deployment on DeepStream

ERROR:

make[1]: Entering directory '/opt/nvidia/deepstream/deepstream-6.0/samples/models/deepstream_lpr_app/nvinfer_custom_lpr_parser'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/opt/nvidia/deepstream/deepstream-6.0/samples/models/deepstream_lpr_app/nvinfer_custom_lpr_parser'
make[1]: Entering directory '/opt/nvidia/deepstream/deepstream-6.0/samples/models/deepstream_lpr_app/deepstream-lpr-app'
g++ -c -o deepstream_lpr_app.o -fpermissive -Wall -Werror -DPLATFORM_TEGRA -I/opt/nvidia/deepstream/deepstream/sources/includes `pkg-config --cflags gstreamer-1.0` -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-error deepstream_lpr_app.c
deepstream_lpr_app.c:35:10: fatal error: nvds_yml_parser.h: No such file or directory
 #include "nvds_yml_parser.h"
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:63: recipe for target 'deepstream_lpr_app.o' failed

Can you find it under sources/includes

No, it’s not there. Is there a way to add it in?

Hi Amycao, I found the source for nvds_yml_parser.h. I have included it but there’s another error now

make[1]: Entering directory '/opt/nvidia/deepstream/deepstream-6.0/sources/apps/deepstream_lpr_app/nvinfer_custom_lpr_parser'
g++ -o libnvdsinfer_custom_impl_lpr.so nvinfer_custom_lpr_parser.cpp -Wall -Werror -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I/opt/nvidia/deepstream/deepstream/sources/includes -Wl,--start-group -lnvinfer -lnvparsers -Wl,--end-group
make[1]: Leaving directory '/opt/nvidia/deepstream/deepstream-6.0/sources/apps/deepstream_lpr_app/nvinfer_custom_lpr_parser'
make[1]: Entering directory '/opt/nvidia/deepstream/deepstream-6.0/sources/apps/deepstream_lpr_app/deepstream-lpr-app'
g++ -c -o deepstream_lpr_app.o -fpermissive -Wall -Werror -DPLATFORM_TEGRA -I/opt/nvidia/deepstream/deepstream/sources/includes `pkg-config --cflags gstreamer-1.0` -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-error deepstream_lpr_app.c
g++ -c -o deepstream_nvdsanalytics_meta.o -Wall -Werror -DPLATFORM_TEGRA -I/opt/nvidia/deepstream/deepstream/sources/includes `pkg-config --cflags gstreamer-1.0` -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-error deepstream_nvdsanalytics_meta.cpp
g++ -c -o ds_yml_parse.o -Wall -Werror -DPLATFORM_TEGRA -I/opt/nvidia/deepstream/deepstream/sources/includes `pkg-config --cflags gstreamer-1.0` -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-error ds_yml_parse.cpp
ds_yml_parse.cpp:25:10: fatal error: yaml-cpp/yaml.h: No such file or directory
 #include <yaml-cpp/yaml.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:69: recipe for target 'ds_yml_parse.o' failed
make[1]: *** [ds_yml_parse.o] Error 1
make[1]: Leaving directory '/opt/nvidia/deepstream/deepstream-6.0/sources/apps/deepstream_lpr_app/deepstream-lpr-app'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 2

sudo apt-get install libyaml-cpp-dev

Hi, I have successfully installed it but a new error comes up.

make[1]: Entering directory '/opt/nvidia/deepstream/deepstream-6.0/sources/apps/deepstream_lpr_app/nvinfer_custom_lpr_parser'
g++ -o libnvdsinfer_custom_impl_lpr.so nvinfer_custom_lpr_parser.cpp -Wall -Werror -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I/opt/nvidia/deepstream/deepstream/sources/includes -Wl,--start-group -lnvinfer -lnvparsers -Wl,--end-group
make[1]: Leaving directory '/opt/nvidia/deepstream/deepstream-6.0/sources/apps/deepstream_lpr_app/nvinfer_custom_lpr_parser'
make[1]: Entering directory '/opt/nvidia/deepstream/deepstream-6.0/sources/apps/deepstream_lpr_app/deepstream-lpr-app'
g++ -c -o deepstream_lpr_app.o -fpermissive -Wall -Werror -DPLATFORM_TEGRA -I/opt/nvidia/deepstream/deepstream/sources/includes `pkg-config --cflags gstreamer-1.0` -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-error deepstream_lpr_app.c
g++ -c -o deepstream_nvdsanalytics_meta.o -Wall -Werror -DPLATFORM_TEGRA -I/opt/nvidia/deepstream/deepstream/sources/includes `pkg-config --cflags gstreamer-1.0` -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-error deepstream_nvdsanalytics_meta.cpp
g++ -c -o ds_yml_parse.o -Wall -Werror -DPLATFORM_TEGRA -I/opt/nvidia/deepstream/deepstream/sources/includes `pkg-config --cflags gstreamer-1.0` -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-error ds_yml_parse.cpp
cc -o deepstream-lpr-app deepstream_lpr_app.o deepstream_nvdsanalytics_meta.o ds_yml_parse.o `pkg-config --libs gstreamer-1.0` -L/opt/nvidia/deepstream/deepstream/lib/ -lnvdsgst_meta -lnvds_meta -lm -lstdc++ -lnvds_yml_parser -lyaml-cpp -lgstrtspserver-1.0 -Wl,-rpath,/opt/nvidia/deepstream/deepstream/lib/
/usr/bin/ld: cannot find -lnvds_yml_parser
collect2: error: ld returned 1 exit status
Makefile:72: recipe for target 'deepstream-lpr-app' failed
make[1]: *** [deepstream-lpr-app] Error 1

Can you find libnvds_yml_parser.so under lib/ ?

No, it’s not there.

Can you upgrade to latest version 6.1.1?

It’s stated in the Quickstart Guide — DeepStream 6.1.1 Release documentation that Jetson TX2 is not compatible with the latest version

Can you run success using deepstream-app? by using yml config file.

Hi, yes I am unable to run the yml config file using deepstream-app. Is this because I am using DS 6.0.1?

Can you modify the code to use non yaml config file?

Alright, I’ll try that