Open osrf-migration opened 9 years ago
Original comment by Jackie K (Bitbucket: jacquelinekay).
Original comment by John Hsu (Bitbucket: hsu, GitHub: hsu).
very similar approaches, fwiw, by adding following lines,
diff -r b0117d214d81449ccb034089468c38c9037b5ae5 cmake/TestUtils.cmake
--- a/cmake/TestUtils.cmake Mon Apr 13 16:54:12 2015 -0700
+++ b/cmake/TestUtils.cmake Mon Apr 13 17:15:37 2015 -0700
@@ -24,6 +24,8 @@
pthread
HaptixTracking
${CMAKE_BINARY_DIR}/test/libserver_fixture.a
+ gazebo_physics
+ gazebo_sensors
${Boost_FILESYSTEM_LIBRARIES}
${Boost_SYSTEM_LIBRARIES}
${GAZEBO_LIBRARIES}
I got reduce_torque_limits_debug_test
branch to compile as well. The reason is somewhat interesting though. In my original broken approach, if you take a look at ${GAZEBO_LIBRARIES}
, it is expanded to something like below:
[install prefix]/lib/x86_64-linux-gnu/libgazebo.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_common.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_gimpact.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_gui.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_gui_building.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_gui_viewers.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_math.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_msgs.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_ode.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_opcode.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_opende_ou.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_physics.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_physics_ode.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_rendering.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_selection_buffer.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_sensors.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_skyx.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_transport.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_util.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_player.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_physics_bullet.so
[install prefix]/lib/x86_64-linux-gnu/libgazebo_rendering_deferred.so
optimized
/usr/lib/x86_64-linux-gnu/libprotobuf.so
debug
/usr/lib/x86_64-linux-gnu/libprotobuf.so
-lpthread
[install_prefix]/lib/x86_64-linux-gnu/libsdformat.so
optimized
/usr/lib/x86_64-linux-gnu/libOgreMain.so
debug
/usr/lib/x86_64-linux-gnu/libOgreMain.so
optimized
/usr/lib/x86_64-linux-gnu/libOgreTerrain.so
debug
/usr/lib/x86_64-linux-gnu/libOgreTerrain.so
optimized
/usr/lib/x86_64-linux-gnu/libOgrePaging.so
debug
/usr/lib/x86_64-linux-gnu/libOgrePaging.so
and the problem is the very first line:
[install prefix]/lib/x86_64-linux-gnu/libgazebo.so
commenting it out will remove this error.
@_jrivero_
maybe we should construct ${GAZEBO_LIBRARIES}
so that libgazebo.so
is at the end of the list?
@gerkey thought you might want to know why this was not working :)
Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero).
Interesting. Yes, we need to fix this problem.
Thanks for creating the issue in the Gazebo issue tracker John.
Original comment by Jackie K (Bitbucket: jacquelinekay).
Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero).
Gazebo pull request #1666 partially address part of this problem although the real problem is the one described in gazebo issue 1516
Original comment by Jackie K (Bitbucket: jacquelinekay).
I'm keeping this issue alive and downgrading the priority until gazebo issue 1516 is fixed.
Original comment by Jackie K (Bitbucket: jacquelinekay).
Need to fix linking against physics and sensor once gazebo issue 1516 is resolved.
Original report (archived issue) by John Hsu (Bitbucket: hsu, GitHub: hsu).
see branch reduce_torque_limits_debug_test
building yields error during linking:
this can be circumvented by compiling tests directly against ServerFixture.cc (see reduce_torque_limits_debug_test_temp_fix branch), but it would be nice to figure out why linking against
libserver_fixture.a
fails to work.