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

ompl-config.cmake in wrong location? #12

Open
jvgomez opened this issue Jan 23, 2018 · 4 comments
Open

ompl-config.cmake in wrong location? #12

jvgomez opened this issue Jan 23, 2018 · 4 comments

Comments

@jvgomez
Copy link

jvgomez commented Jan 23, 2018

I have installed ros-kinetic-ompl in Ubuntu 16.04. I am perhaps missing something, but the ompl-config.cmake file is installed under /opt/ros/kinetic/share/ompl/ but catkinConfig.cmake looks for it under the subfolder cmake. Therefore I get the error:

CMake Warning at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  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.
Call Stack (most recent call first):
  CMakeLists.txt:10 (find_package)

I wonder why is it this way, and what is a better solution. I didn't find a workaround yet, as doing a symlink shows:

Make Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:178 (message):
  catkin_package() CATKIN_DEPENDS on 'ompl', which has been found in
  '/opt/ros/indigo/share/ompl/cmake/ompl-config.cmake', but it is not a
  catkin package
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:100 (_catkin_package)
  CMakeLists.txt:16 (catkin_package)

Thanks!

@mamoll
Copy link
Member

mamoll commented Jan 23, 2018

The cmake documentation for find_package indicates that the cmake file in <prefix>/share/ompl is in the search path: https://cmake.org/cmake/help/v3.10/command/find_package.html

I don't understand why catkin would override the default behavior.

@jvgomez
Copy link
Author

jvgomez commented Jan 23, 2018

Neither do I. AFAIK this is the code in which catkin searches for components, at it looks only in the cmake subfolder. Other ROS packages are distributed according to this.

I guess this should be fixed in catkin. But I think it would be faster to do a fix here. Also, I wonder why nobody reported this issue before.

@mamoll
Copy link
Member

mamoll commented Jan 23, 2018

This is probably because ompl is a pure CMake package and not a catkin package. This can be fixed in the bloom packaging. See also another related bug in #9.

@leiyinghanguang
Copy link

I have the same problem

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

3 participants