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

third party library

asked 2015-08-03 10:11:44 -0600

soshiant gravatar image

updated 2015-08-04 01:41:10 -0600

gvdhoorn gravatar image

i compiled a project with catkin and it worked fine and now i'm trying to write some more code that i'm going to use variables in the previous code (read and write) i've opened cmakelist in qtcreator IDE and also managed to bring it up in eclipse IDE but neither work when i add my and includepath i think i should somehow manipulate the cmakelist for it to work but when i search i don't see anywhere adding a file or path in cmakelist its wearing me out cause its not working can anyone help me or point me in the right direction?


i added following two lines.

find_library(Fuzzy fuzzylited /home/soshiant/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/debug/bin/)

target_link_libraries(talker1 ${catkin_LIBRARIES} ${Fuzzy})

it worked perfectly in qtcreator but not in eclipse it didn't recognized the library because it gave me err like invalid argument in my code that qt seems not to mined alles in ordnung danke

edit retag flag offensive close merge delete


@soshiant: please update your original question when you have additional information. Post an answer only to answer your own question, use comments for interacting with other posters. Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2015-08-04 01:43:03 -0600 )edit

Maybe you should select the project in eclipse press right mouse button on it and select Index->Rebuild. That should probably check for headers.

cyborg-x1 gravatar image cyborg-x1  ( 2015-08-04 04:22:31 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-08-03 10:16:42 -0600

updated 2015-08-03 10:19:55 -0600

Checkout the CMake find_library command.

find_library(library_name <search_paths (optional)>)

And (afaik) you need to add it like this:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-08-03 10:11:44 -0600

Seen: 551 times

Last updated: Aug 04 '15