Trying to follow this patch with the most recent deepstream 4.02 and the build fails on the step above:
$ cd sources/libs/nvdsinfer/
$ sudo CUDA_VER=10.0 make install
The error is:
-fPIC -std=c++11 -I /usr/local/cuda-10.0/include -I ../../includes
g++ -c -o nvdsinfer_context_impl.o -fPIC -std=c++11 -I /usr/local/cuda-10.0/include -I ../../includes nvdsinfer_context_impl.cpp
In file included from nvdsinfer_context_impl.cpp:22:0:
nvdsinfer_context_impl.h:25:10: fatal error: opencv2/objdetect/objdetect.hpp: No such file or directory
**#include <opencv2/objdetect/objdetect.hpp>**
compilation terminated.
Makefile:47: recipe for target 'nvdsinfer_context_impl.o' failed
make: *** [nvdsinfer_context_impl.o] Error 1