Android 5.0 - Qt - NOT WORKING

538 views
Skip to first unread message

Christophe M

unread,
Nov 18, 2014, 3:50:36 AM11/18/14
to andro...@googlegroups.com
I've just installed Android 5.0 on my nexus 4 and Qt/Qml application stop working. I have a white screen with all of the applications.
Making a simple test :
- Create a new project QtQuick 2.2 for android
- Deploy it without touching anything (Hello world)
- Bundled Qt libs

I have the following log message : 

Bundled Qt lib :
-------------------------------------------------------------------------------------------

Starting remote process.I/art (15413): Late-enabling -Xcheck:jni

I/Qt (15413): Network start

I/Qt (15413): qt start

D/Qt (15413): qml/qqmlengine.cpp:1454 (QQmlDebuggingEnabler::QQmlDebuggingEnabler(bool)): QML debugging is enabled. Only use this in a safe environment.

I/Adreno-EGL(15413): <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/28/14, c33033c, Ia6306ec328

D/OpenGLRenderer(15413): Render dirty regions requested: true

D/Atlas (15413): Validating map...

W/Qt (15413): qml/qqmlapplicationengine.cpp:133 (void QQmlApplicationEnginePrivate::_q_finishLoad(QObject*)): QQmlApplicationEngine failed to load component

W/Qt (15413): qml/qqmlapplicationengine.cpp:134 (void QQmlApplicationEnginePrivate::_q_finishLoad(QObject*)): qrc:///main.qml:2 module "QtQuick.Window" is not installed

W/Qt (15413): qrc:///main.qml:1 module "QtQuick" is not installed

W/Qt (15413): qrc:///main.qml:2 module "QtQuick.Window" is not installed

W/Qt (15413): qrc:///main.qml:1 module "QtQuick" is not installed

W/Qt (15413):

I/OpenGLRenderer(15413): Initialized EGL, version 1.4

D/OpenGLRenderer(15413): Enabling debug mode 0



Testing using Ministro :

-------------------------------------------------------------------------------------------


Starting remote process.I/art (24272): Late-enabling -Xcheck:jni

W/ContextImpl(24272): Implicit intents with startService are not safe: Intent { act=org.kde.necessitas.ministro.IMinistro } android.content.ContextWrapper.bindService:538 org.qtproject.qt5.android.bindings.QtActivity.startApp:648 org.qtproject.qt5.android.bindings.QtActivity.onCreate:872

D/OpenGLRenderer(24272): Render dirty regions requested: true

D/Atlas (24272): Validating map...

I/Adreno-EGL(24272): <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/28/14, c33033c, Ia6306ec328

I/OpenGLRenderer(24272): Initialized EGL, version 1.4

D/OpenGLRenderer(24272): Enabling debug mode 0

I/Qt (24272): Network start

I/Qt (24272): qt start

D/Qt (24272): qml/qqmlengine.cpp:1454 (QQmlDebuggingEnabler::QQmlDebuggingEnabler(bool)): QML debugging is enabled. Only use this in a safe environment.

D/AndroidRuntime(24272): Shutting down VM

E/AndroidRuntime(24272): FATAL EXCEPTION: main

E/AndroidRuntime(24272): Process: org.qtproject.example.Test, PID: 24272

E/AndroidRuntime(24272): java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/org.qtproject.example.Test-1/lib/arm/libTest.so"

E/AndroidRuntime(24272): at java.lang.Runtime.loadLibrary(Runtime.java:371)

E/AndroidRuntime(24272): at java.lang.System.loadLibrary(System.java:989)

E/AndroidRuntime(24272): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:249)

E/AndroidRuntime(24272): at org.qtproject.qt5.android.bindings.QtActivity.access$400(QtActivity.java:93)

E/AndroidRuntime(24272): at org.qtproject.qt5.android.bindings.QtActivity$3$1$1.run(QtActivity.java:308)

