Skip to content

Commit

Permalink
qt6 only
Browse files Browse the repository at this point in the history
  • Loading branch information
bunty95 authored Oct 16, 2024
1 parent e3ee0a7 commit 9f092f1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions scripts/darwin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ env
pwd

brew update
brew install qt@5
brew install qt
brew unlink qt@5 && brew link --force qt
brew unlink qt && brew link --force qt
#brew link --overwrite qt@5 --force --overwrite
# https://github.com/Homebrew/homebrew-core/issues/8392
# https://github.com/Homebrew/legacy-homebrew/issues/29938
Expand All @@ -19,10 +18,6 @@ if [[ -z "$QT_VERSION" ]]; then
fi

# follow brew install suggestions
echo 'export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/opt/homebrew/opt/qt@5/lib"
export CPPFLAGS="-I/opt/homebrew/opt/qt@5/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/qt@5/lib/pkgconfig"
echo 'export PATH="/opt/homebrew/opt/qt@6/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/opt/homebrew/opt/qt@6/lib"
export CPPFLAGS="-I/opt/homebrew/opt/qt@6/include"
Expand All @@ -32,14 +27,10 @@ source ~/.bash_profile
uname -a
if [[ $(uname -m) == 'arm64' ]]; then
echo "Run on MacOS arm64"
sudo ln -s -F "/opt/homebrew/Cellar/qt@5/${QT_VERSION}/mkspecs" /usr/local/mkspecs
sudo ln -s -F "/opt/homebrew/Cellar/qt@5/${QT_VERSION}/plugins" /usr/local/plugins
sudo ln -s -F "/opt/homebrew/Cellar/qt@6/${QT_VERSION}/mkspecs" /usr/local/mkspecs
sudo ln -s -F "/opt/homebrew/Cellar/qt@6/${QT_VERSION}/plugins" /usr/local/plugins
else
echo "Run on MacOS x86"
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
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

Expand Down

0 comments on commit 9f092f1

Please sign in to comment.