cmake could not find octomap_ros when run catkin_make
I use ros indigo with ubuntu 14.04. When I run catkin_make in catkin_ws, some errors shows as follows:
CMake Warning at rtabmap_ros/CMakeLists.txt:16 (find_package):
By not providing "Findoctomap_ros.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"octomap_ros", but CMake did not find one.
Could not find a package configuration file provided by "octomap_ros" with
any of the following names:
octomap_rosConfig.cmake
octomap_ros-config.cmake
Add the installation prefix of "octomap_ros" to CMAKE_PREFIX_PATH or set
"octomap_ros_DIR" to a directory containing one of the above files. If
"octomap_ros" provides a separate development package or SDK, be sure it
has been installed.
but I have run this command:
sudo apt-get install ros-indigo-octomap
Thanks!
It's been awhile, but can you provide the list of packages that were being built in you workspace? Without that info it's hard for others to tell which package(s) caused the error you posted. You can run e.g.
catkin_topological_order --only-names
to list all package names inROS_PACKAGE_PATH
.I fear a situation where this error was caused by a package that misses a dependency definition. We should fix it particularly when it's an opensource package. So it's imperative to list all (or at least open-sourced) packages if you can.