Mac OS Catalina 10.15.3
miniconda-py3.7
Eigen3, FCL, and CCD have been installed
➜ cmake -DADD_PYTHON_BINDINGS=TRUE -DPATH_TO_PYTHON_ENVIRONMENT="/Users/mac/opt/miniconda3/envs/commonroad" -DPYTHON_VERSION="3.7" -DCMAKE_BUILD_TYPE=Release cmake ..
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
--
-- Found PythonInterp: /Users/mac/opt/miniconda3/envs/commonroad/bin/python3.7m (found version "3.7.6")
-- Found PythonLibs: /Users/mac/opt/miniconda3/envs/commonroad/lib/libpython3.7m.so
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- pybind11 v2.2.4
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- LTO enabled
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Checking for module 'fcl>=0.3.1'
-- Found fcl, version 0.6.1
-- Found FCL: fcl;ccd;m
-- Checking for module 'ccd>=2.0'
-- Found ccd, version 2.0
-- Found CCD: ccd;m
CMake Error at cpp/CMakeLists.txt:64 (message):
Could NOT find required library libfcl
-- Configuring incomplete, errors occurred!
See also "/Users/mac/Downloads/commonroad-collision-checker-master/build/CMakeFiles/CMakeOutput.log".
I used two macs, tried many times, and made the same mistake. Please help us~Thanks!
The problem seems to be specific to your environment. Although we could not reproduce the problem on our mac machines (different MacOS version), it really seems like a simple problem of getting MacOS to find fcl.
Could you possibly replace CMakeLists.txt from cpp folder with the following content, try to run cmake -DADD_PYTHON_BINDINGS=TRUE -DPATH_TO_PYTHON_ENVIRONMENT="/path/to/your/anaconda3/envs/commonroad-py36" -DPYTHON_VERSION="3.6" -DCMAKE_BUILD_TYPE=Release .. again and post the command output on the forum? Thank you very much!