E/AndroidRuntime(24272): at android.os.Handler.handleCallback(Handler.java:739)

E/AndroidRuntime(24272): at android.os.Handler.dispatchMessage(Handler.java:95)

E/AndroidRuntime(24272): at android.os.Looper.loop(Looper.java:135)

E/AndroidRuntime(24272): at android.app.ActivityThread.main(ActivityThread.java:5221)

E/AndroidRuntime(24272): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(24272): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(24272): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)

E/AndroidRuntime(24272): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

I/Process (24272): Sending signal. PID: 24272 SIG: 9



"org.qtproject.example.Test" died.



Pushing local Qt lib to phone : 

-------------------------------------------------------------------------------------------


Starting remote process.I/art (24659): Late-enabling -Xcheck:jni

E/art (24659): dlopen("/data/local/tmp/qt/lib/libgnustl_shared.so", RTLD_LAZY) failed: dlopen failed: couldn't map "/data/local/tmp/qt/lib/libgnustl_shared.so" segment 2: Permission denied

W/ct.example.Test(24659): type=1400 audit(0.0:49): avc: denied { execute } for path="/data/local/tmp/qt/lib/libgnustl_shared.so" dev="mmcblk0p23" ino=122448 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file

W/System.err(24659): java.lang.reflect.InvocationTargetException

W/System.err(24659): at java.lang.reflect.Method.invoke(Native Method)

W/System.err(24659): at java.lang.reflect.Method.invoke(Method.java:372)

W/System.err(24659): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:242)

W/System.err(24659): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:643)

W/System.err(24659): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:872)

W/System.err(24659): at android.app.Activity.performCreate(Activity.java:5933)

W/System.err(24659): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)

W/System.err(24659): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)

W/System.err(24659): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)

W/System.err(24659): at android.app.ActivityThread.access$800(ActivityThread.java:144)

W/System.err(24659): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)

W/System.err(24659): at android.os.Handler.dispatchMessage(Handler.java:102)

W/System.err(24659): at android.os.Looper.loop(Looper.java:135)

W/System.err(24659): at android.app.ActivityThread.main(ActivityThread.java:5221)

W/System.err(24659): at java.lang.reflect.Method.invoke(Native Method)

W/System.err(24659): at java.lang.reflect.Method.invoke(Method.java:372)

W/System.err(24659): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)

W/System.err(24659): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

W/System.err(24659): Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: couldn't map "/data/local/tmp/qt/lib/libgnustl_shared.so" segment 2: Permission denied

W/System.err(24659): at java.lang.Runtime.load(Runtime.java:331)

W/System.err(24659): at java.lang.System.load(System.java:982)

W/System.err(24659): at org.qtproject.qt5.android.QtNative.loadQtLibraries(QtNative.java:132)

W/System.err(24659): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:410)

W/System.err(24659): ... 18 more

D/OpenGLRenderer(24659): Render dirty regions requested: true

D/Atlas (24659): Validating map...

I/Adreno-EGL(24659): <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/28/14, c33033c, Ia6306ec328

I/OpenGLRenderer(24659): Initialized EGL, version 1.4

D/OpenGLRenderer(24659): Enabling debug mode 0

D/OpenGLRenderer(24659): endAllStagingAnimators on 0xb83b8490 (RippleDrawable) with handle 0xb83d11e0

Flávio Pontes

unread,
Jan 11, 2015, 1:43:05 PM1/11/15
to andro...@googlegroups.com
Looks like some modules are missing. These lines tell you:

_q_finishLoad(QObject*)): qrc:///main.qml:2 module "QtQuick.Window" is not installed

W/Qt (15413): qrc:///main.qml:1 module "QtQuick" is not installed

W/Qt (15413): qrc:///main.qml:2 module "QtQuick.Window" is not installed

W/Qt (15413): qrc:///main.qml:1 module "QtQuick" is not installed


--
You received this message because you are subscribed to the Google Groups "android-qt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-qt+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages