Skip to content

Commit

Permalink
Mac dependency script
Browse files Browse the repository at this point in the history
Run from CI as well
  • Loading branch information
DonLakeFlyer committed Jan 5, 2025
1 parent 5a13d66 commit 48e4180
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ jobs:
- uses: seanmiddleditch/gha-setup-ninja@v5

- name: Install Dependencies
run: |
brew update
brew install cmake ninja ccache geographiclib SDL2 exiv2 expat zlib shapelib pkgconf create-dmg
continue-on-error: true
working-directory: ${{ github.workspace }}/tools/setup
run: sh macos-dependencies.sh

- uses: lukka/get-cmake@latest
- uses: seanmiddleditch/gha-setup-ninja@v5
Expand Down
2 changes: 1 addition & 1 deletion docs/en/qgc-dev-guide/getting_started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ To see a complete list of all available components in the installer _Select Comp
- **Ubuntu:** `sudo bash ./qgroundcontrol/tools/setup/install-dependencies-debian.sh`
- **Fedora:** `sudo dnf install speech-dispatcher SDL2-devel SDL2 systemd-devel patchelf`
- **Arch Linux:** `pacman -Sy speech-dispatcher patchelf`
- **OSX** [Setup](https://doc.qt.io/qt-6/macos.html)
- **OSX** `sh qgroundcontrol/tools/setup/macos-dependencies.sh`
- **Android** [Setup](https://doc.qt.io/qt-6/android-getting-started.html)

1. Install Optional/OS-Specific Functionality
Expand Down
10 changes: 10 additions & 0 deletions tools/setup/macos-dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#! /usr/bin/env bash

if ! command -v brew &> /dev/null
then
# install Homebrew if not installed yet
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi

brew update
brew install cmake ninja ccache geographiclib SDL2 exiv2 expat zlib shapelib pkgconf create-dmg

0 comments on commit 48e4180

Please sign in to comment.