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
9c7f5046
Unverified
Commit
9c7f5046
authored
Aug 30, 2019
by
Don Gagne
Committed by
GitHub
Aug 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7740 from DonLakeFlyer/MoreAndroidBitness
More android bitness
parents
65a7c5c1
d7692ead
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
10 deletions
+29
-10
QGCCommon.pri
QGCCommon.pri
+9
-3
QGCExternalLibs.pri
QGCExternalLibs.pri
+5
-3
QGroundControlQmlGlobal.cc
src/QmlControls/QGroundControlQmlGlobal.cc
+11
-0
QGroundControlQmlGlobal.h
src/QmlControls/QGroundControlQmlGlobal.h
+4
-4
No files found.
QGCCommon.pri
View file @
9c7f5046
...
...
@@ -46,12 +46,18 @@ linux {
QMAKE_CFLAGS += -Wno-unused-command-line-argument
QMAKE_LINK += -nostdlib++ # Hack fix?: https://forum.qt.io/topic/103713/error-cannot-find-lc-qt-5-12-android
target.path = $$DESTDIR
equals(ANDROID_TARGET_ARCH, x86) {
equals(ANDROID_TARGET_ARCH, armeabi-v7a) {
DEFINES += __androidArm32__
message("Android Arm 32 bit build")
} else:equals(ANDROID_TARGET_ARCH, arm64-v8a) {
DEFINES += __androidArm64__
message("Android Arm 64 bit build")
} else:equals(ANDROID_TARGET_ARCH, x86) {
CONFIG += Androidx86Build
DEFINES += __androidx86__
message("Android x86 build")
} else {
message("Android Arm build")
} else {
error("Unsupported Android architecture: $${ANDROID_TARGET_ARCH}")
}
} else {
error("Unsuported Linux toolchain, only GCC 32- or 64-bit is supported")
...
...
QGCExternalLibs.pri
View file @
9c7f5046
...
...
@@ -136,14 +136,16 @@ MacBuild {
# Include Android OpenSSL libs in order to make Qt OpenSSL support work
AndroidBuild {
contains(QT_ARCH, arm)
{
equals(ANDROID_TARGET_ARCH, armeabi-v7a)
{
ANDROID_EXTRA_LIBS += $$BASEDIR/libs/OpenSSL/Android/arch-armeabi-v7a/lib/libcrypto.so
ANDROID_EXTRA_LIBS += $$BASEDIR/libs/OpenSSL/Android/arch-armeabi-v7a/lib/libssl.so
} else:
contains(QT_ARCH, arm64)
{
} else:
equals(ANDROID_TARGET_ARCH, arm64-v8a)
{
# Haven't figured out how to get 64 bit arm OpenSLL yet. This means things like terrain queries will not qork.
} else {
} else
:equals(ANDROID_TARGET_ARCH, x86)
{
ANDROID_EXTRA_LIBS += $$BASEDIR/libs/OpenSSL/Android/arch-x86/lib/libcrypto.so
ANDROID_EXTRA_LIBS += $$BASEDIR/libs/OpenSSL/Android/arch-x86/lib/libssl.so
} else {
error("Unsupported Android architecture: $${ANDROID_TARGET_ARCH}")
}
}
...
...
src/QmlControls/QGroundControlQmlGlobal.cc
View file @
9c7f5046
...
...
@@ -248,3 +248,14 @@ void QGroundControlQmlGlobal::setFlightMapZoom(double zoom)
emit
flightMapZoomChanged
(
zoom
);
}
}
QString
QGroundControlQmlGlobal
::
qgcVersion
(
void
)
const
{
QString
versionStr
=
qgcApp
()
->
applicationVersion
();
#ifdef __androidArm32__
versionStr
+=
QStringLiteral
(
" %1"
).
arg
(
tr
(
"32 bit"
));
#elif __androidArm64__
versionStr
+=
QStringLiteral
(
" %1"
).
arg
(
tr
(
"64 bit"
));
#endif
return
versionStr
;
}
src/QmlControls/QGroundControlQmlGlobal.h
View file @
9c7f5046
...
...
@@ -227,11 +227,11 @@ public:
void
setFlightMapPosition
(
QGeoCoordinate
&
coordinate
);
void
setFlightMapZoom
(
double
zoom
);
QString
parameterFileExtension
(
void
)
const
{
return
AppSettings
::
parameterFileExtension
;
}
QString
missionFileExtension
(
void
)
const
{
return
AppSettings
::
missionFileExtension
;
}
QString
telemetryFileExtension
(
void
)
const
{
return
AppSettings
::
telemetryFileExtension
;
}
QString
parameterFileExtension
(
void
)
const
{
return
AppSettings
::
parameterFileExtension
;
}
QString
missionFileExtension
(
void
)
const
{
return
AppSettings
::
missionFileExtension
;
}
QString
telemetryFileExtension
(
void
)
const
{
return
AppSettings
::
telemetryFileExtension
;
}
QString
qgcVersion
(
void
)
const
{
return
qgcApp
()
->
applicationVersion
();
}
QString
qgcVersion
(
void
)
const
;
#if defined(QGC_AIRMAP_ENABLED)
bool
airmapSupported
()
{
return
true
;
}
...
...
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