Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
c999cb94
Commit
c999cb94
authored
Sep 18, 2016
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another attempt at Xcode 8
parent
a2248add
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
4 deletions
+76
-4
.travis.yml
.travis.yml
+5
-3
QGCCommon.pri
QGCCommon.pri
+1
-1
patch_qt_for_xcode8.sh
tools/patch_qt_for_xcode8.sh
+31
-0
qt_ios_xcode8.patch
tools/qt_ios_xcode8.patch
+27
-0
qt_macos_xcode8.patch
tools/qt_macos_xcode8.patch
+12
-0
No files found.
.travis.yml
View file @
c999cb94
...
@@ -28,15 +28,15 @@ matrix:
...
@@ -28,15 +28,15 @@ matrix:
env
:
SPEC=android-g++ CONFIG=installer
env
:
SPEC=android-g++ CONFIG=installer
sudo
:
false
sudo
:
false
-
os
:
osx
-
os
:
osx
osx_image
:
xcode
7.3
osx_image
:
xcode
8
env
:
SPEC=macx-clang CONFIG=debug
env
:
SPEC=macx-clang CONFIG=debug
sudo
:
required
sudo
:
required
-
os
:
osx
-
os
:
osx
osx_image
:
xcode
7.3
osx_image
:
xcode
8
env
:
SPEC=macx-clang CONFIG=installer
env
:
SPEC=macx-clang CONFIG=installer
sudo
:
required
sudo
:
required
-
os
:
osx
-
os
:
osx
osx_image
:
xcode
7.3
osx_image
:
xcode
8
env
:
SPEC=macx-ios-clang CONFIG=release
env
:
SPEC=macx-ios-clang CONFIG=release
sudo
:
false
sudo
:
false
...
@@ -126,6 +126,7 @@ install:
...
@@ -126,6 +126,7 @@ install:
export QT_QPA_PLATFORM_PLUGIN_PATH=/tmp/$QT_DIR/plugins &&
export QT_QPA_PLATFORM_PLUGIN_PATH=/tmp/$QT_DIR/plugins &&
export QML2_IMPORT_PATH=/tmp/$QT_DIR/qml &&
export QML2_IMPORT_PATH=/tmp/$QT_DIR/qml &&
export PATH=/tmp/$QT_DIR/bin:$PATH
export PATH=/tmp/$QT_DIR/bin:$PATH
tools/patch_qt_for_xcode8.sh
;
;
fi
fi
...
@@ -136,6 +137,7 @@ install:
...
@@ -136,6 +137,7 @@ install:
export IOS_CCACHE_CC=`/usr/bin/xcrun -sdk iphoneos -find clang` &&
export IOS_CCACHE_CC=`/usr/bin/xcrun -sdk iphoneos -find clang` &&
export IOS_CCACHE_CXX=`/usr/bin/xcrun -sdk iphoneos -find clang++` &&
export IOS_CCACHE_CXX=`/usr/bin/xcrun -sdk iphoneos -find clang++` &&
export PATH=/tmp/ios/bin:$PATH
export PATH=/tmp/ios/bin:$PATH
tools/patch_qt_for_xcode8.sh
;
;
fi
fi
...
...
QGCCommon.pri
View file @
c999cb94
...
@@ -66,7 +66,7 @@ linux {
...
@@ -66,7 +66,7 @@ linux {
} else {
} else {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
}
}
QMAKE_MAC_SDK = macosx10.1
1
QMAKE_MAC_SDK = macosx10.1
2
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_CXXFLAGS += -fvisibility=hidden
} else {
} else {
error("Unsupported Mac toolchain, only 64-bit LLVM+clang is supported")
error("Unsupported Mac toolchain, only 64-bit LLVM+clang is supported")
...
...
tools/patch_qt_for_xcode8.sh
0 → 100755
View file @
c999cb94
XCODEVER
=
`
xcodebuild
-version
2>&1 |
(
head
-n1
)
|
awk
'{print $2}'
`
echo
"Testing Xcode version:
$XCODEVER
"
IOSDIR
=
/tmp/ios
OSXDIR
=
/tmp/
$QT_DIR
if
[
X
"
$TRAVIS_BUILD_DIR
"
==
"X"
]
;
then
echo
"missing TRAVIS_BUILD_DIR"
exit
1
fi
#IOSDIR=/Applications/Qt/5.5/ios
#OSXDIR=/Applications/Qt/5.5/clang_64
#TRAVIS_BUILD_DIR=/Users/gus/github/work/qgroundcontrol
if
[
"
$XCODEVER
"
==
"8.0"
]
;
then
if
[
-d
$OSXDIR
/bin
]
;
then
QTVER
=
`
$OSXDIR
/bin/qmake
-version
|
grep
"Using Qt"
|
awk
'{print $4}'
`
echo
"Testing Qt Version:
$QTVER
"
if
[
"
$QTVER
"
==
"5.5.1"
]
;
then
echo
"Found Xcode
$XCODEVER
for OSX. Applying patch:"
cd
$OSXDIR
2> /dev/null
&&
\
patch
-N
-p7
<
${
TRAVIS_BUILD_DIR
}
/tools/qt_macos_xcode8.patch
# 2>&1 > /dev/null
fi
fi
if
[
-d
$IOSDIR
/bin
]
;
then
QTVER
=
`
$IOSDIR
/bin/qmake
-version
|
grep
"Using Qt"
|
awk
'{print $4}'
`
echo
"Testing Qt Version:
$QTVER
"
if
[
"
$QTVER
"
==
"5.5.1"
]
;
then
echo
"Found Xcode
$XCODEVER
for iOS. Applying patch:"
cd
$IOSDIR
2> /dev/null
&&
\
patch
-N
-p7
<
${
TRAVIS_BUILD_DIR
}
/tools/qt_ios_xcode8.patch
# 2>&1 > /dev/null
fi
fi
fi
tools/qt_ios_xcode8.patch
0 → 100644
View file @
c999cb94
diff -Naur /Volumes/BootCopy/Applications/Qt/5.5/ios/mkspecs/features/mac/default_pre.prf mkspecs/features/mac/default_pre.prf
--- /Volumes/BootCopy/Applications/Qt/5.5/ios/mkspecs/features/mac/default_pre.prf 2015-10-12 18:59:25.000000000 -0400
+++ mkspecs/features/mac/default_pre.prf 2016-09-18 19:53:59.000000000 -0400
@@ -12,7 +12,7 @@
error("Xcode is not installed in $${QMAKE_XCODE_DEVELOPER_PATH}. Please use xcode-select to choose Xcode installation path.")
# Make sure Xcode is set up properly
- isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))): \
+ isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \
error("Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.")
}
diff -Naur /Volumes/BootCopy/Applications/Qt/5.5/ios/mkspecs/macx-ios-clang/features/sdk.prf mkspecs/macx-ios-clang/features/sdk.prf
--- /Volumes/BootCopy/Applications/Qt/5.5/ios/mkspecs/macx-ios-clang/features/sdk.prf 2015-10-12 18:59:26.000000000 -0400
+++ mkspecs/macx-ios-clang/features/sdk.prf 2016-09-18 19:53:57.000000000 -0400
@@ -11,8 +11,9 @@
load(sdk)
-lessThan(QMAKE_MAC_SDK_VERSION, "8.0"): \
- error("Current $$QMAKE_MAC_SDK SDK version ($$QMAKE_MAC_SDK_VERSION) is too old. Please upgrade Xcode.")
+#-- This is a string compare and "10.0" is less then "8.0"
+#lessThan(QMAKE_MAC_SDK_VERSION, "8.0"): \
+# error("Current $$QMAKE_MAC_SDK SDK version ($$QMAKE_MAC_SDK_VERSION) is too old. Please upgrade Xcode.")
macx-xcode {
sdk_path_iphoneos.name = "QMAKE_MAC_SDK_PATH[sdk=iphoneos*]"
tools/qt_macos_xcode8.patch
0 → 100644
View file @
c999cb94
diff -Naur /Volumes/BootCopy/Applications/Qt/5.5/clang_64/mkspecs/features/mac/default_pre.prf mkspecs/features/mac/default_pre.prf
--- /Volumes/BootCopy/Applications/Qt/5.5/clang_64/mkspecs/features/mac/default_pre.prf 2015-10-12 19:40:39.000000000 -0400
+++ mkspecs/features/mac/default_pre.prf 2016-09-18 19:54:02.000000000 -0400
@@ -12,7 +12,7 @@
error("Xcode is not installed in $${QMAKE_XCODE_DEVELOPER_PATH}. Please use xcode-select to choose Xcode installation path.")
# Make sure Xcode is set up properly
- isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))): \
+ isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \
error("Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.")
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment