1. OpenSourceRoboticsFoundation
  2. Simulation
  3. gazebo
  4. Issues
Issue #291 closed

Don't use ${urdfdom_LDFLAGS} and ${console_bridge_LDFLAGS} in target_link_libraries

Lorenz Mösenlechner
created an issue

Using the LDFLAGS variables in target_link_libraries leads to linker errors such as cannot find -l/usr/lib/libboost_thread.so or similar things. The problem occurs when building with ROS groovy installed since in that case, urdfdom and console_bridge can be found and will be enabled. Instead, ${urdfdom_LIBRARIES} and ${console_bridge_LIBRARIES} should be used.

The problem occurs when building libgazebo_sdf_interface. A patch is attached.