Ask Your Question

How can use external library in ros.

asked 2014-08-12 01:37:11 -0500

pjnsoo gravatar image

I want to use POCO library within my package. I followed this manual but it was not successful.

I tried to add find_package(poco REQUIRED) to CMakeLists.txt but cmake can't find it.

Would you please help me to add POCO to my project.

edit retag flag offensive close merge delete


Maybe it might be a good idea to find out if what you'd like to do is handled by .

dornhege gravatar image dornhege  ( 2014-08-12 03:39:59 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-08-12 01:59:13 -0500

ahendrix gravatar image

The class_loader package uses Poco. Perhaps you can use it as a template?

It looks like they have a cmake directory and a PocoConfig.cmake which describes where to find the Poco libraries, and a dependency on libpoco-dev in their package.xml

edit flag offensive delete link more

answered 2014-08-13 01:31:15 -0500

Artem gravatar image

You can find some related questions here and here

Following their advice and ahendrix answer I did the following on my Mac and it worked 1) Downloaded to somewhere on your disk 2) Added the following lines to CMakeLists.txt of your project

set(Poco_DIR _path_) # replace _path_ with a path to PocoConfig.cmake that you downloaded before

find_package(Poco REQUIRED COMPONENTS Foundation Net Netd XML XMLd) # add other components here

catkin_package(DEPENDS Poco)


target_link_libraries(node_name ${Poco_LIBRARIES}) #replace node_name with the name of your project/node

edit flag offensive delete link more

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: 2014-08-12 01:37:11 -0500

Seen: 1,870 times

Last updated: Aug 13 '14