summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssam Boudjelthia <[email protected]>2023-03-14 23:32:03 +0200
committerQt Cherry-pick Bot <[email protected]>2023-03-16 08:23:56 +0000
commit92746da8620a185dff0a8cb611fd1624bc7e0c2a (patch)
treed6c7f7981c96b209450aa3ec5821a71a007aa9dc
parent90a16c3f7c6114372b8b04b1f3b5c5d1be470e85 (diff)
Android: demistify the "No platform plugin" androiddeployqt error
Make the error message clearly mention that a Qt for Android app require linking to Qt Gui library. Along the way get rid of the libqtforandroidGL mention which was valid when Qt for Android had separate plugins for raster and opengl, which was removed some time ago in 8a9bd001c947e6888d37e99fc456339fd2b51b36. Task-number: QTBUG-111933 Task-number: QTBUG-111934 Task-number: QTBUG-108643 Task-number: QTBUG-97636 Task-number: QTBUG-83997 Fixes: QTBUG-85544 Task-number: QTBUG-93185 Change-Id: I24f6c08f619d805e0d82758d35aebaf32038206c Reviewed-by: Alexandru Croitor <[email protected]> (cherry picked from commit a9c8870b5e6eddc31b78b7e4afe46b28110e7863) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
-rw-r--r--src/tools/androiddeployqt/main.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/tools/androiddeployqt/main.cpp b/src/tools/androiddeployqt/main.cpp
index 93214e3a309..5a263d17d5a 100644
--- a/src/tools/androiddeployqt/main.cpp
+++ b/src/tools/androiddeployqt/main.cpp
@@ -1496,15 +1496,9 @@ bool updateLibsXml(Options *options)
if (localLibs.isEmpty()) {
QString plugin;
for (const QtDependency &qtDependency : options->qtDependencies[it.key()]) {
- if (qtDependency.relativePath.endsWith("libqtforandroid.so"_L1)
- || qtDependency.relativePath.endsWith("libqtforandroidGL.so"_L1)) {
- if (!plugin.isEmpty() && plugin != qtDependency.relativePath) {
- fprintf(stderr, "Both platform plugins libqtforandroid.so and libqtforandroidGL.so included in package. Please include only one.\n");
- return false;
- }
-
+ if (qtDependency.relativePath.endsWith("libqtforandroid.so"_L1))
plugin = qtDependency.relativePath;
- }
+
if (qtDependency.relativePath.contains(
QString::asprintf("libQt%dOpenGL", QT_VERSION_MAJOR))
|| qtDependency.relativePath.contains(
@@ -1516,7 +1510,8 @@ bool updateLibsXml(Options *options)
if (plugin.isEmpty()) {
fflush(stdout);
- fprintf(stderr, "No platform plugin, neither libqtforandroid.so or libqtforandroidGL.so, included in package. Please include one.\n");
+ fprintf(stderr, "No platform plugin (libqtforandroid.so) included in "
+ "the deployment. Make sure the app links to Qt Gui library.\n");
fflush(stderr);
return false;
}