Skip to content

Commit 3cec014

Browse files
committed
qt6
1 parent 682a547 commit 3cec014

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/darwin/install.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@ env
55
pwd
66

77
brew update
8-
brew install qt@5
8+
brew install qt@6
99
brew unlink qt@5 && brew link --force qt@5
10-
#brew link --overwrite qt@5 --force --overwrite
10+
#brew link --overwrite qt@6 --force --overwrite
1111
# https://github.com/Homebrew/homebrew-core/issues/8392
1212
# https://github.com/Homebrew/legacy-homebrew/issues/29938
13-
QT_VERSION=$(brew list --versions qt@5 | awk '{print $2}')
13+
QT_VERSION=$(brew list --versions qt@6 | awk '{print $2}')
1414
echo "QT_VERSION=$QT_VERSION"
1515
if [[ -z "$QT_VERSION" ]]; then
1616
echo "QT_VERSION is empty"
1717
exit 1
1818
fi
1919

2020
# follow brew install suggestions
21-
echo 'export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"' >> ~/.bash_profile
22-
export LDFLAGS="-L/opt/homebrew/opt/qt@5/lib"
23-
export CPPFLAGS="-I/opt/homebrew/opt/qt@5/include"
24-
export PKG_CONFIG_PATH="/opt/homebrew/opt/qt@5/lib/pkgconfig"
21+
echo 'export PATH="/opt/homebrew/opt/qt@6/bin:$PATH"' >> ~/.bash_profile
22+
export LDFLAGS="-L/opt/homebrew/opt/qt@6/lib"
23+
export CPPFLAGS="-I/opt/homebrew/opt/qt@6/include"
24+
export PKG_CONFIG_PATH="/opt/homebrew/opt/qt@6/lib/pkgconfig"
2525
source ~/.bash_profile
2626

2727
uname -a
2828
if [[ $(uname -m) == 'arm64' ]]; then
2929
echo "Run on MacOS arm64"
30-
sudo ln -s -F "/opt/homebrew/Cellar/qt@5/${QT_VERSION}/mkspecs" /usr/local/mkspecs
31-
sudo ln -s -F "/opt/homebrew/Cellar/qt@5/${QT_VERSION}/plugins" /usr/local/plugins
30+
sudo ln -s -F "/opt/homebrew/Cellar/qt@6/${QT_VERSION}/mkspecs" /usr/local/mkspecs
31+
sudo ln -s -F "/opt/homebrew/Cellar/qt@6/${QT_VERSION}/plugins" /usr/local/plugins
3232
else
3333
echo "Run on MacOS x86"
34-
sudo ln -s "/usr/local/Cellar/qt@5/${QT_VERSION}/mkspecs" /usr/local/mkspecs
35-
sudo ln -s "/usr/local/Cellar/qt@5/${QT_VERSION}/plugins" /usr/local/plugins
34+
sudo ln -s "/usr/local/Cellar/qt@6/${QT_VERSION}/mkspecs" /usr/local/mkspecs
35+
sudo ln -s "/usr/local/Cellar/qt@6/${QT_VERSION}/plugins" /usr/local/plugins
3636
fi
3737

3838
brew install ninja tree

0 commit comments

Comments
 (0)