Error in Mac Toolchain Instructions

Have struggled with multiple issues trying to follow the standard toolchain instructions for MacBook M3 running Sonoma 14.6.1 so I thought I’d post what works for me in case it’s useful.

I’m new to PX4 - so I’m not sure why these work and the standard instructions don’t

  1. From clean MacBook
  2. Follow standard MacBook installation instructions but stop before installing Homebrew
    • Set terminal to run rosetta mode per standard instructions
    • Make 2 suggested edits to ~/.zshenv
  3. Install standard Mac developer tools from command line: xcode-select –-install
  4. Download code: git clone GitHub - PX4/PX4-Autopilot: PX4 Autopilot Software --recursive
  5. Set up a Python Virtual Environment
  6. Cd ~/px4-autopilot/tools/setup
  7. Run “sh macOS.sh --sim-tools”
  8. This will throw an error - run python3 -m pip install -r ./requirements.txt to address
  9. Follow this post: MacOS (M1/Silicon) Simulation Build Issue Solution to uninstall QT
  10. Can then make px4_sitl gazebo-classic and it works

Very happy to finally get this working - has taken me several rebuilds of my Mac and much trial and error - now to start actually coding something.

John.