gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
709 stars 269 forks source link

Compiling on Debian Bookworm #2319

Closed firth650 closed 8 months ago

firth650 commented 8 months ago

Environment

Description

Steps to reproduce

  1. On Debian Bookworm I've followed the install instructions from here, https://gazebosim.org/docs/fortress/install_ubuntu_src I'm aware those instructions are for Ubuntu however, I've been able to get most everything else ROS2 related to compile.

  2. Please note that this has already been raised here https://github.com/gazebosim/gz-sim/issues/2213 with exactly the same error messages, however the suggested solution to remove any previously installed ignition libraries, has made no difference for me.

  3. I've also tried "garden" and this build falls over at the same point. I really want "Fortress" as it's the requisite version to use with my Ros2-humble installation.

Output

Starting >>> ignition-rendering6
--- stderr: ignition-rendering6
CMake Warning at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package): By not providing "Findignition-common4-graphics.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ignition-common4-graphics", but CMake did not find one.

Could not find a package configuration file provided by "ignition-common4-graphics" (requested version 4.7.0) with any of the following names:

ignition-common4-graphicsConfig.cmake
ignition-common4-graphics-config.cmake

Add the installation prefix of "ignition-common4-graphics" to CMAKE_PREFIX_PATH or set "ignition-common4-graphics_DIR" to a directory containing one of the above files. If "ignition-common4-graphics" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /home/robot/SW/Gazebo/src/src/install/lib/cmake/ignition-common4/ignition-common4-config.cmake:187 (find_dependency) /home/robot/SW/Gazebo/src/src/install/share/cmake/ignition-cmake2/cmake2/IgnUtils.cmake:197 (find_package) CMakeLists.txt:41 (ign_find_package)

CMake Warning at /home/robot/SW/Gazebo/src/src/install/share/cmake/ignition-cmake2/cmake2/IgnUtils.cmake:197 (find_package): Found package configuration file:

/home/robot/SW/Gazebo/src/src/install/lib/cmake/ignition-common4/ignition-common4-config.cmake

but it set ignition-common4_FOUND to FALSE so package "ignition-common4" is considered to be NOT FOUND. Reason given by package:

ignition-common4 could not be found because dependency ignition-common4-graphics could not be found.

Call Stack (most recent call first): CMakeLists.txt:41 (ign_find_package)

UDA_TOOLKIT_ROOT_DIR not found or specified CMake Warning at /home/robot/SW/Gazebo/src/src/install/share/cmake/ignition-cmake2/cmake2/IgnConfigureBuild.cmake:55 (message): CONFIGURATION WARNINGS: -- Skipping component [ogre]: Missing dependency [IgnOGRE] (Components: RTShaderSystem, Terrain, Overlay, Paging). ^~~~~ Set SKIP_ogre=true in cmake to suppress this warning.

-- Skipping component [optix]: Missing dependency [OptiX]. ^~~~~ Set SKIP_optix=true in cmake to suppress this warning.

Call Stack (most recent call first): CMakeLists.txt:173 (ign_configure_build)

CMake Error at /home/robot/SW/Gazebo/src/src/install/share/cmake/ignition-cmake2/cmake2/IgnConfigureBuild.cmake:59 (message): -- BUILD ERRORS: These must be resolved before compiling. Call Stack (most recent call first): CMakeLists.txt:173 (ign_configure_build)

CMake Error at /home/robot/SW/Gazebo/src/src/install/share/cmake/ignition-cmake2/cmake2/IgnConfigureBuild.cmake:61 (message): -- Missing dependency [ignition-common4] (Components: graphics, events) Call Stack (most recent call first): CMakeLists.txt:173 (ign_configure_build)

CMake Error at /home/robot/SW/Gazebo/src/src/install/share/cmake/ignition-cmake2/cmake2/IgnConfigureBuild.cmake:63 (message): -- END BUILD ERRORS

Call Stack (most recent call first): CMakeLists.txt:173 (ign_configure_build)

CMake Error at /home/robot/SW/Gazebo/src/src/install/share/cmake/ignition-cmake2/cmake2/IgnConfigureBuild.cmake:68 (message): Errors encountered in build. Please see BUILD ERRORS above. Call Stack (most recent call first): CMakeLists.txt:173 (ign_configure_build)

firth650 commented 8 months ago

This error always occurs when reaching "rendering6". To progress debug, I started with a clean Debian-bookworm image, with no additional software installed, Using this, then Gazebo will compile: It appears therefore that there is something amiss in my system, rather than a Gazebo build bug. I''l research this further, however, it can be closed as a bug.