Error installing third party FCL

If I try to install the fcl library with the following commands as mentioned in the Readme:

        $ sudo apt-get install libboost-dev libboost-thread-dev libboost-test-dev libboost-filesystem-dev libeigen3-dev
        $ mkdir build && cd build
        $ cmake ..
        $ make 
        $ sudo make install

I get the following error during the cmake … step:
– The CXX compiler identification is GNU 7.4.0
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Set RPATH explicitly to ‘/usr/local/lib’
– Checking for module ‘octomap’
– No package ‘octomap’ found
– FCL does not use OctoMap
– Performing Test COMPILER_SUPPORTS_VISIBILITY
– Performing Test COMPILER_SUPPORTS_VISIBILITY - Success
– Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
– Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
– Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
– Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
– Performing Test COMPILER_HAS_DEPRECATED_ATTR
– Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
CMake Error: File /mypath/01_CommonRoadSearch/commonroad-search/GSMP/tools/commonroad-collision-checker/fcl/test/fcl_resources/config.h.in does not exist.
CMake Error at test/CMakeLists.txt:90 (configure_file):
configure_file Problem configuring file

– Configuring incomplete, errors occurred!
See also “/mypath/commonroad-search/GSMP/tools/commonroad-collision-checker/fcl/build/CMakeFiles/CMakeOutput.log”.
CMake Warning:
Value of fcl_headers contained a newline; truncating

I also tried installing the libccd with the setting DCMAKE_POSITION_INDEPENDENT_CODE on.
I have a windows-machine and run the commands in an Ubuntu 18.04 WSL.

Hi, have you tried using anaconda?

same problem and error message on Mac OSX 10.11.5 here,everything went fine during the installation process, installed libccd beforehand and yet I am getting the same message.
Checking the highlighted folder, there seems to be a file named config.h.in, but the compiler can’t find it in the exact same path

What do you mean by using anaconda? Within the anoconda promt I cant use sudo etc…


Anaconda helps you to create individual environments in which you can easily manage your packages.
If this doesn’t work for you, please try out the virtual machine or the docker image.

Hi!

Please try cloning fcl to some other folder, with a shorter path.
git clone https://github.com/flexible-collision-library/fcl.git

For example,
cd ~
git clone https://github.com/flexible-collision-library/fcl.git

Please let us know if it solves the problem. The fcl build worked for us on all major platforms.

Hi! Thanks, that worked.
But I still get an error in the next step of the readme file.
If i execute this
mkdir build
cd build
cmake -DADD_PYTHON_BINDINGS=TRUE -DPATH_TO_PYTHON_ENVIRONMENT="/mypath/Anaconda3/envs/commonsearch" -DPYTHON_VERSION=“3.7” -DCMAKE_BUILD_TYPE=Release …

with absolut path I get the following error:
– Found PythonInterp: /mypath/Anaconda3/envs/commonsearch/bin/python3.7.5m (found version “1.4”)
CMake Error at third_party/pybind11/tools/FindPythonLibsNew.cmake:95 (message):
Python config failure:
Call Stack (most recent call first):
third_party/pybind11/tools/pybind11Tools.cmake:16 (find_package)
third_party/pybind11/CMakeLists.txt:33 (include)

I dont know why it tries to access this /bin folder, but this does not exist on my machine.

If the bin folder does not exist, you anaconda installation could be corrupt. You should reinstall anaconda into another folder. For me, the bin folder always exists for anaconda. Which OS are you using?

You can also try the virtual machine with preinstalled software. If you enable disk caching in Virtual Box, the performance could be rather acceptable.