Files
PX4-Autopilot/Tools/setup/macos/pixi.toml
T
Ramon Roche a8b0e91ebe feat(setup): install macOS Gazebo from a locked conda-forge environment
Homebrew rebuilds and drops the gz bottles whenever homebrew-core bumps
protobuf or abseil, which breaks the macOS Gazebo install until the pins
catch up. conda-forge keeps every package it has published, so
Tools/setup/macos/pixi.toml and its lock install the same gz, protobuf,
abseil, OpenCV and GStreamer binaries until the lock is updated on
purpose. OpenCV is the headless build, and GStreamer brings the good,
bad and ugly plugin sets the gz camera plugin's pipeline uses.

macos.sh installs the environment with pixi and loads it from the venv
activation through a small script, since pixi shell-hook would export
the installing shell's PATH. The build and the gz launch do not depend
on that activation: CMake searches the environment like it pins the
.venv Python, and px4-rc.gzsim sources gz_env.sh before it looks for
gz, which loads the environment when it is not already active and puts
its lib dir ahead of Homebrew's in the dyld fallback path.
conda-forge's gz-transport13 does not pull in cppzmq, so the manifest
lists it.

The osrf/simulation pin, the protobuf pin and the weekly bot that
refreshed them are removed. The homebrew-core commit moves into
homebrew-pins.txt unchanged.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-09-26 15:12:00 -07:00

32 lines
1.2 KiB
TOML

# Gazebo Harmonic for macOS, installed by macos.sh --sim-tools.
#
# conda-forge keeps every build it has published, so pixi.lock installs the
# same gz, protobuf and abseil binaries until someone updates it on purpose.
# Homebrew rebuilds and drops gz bottles whenever homebrew-core bumps one of
# their dependencies. Everything the gz modules link against comes from this
# one environment so only one protobuf is ever loaded.
#
# Update the lock with: pixi update --manifest-path Tools/setup/macos/pixi.toml
[workspace]
name = "px4-macos-gz"
channels = ["conda-forge"]
platforms = ["osx-arm64", "osx-64"]
[dependencies]
gz-harmonic = "*"
# gz-transport13's CMake config needs the cppzmq target, but the
# conda-forge package does not pull it in.
cppzmq = "*"
# PX4-OpticalFlow does not build against OpenCV 5, and only needs the C++
# library: the headless build leaves out Qt 6 and the Python bindings.
libopencv = { version = "4.*", build = "headless*" }
# The gz camera plugin's pipeline uses elements from every set: appsrc and
# videoconvert (base), rtph264pay, udpsink and flvmux (good), rtmpsink
# (bad) and x264enc (ugly).
gstreamer = "*"
gst-plugins-base = "*"
gst-plugins-good = "*"
gst-plugins-bad = "*"
gst-plugins-ugly = "*"