CMake Error at D:/opencv/opencv-3.4.6/sources/cmake/OpenCVModule.cmake:36,,,OpenCV has already loade

分析原因是,由于你(之前跟着不是同一个人的教程,也可能bug很多找了很多人的教程)在下面这个界面时已经点上了(对号),所以,导致CMakeLists.txt这个文件里的内容,存在多余的语句,从而导致模块已加载。CMake Error at D:/opencv/opencv-3.4.6/sources/cmake/OpenCVModule.cmake:36,,,OpenCV has already loade_第1张图片
所以,
**可以选则取消对号,或者删除CMakeLists.txt部分内容。此处我们选择删除。形如…modules/CMakeLists.txt:7 (ocv_glob_modules),那么找到该文件,删除这一行即可(这里是第七行)。最终就可以了在这里插入图片描述

**有用的话,点个赞再走!!继续分享读研期间的心得和BUG。
图片来自ZChen1996博主的文章(侵权速删doge)
https://blog.csdn.net/ZChen1996/article/details/115988507?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166393176416781432937013%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=166393176416781432937013&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v1~rank_v31_ecpm-2-115988507-null-null.142v50control,201v3control_2&utm_term=与opencv4.5.2匹配的opencv_contrib&spm=1018.2226.3001.4187

你可能感兴趣的:(opencv)