Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DavidHan008 opened this issue Jun 18, 2017 · 12 comments

Comments

@DavidHan008
Copy link

CMake Error at move-base-ompl/CMakeLists.txt:19 (find_package):
By not providing "FindOMPL.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OMPL", but
CMake did not find one.

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

OMPLConfig.cmake
ompl-config.cmake

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

-- Configuring incomplete, errors occurred!
See also "/home/davidhan/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/davidhan/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

@DavidHan008
Copy link
Author

i use apt-get install ros-indigo-ompl* it ok

@mechaliomar
Copy link

have you slolved the problem , I have the same

@sauravag
Copy link

sauravag commented Jul 7, 2019

I have another fix for this in my fork. We can add a FindOMPL.cmake file in a CMakeModules folder inside the package and make a small change to the CMakeLists.txt. This makes it easy for the build system to find OMPL. Especially if you have built and installed OMPL from source rather than installing the pre-built binaries from the ROS build system.

sauravag@4365c5e

@EricWang1hitsz
Copy link

How yo add ? @sauravag

@darshankt
Copy link

Install OMPL dependency
$ sudo apt install libompl-dev

Do below change in CMakeList

Instead of
find_package(OMPL REQUIRED)
change to
find_package(OMPL)

@machinekoder
Copy link

@darshankt This doesn't search for the correct OMPL cmake file. use find_package(ompl REQUIRED) instead.

@Mohit505Git
Copy link

Hey @machinekoder,

I tried find_package(ompl REQUIRED) but that started to give errors like:

/home/sakura/catkin_ws/src/path_planning/src/old_path_planning.cpp:28:10: fatal error: ompl/base/spaces/SE3StateSpace.h: No such file or directory
 #include <ompl/base/spaces/SE3StateSpace.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/sakura/catkin_ws/src/path_planning/src/path_planning.cpp:28:10: fatal error: ompl/base/spaces/SE3StateSpace.h: No such file or directory
 #include <ompl/base/spaces/SE3StateSpace.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please let know if anyone found a solution to this, Thanks!

@c0y0h
Copy link

c0y0h commented Dec 3, 2021

@Mohit505Git , I have the same problem, and I'm sure I have the .h file. Did you solve it?

@c0y0h
Copy link

c0y0h commented Dec 3, 2021

@Mohit505Git I got it! It's because that the package ompl in opt/ros/noetic/include is named ompl1.5!!!

@rohanblueboybaijal
Copy link

@c0y0h how did you finally solve the problem then? I installed ros-noetic-ompl as well as from source. I can see the cmake files in /opt/ros/noetic/share/ompl/ .

But setting a custom PATH doesn't seem to be doing the trick.

find_package(OMPL PATHS /opt/ros/noetic/share/ompl/)
find_package(OMPL REQUIRED)

Any suggestions?

@c0y0h
Copy link

c0y0h commented May 20, 2022

@rohanblueboybaijal
Maybe you can check if the package ompl is in path (/opt/ros/noetic/include), and I remember only find_package(OMPL REQUIRED) is need for my case.

@txphuc2799
Copy link

replace find_package(OMPL REQUIRED) = find_package(ompl REQUIRED)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants