The build instructions for Gazebo only include Ubuntu and it is a little disappointing that there was no attempt undertaken to distribute Gazebo in a more open way for other distros, especially given that it even supports other OS’es than Linux and has supported more distros in the past. It is 2023 and we should not pretend that we live in a monoculture where the only Linux is Ubuntu.
Anyways. So I wanted to build Gazebo Harmonic on Fedora 37 and at the step of building the sim with the colcon command: colcon build --cmake-args -DBUILD_TESTING=OFF --merge-install
, I am gettin obscure build errors without any real message of what is the problem:
Finished <<< gz-math7 [2.29s]
Starting >>> gz-common5
Starting >>> sdformat13
Starting >>> gz-msgs10
--- stderr: gz-msgs10
CMake Error at /home/mrsmith/Development/Code/gazebo/ws/install/share/cmake/gz-cmake3/cmake3/GzConfigureBuild.cmake:73 (message):
-- BUILD ERRORS: These must be resolved before compiling.
Call Stack (most recent call first):
CMakeLists.txt:111 (gz_configure_build)
CMake Error at /home/mrsmith/Development/Code/gazebo/ws/install/share/cmake/gz-cmake3/cmake3/GzConfigureBuild.cmake:75 (message):
-- Missing dependency [Protobuf] (Components: all)
Call Stack (most recent call first):
CMakeLists.txt:111 (gz_configure_build)
CMake Error at /home/mrsmith/Development/Code/gazebo/ws/install/share/cmake/gz-cmake3/cmake3/GzConfigureBuild.cmake:77 (message):
-- END BUILD ERRORS
Call Stack (most recent call first):
CMakeLists.txt:111 (gz_configure_build)
CMake Error at /home/mrsmith/Development/Code/gazebo/ws/install/share/cmake/gz-cmake3/cmake3/GzConfigureBuild.cmake:82 (message):
Errors encountered in build. Please see BUILD ERRORS above.
Call Stack (most recent call first):
CMakeLists.txt:111 (gz_configure_build)
---
Failed <<< gz-msgs10 [0.55s, exited with code 1]
Aborted <<< gz-common5 [1.10s]
Aborted <<< sdformat13 [1min 13s]
Summary: 4 packages finished [1min 17s]
1 package failed: gz-msgs10
2 packages aborted: gz-common5 sdformat13
7 packages had stderr output: gz-cmake3 gz-common5 gz-math7 gz-msgs10 gz-tools2 gz-utils2 sdformat13
9 packages not processed
Does anyone know what the issue might be? The builds up to that point did not have any errors, just warnings.
Any help is much appreciated.