-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Build on xcode9 #18134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build on xcode9 #18134
Changes from 7 commits
e993baf
ae28d9d
92a3b53
4cfaa9e
a43518f
d7fa78b
51740ec
66d9a21
9c67676
ea02ac1
65115e0
d552816
85b6da9
968b063
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
fold_start() { | ||
key=$1 | ||
title=$2 | ||
echo -e "travis_fold:start:$key\e[2K" | ||
echo -e "travis_time:start:$key\e[2K" | ||
tick="$(date +%s)" | ||
echo "$title" | ||
} | ||
|
||
fold_end() { | ||
key=$1 | ||
tock="$(date +%s)" | ||
nano=000000000 | ||
echo -e "travis_time:end:$key:start=$tick$nano,finish=$tock$nano,duration=$((tock - tick))$nano\e[2K" | ||
echo -e "travis_fold:end:$key\e[2K" | ||
} | ||
|
||
fold_start Python "Install Python 3.8 from python.org" | ||
curl -O https://www.python.org/ftp/python/3.8.5/python-3.8.5-macosx10.9.pkg | ||
sudo installer -package python-3.8.5-macosx10.9.pkg -target / | ||
sudo ln -s /usr/local/bin/python3 /usr/local/bin/python | ||
hash -r | ||
fold_end Python | ||
|
||
fold_start Qt4.8 "Install Qt 4.8 from qt.io" | ||
curl -O https://download.qt.io/archive/qt/4.8/4.8.7/qt-opensource-mac-4.8.7.dmg | ||
hdiutil attach qt-opensource-mac-4.8.7.dmg | ||
sudo installer -package '/Volumes/Qt 4.8.7/packages/Qt_headers.pkg' -target / | ||
sudo installer -package '/Volumes/Qt 4.8.7/packages/Qt_imports.pkg' -target / | ||
sudo installer -package '/Volumes/Qt 4.8.7/packages/Qt_libraries.pkg' -target / | ||
hdiutil detach '/Volumes/Qt 4.8.7' | ||
fold_end Qt4.8 | ||
|
||
fold_start ccache 'Install ccache (compile it ourselves)' | ||
curl -O -L https://github.com/ccache/ccache/releases/download/v3.7.11/ccache-3.7.11.tar.xz | ||
tar xf ccache-3.7.11.tar.xz | ||
pushd ccache-3.7.11 | ||
./configure --prefix=/usr/local | ||
make | ||
make install | ||
popd | ||
for compiler in clang clang++ cc gcc c++ g++; do | ||
ln -sf ccache /usr/local/bin/$compiler | ||
done | ||
fold_end ccache | ||
|
||
fold_start pkg-config 'Install pkg-config (compile it ourselves)' | ||
curl -O -L https://dl.bintray.com/homebrew/mirror/pkg-config-0.29.2.tar.gz | ||
tar xf pkg-config-0.29.2.tar.gz | ||
pushd pkg-config-0.29.2 | ||
./configure --disable-debug --prefix=/usr/local --disable-host-tool \ | ||
--with-internal-glib --with-pc-path=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/local/pkgconfig \ | ||
--with-system-include-path=/usr/include | ||
make | ||
make install | ||
popd | ||
fold_end pkg-config | ||
|
||
fold_start libpng 'Install libpng (compile it ourselves)' | ||
curl -O -L https://downloads.sourceforge.net/libpng/libpng-1.6.37.tar.xz | ||
jkseppan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
tar xf libpng-1.6.37.tar.xz | ||
pushd libpng-1.6.37 | ||
./configure --disable-dependency-tracking --disable-silent-rules --prefix=/usr/local | ||
make | ||
make install | ||
popd | ||
fold_end libpng | ||
|
||
fold_start freetype 'Install freetype (just unpack into the build directory)' | ||
curl -O -L https://download.savannah.gnu.org/releases/freetype/freetype-2.6.1.tar.gz | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why can't we just rely on what's already going on in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm sure I added this because of some reason, but the details are lost in the rebases... I'll see if and how the build fails without this step. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The build ends with the error message
I don't know how it is trying to download the file, but perhaps the older MacOS version doesn't support it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's just using standard library |
||
mkdir -p build | ||
tar -x -C build -f freetype-2.6.1.tar.gz | ||
fold_end freetype |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤯