moveit / moveit_core

THIS REPO HAS MOVED TO https://github.com/ros-planning/moveit
30 stars 76 forks source link

libFCL CMake Error when building ROS from source #264

Closed davetcoleman closed 8 years ago

davetcoleman commented 8 years ago

When I build all of ROS from source I get a CMake error on moveit_core because of missing variables:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBFCL_LIBRARIES_FULL
    linked by target "moveit_collision_detection_fcl" in directory /Users/dave/ros/ws_ros/src/moveit_core/collision_detection_fcl

-- Configuring incomplete, errors occurred!

I could use some clarification on which FCL MoveIt! is expecting to link against - the system version installed through Ubuntu universe, or the fcl package that builds the project locally? It seems there is a mix up here.

Relevant CMake code from here:

find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBFCL REQUIRED fcl)
find_library(LIBFCL_LIBRARIES_FULL ${LIBFCL_LIBRARIES} ${LIBFCL_LIBRARY_DIRS})
set(LIBFCL_LIBRARIES "${LIBFCL_LIBRARIES_FULL}")

Note also I'm using the new catkin_tools project, not catkin_make. It builds fine with catkin-make, interestingly.

Thanks!

davetcoleman commented 8 years ago

I believe this old issue was fixed