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

Link flag error #300

Closed
hsu opened this issue Jan 10, 2013 · 2 comments
Closed

Link flag error #300

hsu opened this issue Jan 10, 2013 · 2 comments
Assignees

Comments

@hsu
Copy link

hsu commented Jan 10, 2013

Some of the catkin added link flags in the package installed .pc files appears incorrect. For example, ros-groovy-console-bridge installs:

/opt/ros/groovy/lib/pkgconfig/console_bridge.pc

which contains a line:

Libs: -L/opt/ros/groovy/lib -lconsole_bridge -l/usr/lib/libboost_thread-mt.so -lpthread

But the libboost_thread_mt link flag is wrong, it should be

Libs: -L/opt/ros/groovy/lib -lconsole_bridge /usr/lib/libboost_thread-mt.so -lpthread

The extra -l triggers a compile error:

Linking CXX shared library libgazebo_sdf_interface.so
/usr/bin/ld: cannot find -l/usr/lib/libboost_thread-mt.so

It seems catkin_depends might be adding the extra boost library link flags incorrectly?

@dirk-thomas
Copy link
Member

Please provide a description what you do to reproduce the failure.

@hsu
Copy link
Author

hsu commented Jan 10, 2013

checkout simulator_gazebo from trunk, edit gazebo/CMakelists.txt, modify the line:

set(USE_HG false)

to

set(USE_HG true)

then

rosmake gazebo

this will checkout gazebo into gazebo/build/gazebo-hg. When compile is finished, edit gazebo/build/gazebo-hg/cmake/SearchForStuff.cmake and modify line 268, change find_package to pkg_check_modules:

pkg_check_modules(console_bridge console_bridge)

Next,

rm -rf gazebo/build/gazebo-hg/build

then, re-compile, and you should be able to see the error.

rosmake gazebo

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

No branches or pull requests

2 participants