Ryoyo-NV / Gaze-Analysis-System

Gaze analysis system for Jetson Xavier NX, and AGX Xavier.
8 stars 5 forks source link

failed compile on 'Building gazeinfer library...' #4

Closed ynott closed 2 years ago

ynott commented 2 years ago

Environment:

Expected behaviour

The following Install procedure completes without problems. https://github.com/Ryoyo-NV/Gaze-Analysis-System#installation

Actual behaviour

The compile of gazeinfer will fail

Building gazeinfer library...
-fPIC -DDS_VERSION="6.1.0" -I /usr/local/cuda-10.2/include -I ../../../includes -I /opt/nvidia/deepstream/deepstream/sources/gst-plugins/gst-nvdsvideotemplate/includes -I /opt/nvidia/deepstream/deepstream/sources/includes -I /opt/nvidia/deepstream/deepstream/sources/includes/cvcore_headers -I ../../deepstream-faciallandmark-app -I ../ -I ../../common/ -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0-I/usr/lib/aarch64-linux-gnu/glib-2.0/include -Wno-deprecated-declarations
g++ -c -o gazeinfer.o -fPIC -DDS_VERSION=\"6.1.0\" -I /usr/local/cuda-10.2/include -I ../../../includes -I /opt/nvidia/deepstream/deepstream/sources/gst-plugins/gst-nvdsvideotemplate/includes -I /opt/nvidia/deepstream/deepstream/sources/includes -I /opt/nvidia/deepstream/deepstream/sources/includes/cvcore_headers -I ../../deepstream-faciallandmark-app -I ../ -I ../../common/ -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0-I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -Wno-deprecated-declarations gazeinfer.cpp
In file included from gazeinfer.cpp:52:0:
../../common/ds_yml_parse.h:33:10: fatal error: nvds_yml_parser.h: No such file or directory
 #include "nvds_yml_parser.h"
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:70: recipe for target 'gazeinfer.o' failed
make: *** [gazeinfer.o] Error 1
Setup failed. Please check error messages.
exit.
ynott commented 2 years ago

I have Deepstream version 6.0.1 installed.

$ sudo apt list deepstream-6.0
Listing... Done
deepstream-6.0/stable,now 6.0.1-1 arm64 [installed]
takutoi commented 2 years ago

Thank you for your report. This is because gazeinfer in deepstream_tao_apps was updated to DS6.1 a few days ago. Although I will update this repo in the near, as a quick fix for now:

cd ds/lib/gazeinfer/deepstream_tao_apps
git checkout release/tao3.0_ds6.0.1
cd -
./setup.sh
ynott commented 2 years ago

I'm not sure, but it looks like the latest deepstream_tao_apps is checked out in the git clone of the following line

https://github.com/Ryoyo-NV/Gaze-Analysis-System/blob/d0a062613b7a361d652c56fc7fdb1615e2003fb1/setup.sh#L80

+ pushd deepstream_tao_apps
+ git checkout release/tao3.0_ds6.0.1
+ popd