CMake Error at CMakeLists.txt:37 (message): OpenCV > 2.4.3 not found.
时间: 2024-04-24 15:27:13 浏览: 306
回答: 根据引用\[1\]中的报错信息,CMakeLists.txt文件中找不到OpenCV版本大于2.4.3的库。解决这个问题的方法是在CMakeLists.txt文件中添加set(OpenCV_DIR /$PATH to opencv/build)和find_package(OpenCV QUIET)这两行代码,其中$PATH需要替换为OpenCV库的路径。引用\[1\]中提供的解决办法可以帮助你解决这个问题。另外,引用\[3\]中的CMakeLists.txt文件也提供了一个示例,你可以参考它来配置你的CMakeLists.txt文件。
#### 引用[.reference_title]
- *1* [ORB_SLAM2 ROS Example 编译 CMake Error at CMakeLists.txt:37 (message): OpenCV > 2.4.3 not found解决...](https://blog.csdn.net/qq_29710939/article/details/119391344)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [CMake Error at CMakeLists.txt:11 (find_package): Found package configuration file: /home/luw](https://blog.csdn.net/weixin_45584297/article/details/114751557)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文