解决方案:
我在更改opencv的配置
即cmakelists的这里
#find_package(OpenCV REQUIRED)
set(CMAKE_PREFIX_PATH “/usr/include/opencv4”)
find_package(OpenCV 4.0 QUIET)
我将
set(CMAKE_PREFIX_PATH “/usr/include/opencv4”)
find_package(OpenCV 4.0 QUIET)
这两行加到了上面set那一块,而没有直接加在#find_package(OpenCV REQUIRED)下面
修改到这行下面即可
运行aloam出现的bug:CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package)
最新推荐文章于 2024-08-22 17:08:22 发布