Skip to content

Point GZ_CONFIG_PATH to source install when not building from fetched sources #2

@srmainwaring

Description

@srmainwaring

Summary

This issue relates to building the gz-*-vendor packages when the underlying libraries have been built from source in a separate workspace. In this case the GZ_CONFIG_PATH points to the libraries in the vendor package workspace rather than the packages in the source workspace. As a result the CLI tools that are expected with the command gz are not visible.

See also: thread on Discord starting here: https://discord.com/channels/1077825543698927656/1077836768176517203/1239512156681011270

Details

System: macOS Sonoma 14.4.1, Xcode 15.3, Command Line Tools 15.3
Machine: MacBook Pro M1

How to replicate

  1. workspace gz_source_ws contains a build of the gz-* libraries from source.
  2. workspace gz_vendor_ws contains a build of the gz-*-vendor libraries.
  3. build workspace gz_source_ws
  4. change to workspace gz_vendor_ws, source gz_source_ws (i.e. . ~gz_source_ws/install/setup.zsh)
  5. build workspace gz_vendor_ws
  6. run the gz command and inspect the available tools

Expected behaviour

$ gz
The 'gz' command provides a command line interface to the Gazebo Tools.

  gz <command> [options]

List of available commands:

  help:          Print this help text.
  fuel:          Manage simulation resources.
  gui:           Launch graphical interfaces.
  log:           Record or playback topics.
  model:         Print information about models.
  msg:           Print information about messages.
  param:         List, get or set parameters.
  plugin:        Print information about plugins.
  sdf:           Utilities for SDF files.
  service:       Print information about services.
  sim:           Run and manage the Gazebo Simulator.
  topic:         Print information about topics.

Options:

  --force-version <VERSION>  Use a specific library version.
  --versions                 Show the available versions.
  --commands                 Show the available commands.
Use 'gz help <command>' to print help for a command.

Actual behaviour

$ gz
The 'gz' command provides a command line interface to the Gazebo Tools.

  gz <command> [options]

List of available commands:

  help:          Print this help text.
  sdf:           Utilities for SDF files.

Options:

  --force-version <VERSION>  Use a specific library version.
  --versions                 Show the available versions.
  --commands                 Show the available commands.
Use 'gz help <command>' to print help for a command.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions