[Interest] Android: This application failed to start because it could not find or load the Qt platform plugin "android"

Wassmuth, Christian c.wassmuth at oculus.de
Tue Jan 3 17:54:48 CET 2017


Hallo,

I've tried to build Qt for android from the 5.8 branch in git. The build succeeded without error, but when I try to run an app against this version, I get the following error:

F libuntitled1.so: kernel/qguiapplication.cpp:1132 (void init_platform(const QString&, const QString&, const QString&, int&, char**)): This application failed to start because it could not find or load the Qt platform plugin "android"
F libuntitled1.so: in "".

Does anyone know what caused this error?
The prebuild 5.7 android package runs well.

The Qt configuration was:
./configure -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/oculus/android-ndk-r13b -android-sdk /home/oculus/android-sdk -android-ndk-host linux-x86_64 -android-toolchain-version 4.9 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -skip qtwebengine -no-warnings-are-errors -confirm-license -opensource -developer-build -opengl es2 -shared -qpa android

The full app log output is:

I art     : Late-enabling -Xcheck:jni
W System  : ClassLoader referenced unknown path:
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libQt5Gui.so: unused DT entry: type 0xf arg 0x5d143
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libQt5Gui.so: unsupported flags DT_FLAGS_1=0x81
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libQt5Network.so: unused DT entry: type 0xf arg 0x27db2
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libQt5Network.so: unsupported flags DT_FLAGS_1=0x81
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libQt5Qml.so: unused DT entry: type 0xf arg 0x5531c
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libQt5Qml.so: unsupported flags DT_FLAGS_1=0x81
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libQt5Quick.so: unused DT entry: type 0xf arg 0x5f802
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libQt5Quick.so: unsupported flags DT_FLAGS_1=0x81
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libQt5QuickParticles.so: unused DT entry: type 0xf arg 0x72c8
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libQt5QuickParticles.so: unsupported flags DT_FLAGS_1=0x81
W linker  : /data/data/org.qtproject.example.untitled1/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unused DT entry: type 0xf arg 0xa89b
W linker  : /data/data/org.qtproject.example.untitled1/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unsupported flags DT_FLAGS_1=0x81
I Qt      : qt start
W linker  : /data/data/org.qtproject.example.untitled1/qt-reserved-files/plugins/bearer/libqandroidbearer.so: unused DT entry: type 0xf arg 0x1a8e
W linker  : /data/data/org.qtproject.example.untitled1/qt-reserved-files/plugins/bearer/libqandroidbearer.so: unsupported flags DT_FLAGS_1=0x81
W linker  : /data/app/org.qtproject.example.untitled1-1/lib/arm/libuntitled1.so: unused DT entry: type 0xf arg 0x51e
D         : debugger/qqmldebug.cpp:52 (QQmlDebuggingEnabler::QQmlDebuggingEnabler(bool)): QML debugging is enabled. Only use this in a safe environment.
D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
I OpenGLRenderer: Initialized EGL, version 1.4
F libuntitled1.so: kernel/qguiapplication.cpp:1132 (void init_platform(const QString&, const QString&, const QString&, int&, char**)): This application failed to start because it could not find or load the Qt platform plugin "android"
F libuntitled1.so: in "".
01-03 17:32:56.947  9054  9088 F libuntitled1.so:
F libuntitled1.so: Reinstalling the application may fix this problem.
F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 9088 (ample.untitled1)
D mali_winsys: new_window_surface returns 0x3000,  [2048x1536]-format:1

Thanks,

Christian



More information about the Interest mailing list