Skip to content

Building reference errors (Create3Hmi.cc) #213

@pabloresa

Description

@pabloresa

Describe the bug
Multiple reference errors, but solvable during building:

/usr/include/ignition/plugin1/gz/plugin/detail/Register.hh:28:10: fatal error: gz/utilities/SuppressWarning.hh: No existe el archivo o el directorio 28 | #include <gz/utilities/SuppressWarning.hh>

/usr/include/ignition/plugin1/gz/plugin/Info.hh:57:9: error: ‘IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_IGNORE__DLL_INTERFACE_MISSING’? 57 | IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_IGNORE__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/Info.hh:59:9: error: ‘IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING’? 59 | IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/Info.hh:64:9: error: ‘IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING’? 64 | IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/Info.hh:74:9: error: ‘InterfaceCastingMap’ does not name a type 74 | InterfaceCastingMap interfaces; | ^~~~~~~~~~~~~~~~~~~ /usr/include/ignition/plugin1/gz/plugin/Info.hh:75:9: error: ‘IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING’? 75 | IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/Info.hh:84:9: error: ‘IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING’? 84 | IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/Info.hh:89:9: error: ‘IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING’? 89 | IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/Info.hh:94:9: error: ‘IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING’? 94 | IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/Plugin.hh:207:7: error: ‘IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_IGNORE__DLL_INTERFACE_MISSING’? 207 | IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_IGNORE__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/Plugin.hh:210:7: error: ‘IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING’? 210 | IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING /Create3Hmi.cc:12: /usr/include/ignition/plugin1/gz/plugin/EnablePluginFromThis.hh:79:7: error: ‘IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_IGNORE__DLL_INTERFACE_MISSING’? 79 | IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_IGNORE__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/EnablePluginFromThis.hh:81:7: error: ‘IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING’? 81 | IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING
/usr/include/ignition/plugin1/gz/plugin/Plugin.hh:207:7: error: ‘IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_IGNORE__DLL_INTERFACE_MISSING’? 207 | IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_IGNORE__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/Plugin.hh:210:7: error: ‘IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING’? 210 | IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING In file included from /usr/include/ignition/plugin1/gz/plugin/detail/Register.hh:30, from /usr/include/ignition/plugin1/gz/plugin/Register.hh:22, from /usr/include/ignition/plugin1/ignition/plugin/Register.hh:18, from /home/pablo/dev_opencv/src/create3_sim-humble/irobot_create_ignition/irobot_create_ignition_plugins/Create3Hmi/Create3Hmi.cc:12: /usr/include/ignition/plugin1/gz/plugin/EnablePluginFromThis.hh:79:7: error: ‘IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_IGNORE__DLL_INTERFACE_MISSING’? 79 | IGN_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_IGNORE__DLL_INTERFACE_MISSING /usr/include/ignition/plugin1/gz/plugin/EnablePluginFromThis.hh:81:7: error: ‘IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING’ does not name a type; did you mean ‘IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING’? 81 | IGN_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DLL_INTERFACE_MISSING

/usr/include/ignition/plugin1/gz/plugin/detail/Register.hh:376:1: error: ‘IGN_UTILS_WARN_IGNORE__NON_VIRTUAL_DESTRUCTOR’ was not declared in this scope; did you mean ‘IGN_MSGS_WARN_IGNORE__DELETE_NON_VIRTUAL_DESTRUCTOR’? 376 | IGN_UTILS_WARN_IGNORE__NON_VIRTUAL_DESTRUCTOR | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_IGNORE__DELETE_NON_VIRTUAL_DESTRUCTOR /usr/include/ignition/plugin1/gz/plugin/detail/Register.hh:382:1: error: ‘IGN_UTILS_WARN_RESUME__NON_VIRTUAL_DESTRUCTOR’ was not declared in this scope; did you mean ‘IGN_MSGS_WARN_RESUME__DELETE_NON_VIRTUAL_DESTRUCTOR’? 382 | IGN_UTILS_WARN_RESUME__NON_VIRTUAL_DESTRUCTOR | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | IGN_MSGS_WARN_RESUME__DELETE_NON_VIRTUAL_DESTRUCTOR

SOLUTION: Change the references as Colcon suggest (ie: nano for Register.hh, EnablePluginFromThis.hh and Info.hh and creating the file "gz/utilities/SuppressWarning.hh")

To Reproduce
Following the building instructions after "colcon build --symlink-install"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions