Skip to content
New issue

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

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

Already on GitHub? # to your account

OMPL dependency #2

Closed
dysun0b10001 opened this issue Feb 20, 2022 · 4 comments
Closed

OMPL dependency #2

dysun0b10001 opened this issue Feb 20, 2022 · 4 comments

Comments

@dysun0b10001
Copy link

Hi, I found the work depends on the OMPL library while not being mentioned in the README. To get your code to tun, I installed the OMPL library from here: https://ompl.kavrakilab.org/core/download.html, and I manually included the OMPL install path to the CMake List. Maybe consider adding this in the dependency section.

Regards,
Dingyi

@dysun0b10001 dysun0b10001 changed the title ompl dependency OMPL dependency Feb 20, 2022
@zijinoier
Copy link
Member

Thanks for your interests.
This repo is indeed depends on OMPL, the recommended way is directly installed by apt install libompl-dev, which is described in README. However, manually install OMPL and add it to CMake path is also a feasible way.

@xifen523
Copy link

xifen523 commented May 3, 2022

I have try apt install libompl-dev but it not work

@dongjh20
Copy link

dongjh20 commented Aug 9, 2022

I met this problem too, and i found a way. By 'whereis ompl', we can find that there is 'omplConfig.cmake' under /usr/share/ompl/cmake, just copy and rename! Then the build can be done without error.

@kintzhao
Copy link

Detail : Because it can not found FindOMPL.cmake

robot@robot:~/my_code/test_git/CL-CBS/build$ cmake -DCMAKE_BUILD_TYPE=Release ..
CMake Error at CMakeLists.txt:10 (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/robot/my_code/test_git/CL-CBS/build/CMakeFiles/CMakeOutput.log".

robot@robot:$ whereis ompl
ompl: /usr/include/ompl /usr/share/ompl
robot@robot:
$ cd /usr/share/ompl/cmake
robot@robot:/usr/share/ompl/cmake$ ls
omplConfig.cmake omplConfigVersion.cmake
robot@robot:/usr/share/ompl/cmake$ sudo cp omplConfig.cmake OMPLConfig.cmake
robot@robot:/usr/share/ompl/cmake$ ls
omplConfig.cmake OMPLConfig.cmake omplConfigVersion.cmake

I met this problem too, and i found a way. By 'whereis ompl', we can find that there is 'omplConfig.cmake' under /usr/share/ompl/cmake, just copy and rename! Then the build can be done without error.

@zijinoier zijinoier pinned this issue Sep 27, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants