Commonroad installation error

by [Wang Xinpeng] - Sunday, 10 November 2019, 5:43 PM

I have installed the libccd and fcl library in the collision-checker fold.

After run this code line:

cmake -DADD_PYTHON_BINDINGS=TRUE -DPATH_TO_PYTHON_ENVIRONMENT="/path/to/your/anaconda3/envs/commonroad-py37" -DPYTHON_VERSION=“3.7” -DCMAKE_BUILD_TYPE=Release …

output:

– pybind11 v2.2.4

CMake Error at cpp/CMakeLists.txt:64 (message):

Could NOT find required library libfcl

What is the problem?

You need to change the “/path/to/your/anaconda3/envs/commonroad-py37” part to the environment location. You can find out this location by running: “conda info --envs”.
If this does not solve the issue you might need to edit the CMakeLists.txt in /commonroad-search/GSMP/tools/commonroad-collision-checker/cpp/CMakeLists.txt and add a new line with:
set(CMAKE_MODULE_PATH /usr/local/lib/cmake)

before this line:
find_package(fcl REQUIRED)

Hope this helps,
good luck!

1 Like

Hi,

It looks like you forgot to change this parameter of the command:

DPATH_TO_PYTHON_ENVIRONMENT="/path/to/your/anaconda3/envs/commonroad-py37

I had the same problem on mac os 10.12.6 Sierra.
Firstly I was missing pkgconfig, so I had to install it with brew install pkgconfig
But this didn’t resolve the problem, so I also had to add set(CMAKE_MODULE_PATH /usr/local/lib/cmake) to CMakeLists.txt as mentioned in one of the previous comments