Skip to content

Missing gz-cmake4 building sources with Ubuntu 24.04 #48

@rbonghiNV

Description

@rbonghiNV

Hi team, I'm trying to install and use this tool to convert the sdf files, but with Ubuntu 24.04 I encountered the error below:

Environment

  • OS Version: Ubuntu 24.04
  • main source

Steps to reproduce

Follow the main documentation in https://github.com/gazebosim/gz-usd
Error when executed: cmake .. in

git clone https://github.com/gazebosim/gz-usd
cd gz-usd
mkdir build
cd build
export GZ_VERSION=<harmonic or ionic>
cmake ..

Output

CMake Error at CMakeLists.txt:26 (find_package):
  By not providing "Findgz-cmake4.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "gz-cmake4", but CMake did not find one.

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

    gz-cmake4Config.cmake
    gz-cmake4-config.cmake

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions