gaoxiang12 / octomap_tutor

A tutorial about octomap. Please check my blog for detail: cnblogs.com/gaoxiang12
MIT License
214 stars 88 forks source link

编译cmake ..出错 #6

Open BIT-FKD opened 3 years ago

BIT-FKD commented 3 years ago

已安装octomap和pcl,并且将cmake_modules/octomap-config.cmake文件中的四个路径修改为我安装octomap的路径,然后运行./build.sh 出错,错误信息如下

CMake Error at src/CMakeLists.txt:10 (FIND_PACKAGE): By not providing "Findoctomap.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "octomap", but CMake did not find one.

Could not find a package configuration file provided by "octomap" with any of the following names:

octomapConfig.cmake
octomap-config.cmake

Add the installation prefix of "octomap" to CMAKE_PREFIX_PATH or set "octomap_DIR" to a directory containing one of the above files. If "octomap" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred! See also "/home/hydro/octomap_tutor/build/CMakeFiles/CMakeOutput.log".

BIT-FKD commented 3 years ago

系统ubuntu18.04

cheng-lao commented 3 months ago

hello do you solve this problem ? Now ,I have the same error, but in Ros noetic

CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "octomap_ros" with
  any of the following names:

    octomap_rosConfig.cmake
    octomap_ros-config.cmake

Thanks Advance!