mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 15:40:31 +08:00
[Docs] macOS Dev environment installation (#25204)
* Initial changes * index fix * gz index fix2 * gz index fix 3 * updates * Run prettier * zsh env removed gz classic * Corrections 2 * Cleanups * Update docs/en/dev_setup/dev_env_mac.md * Apply suggestions from code review * Minor subedit and prettier * small correction * cleanups gz harmonic brew formula * fix(macos.sh): invert px4-sim install condition for --sim-tools The condition checked if px4-sim WAS installed before running brew install, meaning it would never install on a fresh system. Add the missing negation so it installs when NOT already present. Signed-off-by: Ramon Roche <mrpollo@gmail.com> * docs: rewrite macOS dev environment setup guide - Add Xcode Command Line Tools as prerequisite - Default to ~/.zshrc (macOS default since Catalina) - Explain why ulimit change is needed and why in startup file - Add reminder to open new terminal after shell config changes - Remove broken pip3 alias workaround - Split git clone into clone + submodule update (canonical form) - Recommend --sim-tools flag since first build uses gz_x500 - Document what macos.sh installs and its --reinstall flag - Clarify Gazebo comes from --sim-tools / px4-sim formula - Add XQuartz requirement for Gazebo display - Add verification section with key tool checks and smoke test - Remove outdated video guide comment block Signed-off-by: Ramon Roche <mrpollo@gmail.com> * conventions --------- Signed-off-by: Ramon Roche <mrpollo@gmail.com> Co-authored-by: Hamish Willee <hamishwillee@gmail.com> Co-authored-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
@@ -74,7 +74,7 @@ python3 -m pip install --user -r ${DIR}/requirements.txt
|
||||
|
||||
# Optional, but recommended additional simulation tools:
|
||||
if [[ $INSTALL_SIM == "--sim-tools" ]]; then
|
||||
if brew ls --versions px4-sim > /dev/null; then
|
||||
if ! brew ls --versions px4-sim > /dev/null; then
|
||||
brew install px4-sim
|
||||
elif [[ $REINSTALL_FORMULAS == "--reinstall" ]]; then
|
||||
brew reinstall px4-sim
|
||||
|
||||
Reference in New Issue
Block a user