ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Add library to CMakeLists

asked 2017-04-28 17:48:42 -0500

vin25 gravatar image

Hello all, I am very new to ROS and I trying to include a library eigen-eigen-67e894c6cd8f which is available in /usr/local/include to the CMakeLists.txt. I have tried doing the below command but I have had no success. I am able to use this library outside ros and it works fine. However, when I do catkin_make it throws a bunch of errors. My package is named "my_pcl" and "test" is my executable. Thanks in advance

include_directories(/usr/local/include/eigen-eigen-67e894c6cd8f) add_executable(test eigen-eigen-67e894c6cd8f)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-04-29 22:48:16 -0500

System-wide libraries are resolved by CMake relative to /usr/local/lib if you are using a 32-bit architecture machine or /usr/local/lib64 if you are on a 64-bit architecture.

Something seems wrong with the location where your library is domiciled. Either fix this by copying the appropriate library file over to usr/local/lib or manually tell cmake to look in usr/local/include. The first option is more standard and I would choose that over the latter.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-04-28 17:48:42 -0500

Seen: 524 times

Last updated: Apr 29 '17