NVIDIA-AI-IOT / redaction_with_deepstream

An example of using DeepStream SDK for redaction
Other
206 stars 59 forks source link

Error in make #2

Open Imtinan1996 opened 5 years ago

Imtinan1996 commented 5 years ago

Hi, I am running into this error when trying to make, I am running the deepstream docker and have successfully run the deepstream objectDetector_FasterRCNN app so I don't understand why I am getting this error

cc -I../../includes `pkg-config --cflags gstreamer-1.0`   -c -o deepstream_redaction_app.o deepstream_redaction_app.c
Package gstreamer-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-1.0' found
deepstream_redaction_app.c:23:21: fatal error: gst/gst.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'deepstream_redaction_app.o' failed
make: *** [deepstream_redaction_app.o] Error 1
suixiaodan commented 5 years ago

Hi, I am running into this error when trying to make, I am running the deepstream docker and have successfully run the deepstream objectDetector_FasterRCNN app so I don't understand why I am getting this error

cc -I../../includes `pkg-config --cflags gstreamer-1.0`   -c -o deepstream_redaction_app.o deepstream_redaction_app.c
Package gstreamer-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-1.0' found
deepstream_redaction_app.c:23:21: fatal error: gst/gst.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'deepstream_redaction_app.o' failed
make: *** [deepstream_redaction_app.o] Error 1

I also get this error, have you solved it? thanks.

smarinka commented 5 years ago

Anybody has a solution? Run across the same problem

jinli-ece-cs commented 5 years ago

We just need to install the package itself. After apt-get install libgstreamer1.0-dev and apt-get install libgstreamer1.0 my problem was solved.

wkelongws commented 5 years ago

Now we have updated the app to be compatible with DS 4.0. It should work on all nvidia platforms (tested on DGPU, Jetson Xavier and Jetson Nano) as well as work in containers. And you now have an option to use usb webcam as input.

jageshmaharjan commented 5 years ago

I had the original problem as stated earlier in this issue. I followed the @jinli-ece-cs , solution, that issue dissapeared, but another issue came-up.

(myenv) jugs@jugs:~/PycharmProjects/redaction_with_deepstream$ make
cc -c -o deepstream_redaction_app.o -I../../includes `pkg-config --cflags gstreamer-1.0` deepstream_redaction_app.c
deepstream_redaction_app.c:27:10: fatal error: gstnvdsmeta.h: No such file or directory
 #include "gstnvdsmeta.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
Makefile:53: recipe for target 'deepstream_redaction_app.o' failed
make: *** [deepstream_redaction_app.o] Error 1
wkelongws commented 5 years ago

@jageshmaharjan Were you running it on Jetson? Were you running it in docker? It will be helpful if you can provide a bit more system info. Ideally if you could run the deepstream in-box apps (that means you have DS implemented correct) and put this repo in /sources/apps (so that the paths are correct in MakeFile), you should be able to compile and run the app by following the instructions in README. It should work for DGPU local, DGPU docker and jetson local (Jetson Docker is a inference docker, not a development docker).

jageshmaharjan commented 5 years ago

Thanks @wkelongws , Actually running on a GTX 1060 GPU, and not on docker. In the end, I was able to run. Earlier, i didn't put the redaction in deepstream_sdk_v4.0_x86_64/sources/apps/ so i was facing that issue, when i put it into deepstream_sdk_v4.0_x86_64/sources/apps/redaction_with_deepstream i was able to make.

Screenshot from 2019-09-13 02-00-13

Roulbac commented 4 years ago

I fixed this issue altering the makefile include and library paths

Changed CFLAGS+= -I../../includes to CFLAGS+= -I/opt/nvidia/deepstream/deepstream/sources/includes

and also made sure to update lib paths as absolute to LIBS+= -L/opt/nvidia/deepstream/deepstream/lib -lnvdsgst_meta -lnvds_meta -Wl,-rpath,/opt/nvidia/deepstream/deepstream/lib