cmake找不到Config.cmake
at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
Could not find a package configuration file provided by "ov_eval" with any
of the following names:
ov_evalConfig.cmake
ov_eval-config.cmake
Add the installation prefix of "ov_eval" to CMAKE_PREFIX_PATH or set
"ov_eval_DIR" to a directory containing one of the above files. If
"ov_eval" provides a separate development package or SDK, be sure it has
been installed.
ov_coreConfig.cmake
ov_core-config.cmake
libpointmatcherConfig.cmake
libpointmatcher-config.cmake
解决办法:
# Include our cmake files
#set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/)
set(ov_core_DIR /home/wei/Documents/openVINS/devel/share/ov_core/cmake)
set(ov_eval_DIR /home/wei/Documents/openVINS/devel/share/ov_eval/cmake)
set(libpointmatcher_DIR /home/wei/software/lib/libpointmatcher/build/CMakeFiles)
# Find catkin (the ROS build system)
find_package(catkin REQUIRED COMPONENTS roscpp rosbag tf std_msgs geometry_msgs sensor_msgs nav_msgs visualization_msgs cv_bridge ov_core ov_eval libpointmatcher)
即可