having trouble with installing fcl
Cannot compile fcl using catkin_make. I am stuck at the error msg below.... Something to do with gtest library. But, I don't know what to do from now. Can I get some help ?
-- +++ processing catkin package: 'fcl'
-- ==> add_subdirectory(fcl)
-- Set RPATH explicitly to ''
-- FCL uses OctoMap
CMake Error at fcl/test/CMakeLists.txt:14 (add_library):
add_library cannot create target "gtest" because an imported target with
the same name already exists.
CMake Error at fcl/test/CMakeLists.txt:15 (add_library):
add_library cannot create target "gtest_main" because an imported target
with the same name already exists.
CMake Error at fcl/test/CMakeLists.txt:16 (target_link_libraries):
Cannot specify link libraries for target "gtest_main" which is not built by
this project.
-- Configuring incomplete, errors occurred!
See also "/home/khx8d/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/khx8d/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:4294: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
add a comment