CL-CBS icon indicating copy to clipboard operation
CL-CBS copied to clipboard

OMPL dependency

Open dysun0b10001 opened this issue 3 years ago • 3 comments

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 avatar Feb 20 '22 21:02 dysun0b10001

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.

zijinoier avatar Feb 21 '22 02:02 zijinoier

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

xifen523 avatar May 03 '22 05:05 xifen523

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.

dongjh20 avatar Aug 09 '22 14:08 dongjh20

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.

kintzhao avatar Sep 27 '23 06:09 kintzhao