主要参考了这篇博客

https://blog.csdn.net/qqbb1987/article/details/81329322

但是在添加扩展模块时报错:

CMake Error at cmake/OpenCVModule.cmake:370 (_glob_locations):  

Syntax error in cmake code at      

D:/OpenCV/opencv-4.0.1/cmake/OpenCVModule.cmake:370    

when parsing string      

D:\OpenCV\opencv_contrib-4.0.1\modules

Invalid escape sequence \o
Call Stack (most recent call first):
modules/CMakeLists.txt:7 (ocv_glob_modules)

查找了很多博客中的解决方案:

比如https://www.cnblogs.com/jliangqiu2016/p/5597501.html 下方的网友回复,没有解决。

直到看到https://blog.csdn.net/weixin_43115892/article/details/85475493 这篇博客,当看到解决方案时,我都不相信会解决,不过死马当作活马医吧,还真成功了。

VS2017+opencv4.0.1+contrib4.0.1+cmake

相关文章:

  • 2021-11-26
  • 2021-05-22
  • 2021-11-26
  • 2021-11-07
  • 2021-05-08
  • 2021-09-02
  • 2021-04-22
  • 2021-08-21
猜你喜欢
  • 2021-07-15
  • 2021-04-24
  • 2021-08-29
  • 2021-05-11
  • 2021-11-26
  • 2021-06-27
  • 2021-12-03
相关资源
相似解决方案