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

gz-cmake3 and gz-cmake4 (and other gz libraries) not available on Bookworm? #25

Open
danzimmerman opened this issue Jan 15, 2025 · 2 comments
Assignees

Comments

@danzimmerman
Copy link
Owner

Trying to build gz-tools-vendor, I get the error

--- stderr: gz_tools_vendor                                                                                             CMake Error at CMakeLists.txt:19 (message):                                                                               Could not find either gz-cmake3 or gz-cmake4                                                                          

gmake[2]: *** [CMakeFiles/gz_tools_vendor.dir/build.make:92: gz_tools_vendor-prefix/src/gz_tools_vendor-stamp/gz_tools_vendor-configure] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/gz_tools_vendor.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< gz_tools_vendor [0.33s, exited with code 2]

Repeated iterations through source installs using vcsdeps.py and rosdep invocations fail to install either, and manually installing via apt does not work. The docs mention that it's available as a binary on Ubuntu systems:

https://gazebosim.org/libs/cmake/#binary-install

Workaround could be to do a source install.

https://github.com/gazebosim/gz-cmake?tab=readme-ov-file#building-from-source

However I need to find out where to do a system install. The package isn't automatically built and installed by Colcon.

@danzimmerman
Copy link
Owner Author

danzimmerman commented Jan 15, 2025

Following plain CMake build instructions and simply running cmake .. from the build directory (installs in /usr/local prefix).

@danzimmerman
Copy link
Owner Author

This is bigger than gz-cmake.

sdformat_vendor specifically needed gz-cmake3 (which I built and installed by checking out the appropriate branch in the gz-cmake repo) but now we are missing a number of other gz libraries:

--- stderr: sdformat_vendor
CMake Warning at /usr/local/share/cmake/gz-cmake3/cmake3/GzFindPackage.cmake:243 (find_package):
  By not providing "Findgz-math7.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "gz-math7",
  but CMake did not find one.

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

    gz-math7Config.cmake
    gz-math7-config.cmake

  Add the installation prefix of "gz-math7" to CMAKE_PREFIX_PATH or set
  "gz-math7_DIR" to a directory containing one of the above files.  If
  "gz-math7" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:137 (gz_find_package)


CMake Warning at /usr/local/share/cmake/gz-cmake3/cmake3/GzFindPackage.cmake:243 (find_package):
  By not providing "Findgz-utils2.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "gz-utils2", but CMake did not find one.

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

    gz-utils2Config.cmake
    gz-utils2-config.cmake

  Add the installation prefix of "gz-utils2" to CMAKE_PREFIX_PATH or set
  "gz-utils2_DIR" to a directory containing one of the above files.  If
  "gz-utils2" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:142 (gz_find_package)


CMake Error at /usr/local/share/cmake/gz-cmake3/cmake3/GzConfigureBuild.cmake:72 (message):
  -- BUILD ERRORS: These must be resolved before compiling.
Call Stack (most recent call first):
  CMakeLists.txt:145 (gz_configure_build)


CMake Error at /usr/local/share/cmake/gz-cmake3/cmake3/GzConfigureBuild.cmake:74 (message):
  --    Missing dependency [gz-math7]
Call Stack (most recent call first):
  CMakeLists.txt:145 (gz_configure_build)


CMake Error at /usr/local/share/cmake/gz-cmake3/cmake3/GzConfigureBuild.cmake:74 (message):
  --    Missing dependency [gz-utils2] (Components: cli)
Call Stack (most recent call first):
  CMakeLists.txt:145 (gz_configure_build)


CMake Error at /usr/local/share/cmake/gz-cmake3/cmake3/GzConfigureBuild.cmake:76 (message):
  -- END BUILD ERRORS

Call Stack (most recent call first):
  CMakeLists.txt:145 (gz_configure_build)


CMake Error at /usr/local/share/cmake/gz-cmake3/cmake3/GzConfigureBuild.cmake:81 (message):
  Errors encountered in build.  Please see BUILD ERRORS above.
Call Stack (most recent call first):
  CMakeLists.txt:145 (gz_configure_build)

@danzimmerman danzimmerman changed the title gz-cmake3 and gz-cmake4 not available on Bookworm? gz-cmake3 and gz-cmake4 (and other gz libraries) not available on Bookworm? Jan 15, 2025
@danzimmerman danzimmerman self-assigned this Jan 15, 2025
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