Skip to content

Commit

Permalink
qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jan 19, 2024
1 parent 6fd94c5 commit 0fa3427
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions scripts/darwin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,23 @@ id
env
pwd

brew install qt@5
brew link qt@5 --force
brew install qt@6
brew link qt@6 --force
# https://github.com/Homebrew/homebrew-core/issues/8392
# https://github.com/Homebrew/legacy-homebrew/issues/29938
QT_VERSION=$(brew list --versions qt@5 | sed -n '/qt@5/s/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*.*\).*$/\1/p')
sudo ln -s "/usr/local/Cellar/qt@5/${QT_VERSION}/mkspecs" /usr/local/mkspecs
sudo ln -s "/usr/local/Cellar/qt@5/${QT_VERSION}/plugins" /usr/local/plugins
QT_VERSION=$(brew list --versions qt@6 | awk '{print $2}')
echo "QT_VERSION=$QT_VERSION"
if [[ -z "$QT_VERSION" ]]; then
echo "QT_VERSION is empty"
exit 1
fi

if [[ $(uname -m) == 'arm64' ]]; then
sudo ln -s -F "/opt/homebrew/Cellar/qt/${QT_VERSION}/mkspecs" /usr/local/mkspecs
sudo ln -s -F "/opt/homebrew/Cellar/qt/${QT_VERSION}/plugins" /usr/local/plugins
else
sudo ln -s "/usr/local/Cellar/qt@6/${QT_VERSION}/mkspecs" /usr/local/mkspecs
sudo ln -s "/usr/local/Cellar/qt@6/${QT_VERSION}/plugins" /usr/local/plugins
fi

brew install ninja tree

0 comments on commit 0fa3427

Please sign in to comment.