I'm having trouble building Darknet with the configuration:
GPU=1
CUDNN=1
CUDNN_HALF=0
OPENCV=1
The error when running the Makefile is:
/usr/include/opencv4/opencv2/stitching/detail/warpers.hpp:47:10: fatal error: opencv2/core/cuda.hpp: No such file or directory 47 |
#include "opencv2/core/cuda.hpp"
I have installed cuda-11.2
and cudann
successfully, and verified the installations.
I have tried running sudo apt install libopencv-dev
and this was up-to-date.
My setup is:
os: Ubuntu 20.04
cuda version: 11.2
cudann version: 8.1
Can anyone help me install OpenCV such that I can build darknet with OpenCV?