Ask Your Question

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

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

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 imageahendrix ( 2016-06-29 02:35:42 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

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

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

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 imageMihir5293 ( 2016-06-28 03:17:03 -0600 )edit

Did you use find_package(curl) to find curl?

Ruben Smits gravatar imageRuben Smits ( 2016-06-28 03:44:36 -0600 )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 imageMihir5293 ( 2016-06-29 01:40:51 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 63 times

Last updated: Jun 29 '16