Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with ROS2Humble and Gazebo Harmonic #141

Open
flyasky opened this issue Sep 9, 2024 · 0 comments
Open

Build with ROS2Humble and Gazebo Harmonic #141

flyasky opened this issue Sep 9, 2024 · 0 comments

Comments

@flyasky
Copy link

flyasky commented Sep 9, 2024

On executing

colcon build --event-handlers console_direct+

I got:

In file included from /home/anton/vg/src/vehicle_gateway/betaflight_gazebo/src/BetaflightPlugin.cpp:15:
/home/anton/vg/src/vehicle_gateway/betaflight_gazebo/include/betaflight_gazebo/BetaflightPlugin.hpp:20:10: fatal error: gz/sim/System.hh: No such file or directory
   20 | #include <gz/sim/System.hh>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/BetaflightPlugin.dir/build.make:76: CMakeFiles/BetaflightPlugin.dir/src/BetaflightPlugin.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/anton/vg/src/vehicle_gateway/betaflight_gazebo/src/Util.cpp:17:
/home/anton/vg/src/vehicle_gateway/betaflight_gazebo/include/betaflight_gazebo/Util.hpp:23:10: fatal error: gz/sim/Entity.hh: No such file or directory
   23 | #include <gz/sim/Entity.hh>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/BetaflightPlugin.dir/build.make:104: CMakeFiles/BetaflightPlugin.dir/src/Util.cpp.o] Error 1
In file included from /home/anton/vg/src/vehicle_gateway/gz_aerial_plugins/src/DroneHmi.cpp:15:
/home/anton/vg/src/vehicle_gateway/gz_aerial_plugins/src/DroneHmi.hpp:19:10: fatal error: gz/gui/qt.h: No such file or directory
   19 | #include <gz/gui/qt.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/DroneHmi.dir/build.make:98: CMakeFiles/DroneHmi.dir/src/DroneHmi.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/anton/vg/build/gz_aerial_plugins/DroneHmi_autogen/UVLADIE3JM/moc_DroneHmi.cpp:10,
                 from /home/anton/vg/build/gz_aerial_plugins/DroneHmi_autogen/mocs_compilation.cpp:2:
/home/anton/vg/build/gz_aerial_plugins/DroneHmi_autogen/UVLADIE3JM/../../../../src/vehicle_gateway/gz_aerial_plugins/src/DroneHmi.hpp:19:10: fatal error: gz/gui/qt.h: No such file or directory
   19 | #include <gz/gui/qt.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/DroneHmi.dir/build.make:84: CMakeFiles/DroneHmi.dir/DroneHmi_autogen/mocs_compilation.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:138: CMakeFiles/DroneHmi.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/BetaflightPlugin.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
--- stderr: gz_aerial_plugins
In file included from /home/anton/vg/src/vehicle_gateway/gz_aerial_plugins/src/DroneHmi.cpp:15:
/home/anton/vg/src/vehicle_gateway/gz_aerial_plugins/src/DroneHmi.hpp:19:10: fatal error: gz/gui/qt.h: No such file or directory
   19 | #include <gz/gui/qt.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/DroneHmi.dir/build.make:98: CMakeFiles/DroneHmi.dir/src/DroneHmi.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/anton/vg/build/gz_aerial_plugins/DroneHmi_autogen/UVLADIE3JM/moc_DroneHmi.cpp:10,
                 from /home/anton/vg/build/gz_aerial_plugins/DroneHmi_autogen/mocs_compilation.cpp:2:
/home/anton/vg/build/gz_aerial_plugins/DroneHmi_autogen/UVLADIE3JM/../../../../src/vehicle_gateway/gz_aerial_plugins/src/DroneHmi.hpp:19:10: fatal error: gz/gui/qt.h: No such file or directory
   19 | #include <gz/gui/qt.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/DroneHmi.dir/build.make:84: CMakeFiles/DroneHmi.dir/DroneHmi_autogen/mocs_compilation.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:138: CMakeFiles/DroneHmi.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< gz_aerial_plugins [0.78s, exited with code 2]
CMake Error at CMakeLists.txt:25 (find_package):
  By not providing "Findgz-transport12.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "gz-transport12", but CMake did not find one.

  Could not find a package configuration file provided by "gz-transport12"
  with any of the following names:

    gz-transport12Config.cmake
    gz-transport12-config.cmake

  Add the installation prefix of "gz-transport12" to CMAKE_PREFIX_PATH or set
  "gz-transport12_DIR" to a directory containing one of the above files.  If
  "gz-transport12" provides a separate development package or SDK, be sure it
  has been installed.

and

Summary: 6 packages finished [1min 42s]
  1 package failed: gz_aerial_plugins
  8 packages aborted: betaflight_configurator betaflight_gazebo micro_ros_msgs msp px4_msgs ros_gz_interfaces ros_gz_sim vehicle_gateway_python_helpers
  3 packages had stderr output: betaflight_gazebo gz_aerial_plugins ros_gz_sim
  14 packages not processed

Can I fix this somehow? Is it possible to avoid Gazebo Garden installation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant