learnopencv icon indicating copy to clipboard operation
learnopencv copied to clipboard

opencv2/cudawarping.hpp no such file or directory

Open za13 opened this issue 3 years ago • 3 comments

I'm using Ubuntu 20. I installed OpenCV 4.5 and TensorRT 6.0.1.5 and did

sudo apt-get install libopencv-dev

I am trying to follow the steps in https://github.com/spmallick/learnopencv/tree/master/PyTorch-ONNX-TensorRT-CPP

I was able to do

mkdir build
cd build
cmake -DOpenCV_DIR=[path-to-opencv-build] -DTensorRT_DIR=[path-to-tensorrt] ..

but when I tried `make -j8', I get

trt_sample.cpp:10 fatal error: opencv2/cudawarping.hpp no such file or directory

any help?

za13 avatar Oct 15 '20 00:10 za13

I got the same problem. Did you solve it?

spacewalk01 avatar Jan 07 '21 02:01 spacewalk01

compile opencv with cuda

xxxpsyduck avatar Jan 27 '21 08:01 xxxpsyduck

Solved the problem after building opencv with opencv-contrib using cmake.

spacewalk01 avatar Jan 27 '21 08:01 spacewalk01