You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was recently removed in 1f897d9 and #948. The problem is that any code relying on rviz plugins fails to link. This affects, for example, the MoveIt benchmarks gui. Building code on top of the rviz interactive markers might have been an unsupported use case, but I don't see any way to cleanly link this otherwise.
As an aside, the RViz default plugin product is literally called libdefault_plugin.so I think this needs to be fixed as well. That being said, I think the #948 makes a good point, and if you're explicitly linking against the plugin like moveit_benchmarks_gui does, it should just list the library in the target_link_libraries directive. Again, though, this library should really be called something other than default_plugin.
It's not only about listing libdefault_plugin.so in target_link_libraries. One needs to ensure build order as well - which was perfectly achieved by having it listed in exported targets.
it should just list the library in the target_link_libraries directive
Yeah, that's not a great idea, especially if I change the name of the library. As @rhaschke suggested that should really be done through a CMake variable, which before could have been exported targets. @rhaschke also, dependencies would be resolved if you're linking against it. I'm not aware of any use of the default plugin that would require you to use it with add_dependencies.
I created #979 which provides a cmake variable rviz_DEFAULT_PLUGIN_LIBRARIES which you can use for linking. I will merge that into indigo, but I will only change the library name in Kinetic (in case some people are referencing it by name in their link lines).
I believe this to be covered by #979, and I'll follow up on @jbohren comment about the libraries actual name in a Kinetic specific pr (after I branch for Kinetic which I will do after I do a release for indigo-devel).
Activity
jbohren commentedon Feb 14, 2016
As an aside, the RViz default plugin product is literally called
libdefault_plugin.soI think this needs to be fixed as well. That being said, I think the #948 makes a good point, and if you're explicitly linking against the plugin likemoveit_benchmarks_guidoes, it should just list the library in thetarget_link_librariesdirective. Again, though, this library should really be called something other thandefault_plugin.rhaschke commentedon Mar 7, 2016
It's not only about listing libdefault_plugin.so in target_link_libraries. One needs to ensure build order as well - which was perfectly achieved by having it listed in exported targets.
wjwwood commentedon Mar 7, 2016
Yeah, that's not a great idea, especially if I change the name of the library. As @rhaschke suggested that should really be done through a CMake variable, which before could have been exported targets. @rhaschke also, dependencies would be resolved if you're linking against it. I'm not aware of any use of the default plugin that would require you to use it with
add_dependencies.wjwwood commentedon Mar 22, 2016
I created #979 which provides a cmake variable
rviz_DEFAULT_PLUGIN_LIBRARIESwhich you can use for linking. I will merge that into indigo, but I will only change the library name in Kinetic (in case some people are referencing it by name in their link lines).wjwwood commentedon Mar 22, 2016
I believe this to be covered by #979, and I'll follow up on @jbohren comment about the libraries actual name in a Kinetic specific pr (after I branch for Kinetic which I will do after I do a release for indigo-devel).
add rviz_DEFAULT_PLUGIN_LIBRARIES, see ros-visualization/rviz#964 #657
Fix MeshResourceMarker for mesh with color-based embedded material (r…