tensorrtx: cannot make reinaface

hello @wang-xinyu i follow your installation, but i cannot make retinaface

/data/Downloads/tensorrtx/retinaface/calibrator.cpp:4:10: fatal error: opencv2/dnn/dnn.hpp: No such file or directory
 #include <opencv2/dnn/dnn.hpp>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/retina_r50.dir/build.make:62: recipe for target 'CMakeFiles/retina_r50.dir/calibrator.cpp.o' failed
make[2]: *** [CMakeFiles/retina_r50.dir/calibrator.cpp.o] Error 1
CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/retina_r50.dir/all' failed
make[1]: *** [CMakeFiles/retina_r50.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

make sure you have installed the opencv 4.1 dnn module.

@1124676457 How do you install opencv? It must be compiled from source and install with make install. I use the latest version with no problem

build opencv first