Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking error against rapp-api and rapp-robots-api #15

Closed
klpanagi opened this issue Jan 7, 2017 · 2 comments
Closed

Linking error against rapp-api and rapp-robots-api #15

klpanagi opened this issue Jan 7, 2017 · 2 comments
Assignees
Labels

Comments

@klpanagi
Copy link

klpanagi commented Jan 7, 2017

I tried to build the rapp_learn_object application and i get link errors against the 2 rapp apis (robots, cloud).

Both the RappConfig.cmake and RappRobotsConfig.cmake are loaded properly by cmake, though i get the following error at link time:

Linking CXX executable LearnObject
/usr/bin/ld: cannot find -lrapp
/usr/bin/ld: cannot find -lrapp_robot_vision
/usr/bin/ld: cannot find -lrapp_robot_navigation
/usr/bin/ld: cannot find -lrapp_robot_communication
/usr/bin/ld: cannot find -lrapp_robot_info
/usr/bin/ld: cannot find -lrapp_robot_localization
collect2: error: ld returned 1 exit status
make[2]: *** [LearnObject] Error 1
make[1]: *** [CMakeFiles/LearnObject.dir/all] Error 2
make: *** [all] Error 2

Inlcude and library paths are set properly in both these .cmake files

/home/nao/ws_rapp_api/install/include
/home/nao/ws_rapp_api/install/lib

Of course, if i set the LD_LIBRARY_PATH env variable, those libraries are found properly, though there should not be a need to set that variable as the library paths should be set by cmake after loading RappConfig.cmake and RappRobotsConfig.cmake files.

Any ideas/suggestions?

dudekw pushed a commit to rapp-project/rapp-robots-api that referenced this issue Jan 8, 2017
@dudekw dudekw closed this as completed in 5a5b5d4 Jan 8, 2017
@dudekw
Copy link
Contributor

dudekw commented Jan 8, 2017

You need to use the wut branch of the rapp-robots-api repository and there should not be any linking errors now.

@klpanagi
Copy link
Author

klpanagi commented Jan 8, 2017

Thank you @dudekw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants