Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

App not starting on Android simulator



  • Hi,
    i have problems to get my app running in android simulator.

    Here is the log output:

    Starting remote process.I/art ( 292): Background partial concurrent mark sweep GC freed 21317(1142KB) AllocSpace objects, 17(598KB) LOS objects, 33% free, 2MB/3MB, paused 1.143ms total 115.065ms
    I/art ( 1317): Not late-enabling -Xcheck:jni (already on)
    I/ActivityManager( 292): Start proc 1317:de.test.myapp/u0a53 for activity de.test.myapp/org.qtproject.qt5.android.bindings.QtActivity
    W/linker ( 1317): libQt5Gui.so: unused DT entry: type 0x1d arg 0x4e21a
    W/linker ( 1317): libQt5Widgets.so: unused DT entry: type 0x1d arg 0x6b2bb
    W/linker ( 1317): libQt5Network.so: unused DT entry: type 0x1d arg 0x11731
    W/linker ( 1317): libQt5Qml.so: unused DT entry: type 0x1d arg 0x3417d
    W/linker ( 1317): libQt5Quick.so: unused DT entry: type 0x1d arg 0x35b61
    W/linker ( 1317): libQt5QuickParticles.so: unused DT entry: type 0x1d arg 0x3656
    W/linker ( 1317): libQt5WebView.so: unused DT entry: type 0x1d arg 0x37a1
    W/linker ( 1317): libqtforandroid.so: unused DT entry: type 0x1d arg 0x8f94
    I/Qt ( 1317): qt start
    W/linker ( 1317): libqandroidbearer.so: unused DT entry: type 0x1d arg 0x1727
    W/linker ( 1317): libMyApp.so: unused DT entry: type 0x1d arg 0xf7d4
    W/linker ( 1317): libMyApp.so: unused DT entry: type 0x1d arg 0x628b
    E/art ( 1317): dlopen("/data/app/test.myapp-1/lib/arm/libMyApp.so", RTLD_LAZY) failed: dlopen failed: library "libQt5Sql.so" not found
    D/AndroidRuntime( 1317): Shutting down VM
    E/AndroidRuntime( 1317): FATAL EXCEPTION: main
    E/AndroidRuntime( 1317): Process: de.test.myapp, PID: 1317
    E/AndroidRuntime( 1317): java.lang.UnsatisfiedLinkError: dlopen failed: library "libQt5Sql.so" not found
    E/AndroidRuntime( 1317): at java.lang.Runtime.loadLibrary(Runtime.java:371)
    E/AndroidRuntime( 1317): at java.lang.System.loadLibrary(System.java:988)
    E/AndroidRuntime( 1317): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:252)
    E/AndroidRuntime( 1317): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    E/AndroidRuntime( 1317): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
    E/AndroidRuntime( 1317): at android.app.Activity.performCreate(Activity.java:5990)
    E/AndroidRuntime( 1317): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
    E/AndroidRuntime( 1317): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
    E/AndroidRuntime( 1317): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
    E/AndroidRuntime( 1317): at android.app.ActivityThread.access$800(ActivityThread.java:151)
    E/AndroidRuntime( 1317): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
    E/AndroidRuntime( 1317): at android.os.Handler.dispatchMessage(Handler.java:102)
    E/AndroidRuntime( 1317): at android.os.Looper.loop(Looper.java:135)
    E/AndroidRuntime( 1317): at android.app.ActivityThread.main(ActivityThread.java:5257)
    E/AndroidRuntime( 1317): at java.lang.reflect.Method.invoke(Native Method)
    E/AndroidRuntime( 1317): at java.lang.reflect.Method.invoke(Method.java:372)
    E/AndroidRuntime( 1317): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    E/AndroidRuntime( 1317): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

    My app do not use any sql stuff, why there is a dependency to libQtSql.so?
    If for example qml module would need it, androiddeployqt should autmatically grab it and pack it into the apk?

    Any ideas whats going wrong?

    Greetings
    Nando



  • Hi,

    i added :

    ANDROID_EXTRA_LIBS=/development/Qt/5.5/android_armv7/lib/libQt5Sql.so

    This solved the problem with missing libQt5Sql.so.

    But i thought this should automatically be done by androiddeployqt tool?

    Greetings
    Nando


Log in to reply