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

How to link additional library with orocos component project in linux?

asked 2016-06-27 05:57:16 -0500

Mihir5293 gravatar image

I tried to link libcurl with my orocos component but it cant be link. Please suggest me where to give its lib and include path

edit retag flag offensive close merge delete


This isn't a question about ROS, and there isn't enough information here to help you.

ahendrix gravatar image ahendrix  ( 2016-06-29 02:35:42 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-28 02:30:21 -0500

updated 2016-06-28 02:31:05 -0500

You can use the normal include_directories/target_link_libraries cmake macros for this:

orocos_component(foo foo.cpp)
target_link_libraries(foo ${ADDITIONAL_LIBRARIES_TO_LINK_WITH})
edit flag offensive delete link more


I tried to link libcurl with it. but always got error of undefined reference

Mihir5293 gravatar image Mihir5293  ( 2016-06-28 03:17:03 -0500 )edit

Did you use find_package(curl) to find curl?

Ruben Smits gravatar image Ruben Smits  ( 2016-06-28 03:44:36 -0500 )edit

yes i find_package(curl) and it would be found but still same problem. libcurl cannot be link with project when i make amd make install it.!

Mihir5293 gravatar image Mihir5293  ( 2016-06-29 01:40:51 -0500 )edit

Question Tools

1 follower


Asked: 2016-06-27 05:57:16 -0500

Seen: 131 times

Last updated: Jun 29 '16