Commit e6f500e
authored
nav2_rviz_plugins: Remove slots without implementation (ros-navigation#4974)
Without this change, when compiled for Jazzy with Nix using gcc14 and
qt-5.15, loading the plugins to rviz fails with the following error:
[rviz2]: PluginlibFactory: The plugin for class
'nav2_rviz_plugins/Navigation 2' failed to load. Error: Failed to
load library /nix/store/...-ros-env/lib/libnav2_rviz_plugins.so.
Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in
the library code, and that names are consistent between this macro
and your XML. Error string: Could not load library dlopen error:
/nix/store/...-ros-env/lib/libnav2_rviz_plugins.so: undefined
symbol: _ZN17nav2_rviz_plugins12DockingPanel9onStartupEv, at
/build/rcutils-release-release-jazzy-rcutils-6.7.2-1/src/shared_library.c:99
The dynamic linker complains about undefined symbol, which corresponds
to a Qt slot, which is declared, but has no implementation. I'm not
sure what is the root cause of this behavior, but removing the slot
definitions fixes the problem and the plugins can be loaded.
Signed-off-by: Michal Sojka <michal.sojka@cvut.cz>1 parent 8dde70c commit e6f500e
File tree
2 files changed
+0
-2
lines changed2 files changed
+0
-2
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
0 commit comments