[SOLVED]driver not loaded issue



  • Hi,

    I'm working on building MySQL client under Android for that I built Qt MySQL plugin using this patch file (Qt wiki page is deprecated so I'll update it later tomorrow) but unfortunately when I deployed the app to Android it couldn't connect to MySQL although it already has libqsqlmysql.so embedded inside APK file.

    How can I fix this issue?

    lastError() output is:

    driver not loaded
    

    lib content of APK file:

    hpctech-work@hpctech-work ~/Desktop/extracted_apk/lib/armeabi-v7a $ ls -l
    total 18220
    -rw-r--r-- 1 hpctech-work hpctech-work  409940 Oct 29 11:34 gdbserver
    -rw-r--r-- 1 hpctech-work hpctech-work   29940 Oct 29 11:34 libAndroidMysqlClient.so
    -rw-r--r-- 1 hpctech-work hpctech-work  409940 Oct 29 11:34 libgdbserver.so
    -rw-r--r-- 1 hpctech-work hpctech-work  870064 Oct 29 11:34 libgnustl_shared.so
    -rw-r--r-- 1 hpctech-work hpctech-work   38184 Oct 29 11:34 libplugins_generic_libqevdevkeyboardplugin.so
    -rw-r--r-- 1 hpctech-work hpctech-work   25896 Oct 29 11:34 libplugins_generic_libqevdevmouseplugin.so
    -rw-r--r-- 1 hpctech-work hpctech-work   21800 Oct 29 11:34 libplugins_generic_libqevdevtabletplugin.so
    -rw-r--r-- 1 hpctech-work hpctech-work   34088 Oct 29 11:34 libplugins_generic_libqevdevtouchplugin.so
    -rw-r--r-- 1 hpctech-work hpctech-work   25956 Oct 29 11:34 libplugins_imageformats_libqdds.so
    -rw-r--r-- 1 hpctech-work hpctech-work   17704 Oct 29 11:34 libplugins_imageformats_libqgif.so
    -rw-r--r-- 1 hpctech-work hpctech-work   25896 Oct 29 11:34 libplugins_imageformats_libqicns.so
    -rw-r--r-- 1 hpctech-work hpctech-work   17704 Oct 29 11:34 libplugins_imageformats_libqico.so
    -rw-r--r-- 1 hpctech-work hpctech-work  300440 Oct 29 11:34 libplugins_imageformats_libqjp2.so
    -rw-r--r-- 1 hpctech-work hpctech-work  144740 Oct 29 11:34 libplugins_imageformats_libqjpeg.so
    -rw-r--r-- 1 hpctech-work hpctech-work  188868 Oct 29 11:34 libplugins_imageformats_libqmng.so
    -rw-r--r-- 1 hpctech-work hpctech-work   13608 Oct 29 11:34 libplugins_imageformats_libqtga.so
    -rw-r--r-- 1 hpctech-work hpctech-work  291736 Oct 29 11:34 libplugins_imageformats_libqtiff.so
    -rw-r--r-- 1 hpctech-work hpctech-work   13608 Oct 29 11:34 libplugins_imageformats_libqwbmp.so
    -rw-r--r-- 1 hpctech-work hpctech-work  202136 Oct 29 11:34 libplugins_imageformats_libqwebp.so
    -rw-r--r-- 1 hpctech-work hpctech-work  546920 Oct 29 11:34 libplugins_platforms_android_libqtforandroid.so
    -rw-r--r-- 1 hpctech-work hpctech-work  427392 Oct 29 11:34 libplugins_platforms_libqminimalegl.so
    -rw-r--r-- 1 hpctech-work hpctech-work   21800 Oct 29 11:34 libplugins_platforms_libqminimal.so
    -rw-r--r-- 1 hpctech-work hpctech-work  415076 Oct 29 11:34 libplugins_platforms_libqoffscreen.so
    -rw-r--r-- 1 hpctech-work hpctech-work  414844 Oct 29 11:34 libplugins_sqldrivers_libqsqlite.so
    -rw-r--r-- 1 hpctech-work hpctech-work 2919164 Oct 29 11:34 libplugins_sqldrivers_libqsqlmysql.so
    -rw-r--r-- 1 hpctech-work hpctech-work 3943008 Oct 29 11:34 libQt5Core.so
    -rw-r--r-- 1 hpctech-work hpctech-work 3113956 Oct 29 11:34 libQt5Gui.so
    -rw-r--r-- 1 hpctech-work hpctech-work  115968 Oct 29 11:34 libQt5Sql.so
    -rw-r--r-- 1 hpctech-work hpctech-work 3339772 Oct 29 11:34 libQt5Widgets.so
    hpctech-work@hpctech-work ~/Desktop/extracted_apk/lib/armeabi-v7a $
    

  • Lifetime Qt Champion

    Hi,

    You should run the application with QT_DEBUG_PLUGINS set to 1. That should give you some additional information about what is going on.



  • @SGaist said:

    You should run the application with QT_DEBUG_PLUGINS set to 1. That should give you some additional information about what is going on.

    full log:

    14:02:19: Running steps for project AndroidMysqlClient...
    14:02:19: Configuration unchanged, skipping qmake step.
    14:02:19: Starting: "/usr/bin/make" 
    make: Nothing to be done for `first'.
    14:02:19: The process "/usr/bin/make" exited normally.
    14:02:19: Removing directory /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build
    14:02:19: Starting: "/usr/bin/make" INSTALL_ROOT=/home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build install
    install -m 755 -p libAndroidMysqlClient.so /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/libs/armeabi-v7a/libAndroidMysqlClient.so
    14:02:19: The process "/usr/bin/make" exited normally.
    14:02:19: Starting: "/home/hpctech-work/.Qt/5.5/android_armv7/bin/androiddeployqt" --input /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libAndroidMysqlClient.so-deployment-settings.json --output /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build --deployment bundled --android-platform android-17 --jdk /usr/lib/jvm/java-8-oracle --verbose --ant /usr/bin/ant
    Generating Android Package
      Input file: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libAndroidMysqlClient.so-deployment-settings.json
      Output directory: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/
      Application binary: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/libAndroidMysqlClient.so
      Android build platform: android-17
      Install to device: No
    Copying Android package template.
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/AndroidManifest.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/build.gradle
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values/libs.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/layout/splash.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-de/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-el/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-es/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-et/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-fa/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-fr/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-id/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-it/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-ja/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-ms/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-nb/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-nl/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-pl/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-pt-rBR/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-ro/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-rs/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-ru/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-zh-rCN/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res/values-zh-rTW/strings.xml
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/src/org/kde/necessitas/ministro/IMinistro.aidl
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/src/org/kde/necessitas/ministro/IMinistroCallback.aidl
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/src/org/qtproject/qt5/android/bindings/QtActivity.java
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/src/org/qtproject/qt5/android/bindings/QtApplication.java
    Detecting dependencies of application.
    Reading dependencies from /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/libAndroidMysqlClient.so
          lib/libQt5Widgets.so
          lib/libQt5Gui.so
          lib/libQt5Sql.so
          lib/libQt5Core.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/lib/libQt5Widgets.so
          lib/libQt5Gui.so
          lib/libQt5Core.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/lib/libQt5Gui.so
          lib/libQt5Core.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/lib/libQt5Core.so
    Appending dependency: lib/libQt5Core.so
    Reading Android dependencies for Qt5Core
    Appending dependency: lib/libQt5Gui.so
    Reading Android dependencies for Qt5Gui
    Appending dependency from xml: plugins/platforms/android/libqtforandroid.so
    Appending dependency from xml: plugins/platforms/libqeglfs.so
    Appending dependency from xml: plugins/platforms/libqminimal.so
    Appending dependency from xml: plugins/platforms/libqminimalegl.so
    Appending dependency from xml: plugins/platforms/libqoffscreen.so
    Appending dependency from xml: plugins/generic/libqevdevkeyboardplugin.so
    Appending dependency from xml: plugins/generic/libqevdevmouseplugin.so
    Appending dependency from xml: plugins/generic/libqevdevtabletplugin.so
    Appending dependency from xml: plugins/generic/libqevdevtouchplugin.so
    Appending dependency from xml: plugins/generic/libqtuiotouchplugin.so
    Appending dependency from xml: plugins/iconengines/libqsvgicon.so
    Appending dependency from xml: plugins/imageformats/libqdds.so
    Appending dependency from xml: plugins/imageformats/libqgif.so
    Appending dependency from xml: plugins/imageformats/libqicns.so
    Appending dependency from xml: plugins/imageformats/libqico.so
    Appending dependency from xml: plugins/imageformats/libqjp2.so
    Appending dependency from xml: plugins/imageformats/libqjpeg.so
    Appending dependency from xml: plugins/imageformats/libqmng.so
    Appending dependency from xml: plugins/imageformats/libqsvg.so
    Appending dependency from xml: plugins/imageformats/libqtga.so
    Appending dependency from xml: plugins/imageformats/libqtiff.so
    Appending dependency from xml: plugins/imageformats/libqwbmp.so
    Appending dependency from xml: plugins/imageformats/libqwebp.so
    Appending dependency: lib/libQt5Widgets.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/lib/libQt5Sql.so
          lib/libQt5Core.so
    Appending dependency: lib/libQt5Sql.so
    Reading Android dependencies for Qt5Widgets
    Reading Android dependencies for Qt5Sql
    Appending dependency from xml: plugins/sqldrivers/libqsqlite.so
    Appending dependency from xml: plugins/sqldrivers/libqsqlmysql.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/plugins/platforms/android/libqtforandroid.so
          lib/libQt5Gui.so
          lib/libQt5Core.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/plugins/platforms/android/libqtforandroid.so
          lib/libQt5Gui.so
          lib/libQt5Core.so
    Scanning for QML imports.
    Copying GNU STL library
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libgnustl_shared.so
    Copying 31 dependencies from Qt into package.
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libQt5Core.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/QtAndroid-bundled.jar
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/QtAndroidAccessibility-bundled.jar
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libQt5Gui.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_platforms_android_libqtforandroid.so
      -- Skipping /home/hpctech-work/.Qt/5.5/android_armv7/plugins/platforms/libqeglfs.so. It has unmet dependencies: lib/libQt5EglDeviceIntegration.so.
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_platforms_libqminimal.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_platforms_libqminimalegl.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_platforms_libqoffscreen.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_generic_libqevdevkeyboardplugin.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_generic_libqevdevmouseplugin.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_generic_libqevdevtabletplugin.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_generic_libqevdevtouchplugin.so
      -- Skipping /home/hpctech-work/.Qt/5.5/android_armv7/plugins/generic/libqtuiotouchplugin.so. It has unmet dependencies: lib/libQt5Network.so.
      -- Skipping /home/hpctech-work/.Qt/5.5/android_armv7/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so.
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqdds.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqgif.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqicns.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqico.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqjp2.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqjpeg.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqmng.so
      -- Skipping /home/hpctech-work/.Qt/5.5/android_armv7/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so.
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqtga.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqtiff.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqwbmp.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_imageformats_libqwebp.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libQt5Widgets.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libQt5Sql.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_sqldrivers_libqsqlite.so
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libplugins_sqldrivers_libqsqlmysql.so
    Checking if application binary is in package.
    Copying gdbserver into package.
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/gdbserver
      -- Copied /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//libs/armeabi-v7a/libgdbserver.so
    Stripping libraries to minimize size.
    Updating Android package files with project settings.
      -- res/values/libs.xml
      -- AndroidManifest.xml 
      -- /src/org/qtproject/qt5/android/bindings/QtActivity.java
    Pregenerating entry list for assets file engine.
    Running Android tool to create package definition.
      -- Command: /home/hpctech-work/.Qt/android-sdk-linux/tools/android update project --path /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/ --target android-17 --name QtApp
    Building Android package using ant.
    Using ant: /usr/bin/ant
    Buildfile: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/build.xml
    
    -set-mode-check:
    
    -set-debug-files:
    
    -check-env:
     [checkenv] Android SDK Tools Revision 24.4.0
     [checkenv] Installed at /home/hpctech-work/.Qt/android-sdk-linux
    
    -setup:
         [echo] Project Name: QtApp
      [gettype] Project Type: Application
    
    -set-debug-mode:
    
    -debug-obfuscation-check:
    
    -pre-build:
    
    -build-setup:
    [getbuildtools] Using latest Build Tools: 23.0.1
         [echo] Resolving Build Target for QtApp...
    [gettarget] Project Target:   Android 4.2.2
    [gettarget] API level:        17
         [echo] ----------
         [echo] Creating output directories if needed...
        [mkdir] Created dir: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin
        [mkdir] Created dir: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/res
        [mkdir] Created dir: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/rsObj
        [mkdir] Created dir: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/rsLibs
        [mkdir] Created dir: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/gen
        [mkdir] Created dir: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/classes
        [mkdir] Created dir: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/dexedLibs
         [echo] ----------
         [echo] Resolving Dependencies for QtApp...
    [dependency] Library dependencies:
    [dependency] No Libraries
    [dependency] 
    [dependency] ------------------
         [echo] ----------
         [echo] Building Libraries with 'debug'...
       [subant] No sub-builds to iterate on
    
    -code-gen:
    [mergemanifest] Merging AndroidManifest files into one.
    [mergemanifest] Manifest merger disabled. Using project manifest only.
         [echo] Handling aidl files...
         [aidl] Found 2 AIDL files.
         [aidl] Compiling 2 AIDL files.
         [echo] ----------
         [echo] Handling RenderScript files...
         [echo] ----------
         [echo] Handling Resources...
         [aapt] Generating resource IDs...
         [echo] ----------
         [echo] Handling BuildConfig class...
    [buildconfig] Generating BuildConfig class.
    
    -pre-compile:
    
    -compile:
        [javac] Compiling 6 source files to /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/classes
        [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
        [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
        [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
        [javac] Note: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/src/org/qtproject/qt5/android/bindings/QtActivity.java uses or overrides a deprecated API.
        [javac] Note: Recompile with -Xlint:deprecation for details.
        [javac] 3 warnings
    
    -post-compile:
    
    -obfuscate:
    
    -dex:
          [dex] input: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/classes
          [dex] input: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/libs/QtAndroid-bundled.jar
          [dex] input: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/libs/QtAndroidAccessibility-bundled.jar
          [dex] Pre-Dexing /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/libs/QtAndroid-bundled.jar -> QtAndroid-bundled-3f4c4ccaadd402fdd0419e235103895c.jar
          [dex] Pre-Dexing /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/libs/QtAndroidAccessibility-bundled.jar -> QtAndroidAccessibility-bundled-aa62c4c059be86d6a5c491dc8953fa7c.jar
          [dex] Converting compiled files and external libraries into /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/classes.dex...
           [dx] Merged dex A (23 defs/42.2KiB) with dex B (56 defs/115.5KiB). Result is 79 defs/184.8KiB. Took 0.1s
           [dx] Merged dex A (79 defs/184.8KiB) with dex B (5 defs/10.4KiB). Result is 84 defs/235.5KiB. Took 0.0s
    
    -crunch:
       [crunch] Crunching PNG Files in source dir: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/res
       [crunch] To destination dir: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/res
       [crunch] Crunched 0 PNG files to update cache
    
    -package-resources:
         [aapt] Creating full resource package...
    
    -package:
    [apkbuilder] Current build type is different than previous build: forced apkbuilder run.
    [apkbuilder] Creating QtApp-debug-unaligned.apk and signing it with a debug key...
    
    -post-package:
    
    -do-debug:
     [zipalign] Running zip align on final apk...
         [echo] Debug Package: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/QtApp-debug.apk
    [propertyfile] Creating new property file: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/build.prop
    [propertyfile] Updating property file: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/build.prop
    [propertyfile] Updating property file: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/build.prop
    [propertyfile] Updating property file: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/build.prop
    
    -post-build:
    
    debug:
    
    BUILD SUCCESSFUL
    Total time: 10 seconds
    Android package built successfully in 11.749 ms.
      -- File: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//bin/QtApp-debug.apk
    14:02:31: The process "/home/hpctech-work/.Qt/5.5/android_armv7/bin/androiddeployqt" exited normally.
    14:02:31: Starting: "/home/hpctech-work/.Qt/5.5/android_armv7/bin/androiddeployqt" --verbose --output /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build --no-build --input /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libAndroidMysqlClient.so-deployment-settings.json --deployment bundled --reinstall --device emulator-5554
    Generating Android Package
      Input file: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libAndroidMysqlClient.so-deployment-settings.json
      Output directory: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/
      Application binary: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/libAndroidMysqlClient.so
      Android build platform: android-23
      Install to device: emulator-5554
    Detecting dependencies of application.
    Reading dependencies from /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/libAndroidMysqlClient.so
          lib/libQt5Widgets.so
          lib/libQt5Gui.so
          lib/libQt5Sql.so
          lib/libQt5Core.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/lib/libQt5Widgets.so
          lib/libQt5Gui.so
          lib/libQt5Core.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/lib/libQt5Gui.so
          lib/libQt5Core.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/lib/libQt5Core.so
    Appending dependency: lib/libQt5Core.so
    Reading Android dependencies for Qt5Core
    Appending dependency: lib/libQt5Gui.so
    Reading Android dependencies for Qt5Gui
    Appending dependency from xml: plugins/platforms/android/libqtforandroid.so
    Appending dependency from xml: plugins/platforms/libqeglfs.so
    Appending dependency from xml: plugins/platforms/libqminimal.so
    Appending dependency from xml: plugins/platforms/libqminimalegl.so
    Appending dependency from xml: plugins/platforms/libqoffscreen.so
    Appending dependency from xml: plugins/generic/libqevdevkeyboardplugin.so
    Appending dependency from xml: plugins/generic/libqevdevmouseplugin.so
    Appending dependency from xml: plugins/generic/libqevdevtabletplugin.so
    Appending dependency from xml: plugins/generic/libqevdevtouchplugin.so
    Appending dependency from xml: plugins/generic/libqtuiotouchplugin.so
    Appending dependency from xml: plugins/iconengines/libqsvgicon.so
    Appending dependency from xml: plugins/imageformats/libqdds.so
    Appending dependency from xml: plugins/imageformats/libqgif.so
    Appending dependency from xml: plugins/imageformats/libqicns.so
    Appending dependency from xml: plugins/imageformats/libqico.so
    Appending dependency from xml: plugins/imageformats/libqjp2.so
    Appending dependency from xml: plugins/imageformats/libqjpeg.so
    Appending dependency from xml: plugins/imageformats/libqmng.so
    Appending dependency from xml: plugins/imageformats/libqsvg.so
    Appending dependency from xml: plugins/imageformats/libqtga.so
    Appending dependency from xml: plugins/imageformats/libqtiff.so
    Appending dependency from xml: plugins/imageformats/libqwbmp.so
    Appending dependency from xml: plugins/imageformats/libqwebp.so
    Appending dependency: lib/libQt5Widgets.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/lib/libQt5Sql.so
          lib/libQt5Core.so
    Appending dependency: lib/libQt5Sql.so
    Reading Android dependencies for Qt5Widgets
    Reading Android dependencies for Qt5Sql
    Appending dependency from xml: plugins/sqldrivers/libqsqlite.so
    Appending dependency from xml: plugins/sqldrivers/libqsqlmysql.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/plugins/platforms/android/libqtforandroid.so
          lib/libQt5Gui.so
          lib/libQt5Core.so
    Reading dependencies from /home/hpctech-work/.Qt/5.5/android_armv7/plugins/platforms/android/libqtforandroid.so
          lib/libQt5Gui.so
          lib/libQt5Core.so
    Scanning for QML imports.
    Copying GNU STL library
      -- Skipping file /home/hpctech-work/.Qt/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_shared.so. Same or newer file already in place.
    Copying 31 dependencies from Qt into package.
    2121 KB/s (9795078 bytes in 4.508s)
    Installing Android package to device.
    Running command "/home/hpctech-work/.Qt/android-sdk-linux/platform-tools/adb -s emulator-5554  install -r /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//bin/QtApp-debug.apk"
    	pkg: /data/local/tmp/QtApp-debug.apk
    Success
    Android package built successfully in 19.176 ms.
      -- It can now be run from the selected device/emulator.
      -- File: /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build//bin/QtApp-debug.apk
    14:02:50: The process "/home/hpctech-work/.Qt/5.5/android_armv7/bin/androiddeployqt" exited normally.
    14:02:50: Pulling files necessary for debugging.
    14:02:51: Package deploy: Running command "/home/hpctech-work/.Qt/android-sdk-linux/platform-tools/adb -s emulator-5554 pull /system/bin/sh: readlink: not found /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/app_process".
    14:02:51: Packaging error: Command "/home/hpctech-work/.Qt/android-sdk-linux/platform-tools/adb -s emulator-5554 pull /system/bin/sh: readlink: not found /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/app_process" failed.Exit code: 1
    14:02:51: Package deploy: Failed to pull "/system/bin/sh: readlink: not found" to "/home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/app_process".
    14:02:51: Package deploy: Running command "/home/hpctech-work/.Qt/android-sdk-linux/platform-tools/adb -s emulator-5554 pull /system/lib/libc.so /home/hpctech-work/HPCTECH/Projects/build-AndroidMysqlClient-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/libc.so".
    Error while building/deploying project AndroidMysqlClient (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.0))
    When executing step "Deploy to Android device"
    14:02:51: Elapsed time: 00:32.
    

  • Lifetime Qt Champion

    It's something else: looks like QTCREATORBUG-14201



  • @SGaist said:

    It's something else: looks like QTCREATORBUG-14201

    You mean this issue affectes on deployment process or it affects on debugging the app?


  • Lifetime Qt Champion

    Deployment but since you can't deploy, you can't debug either



  • @SGaist said:

    Deployment but since you can't deploy, you can't debug either

    I tried to use Qt Creator 3.5.81 (3.6.0-beta1) something changed... may you please take a look to the log:


  • Lifetime Qt Champion

    Just to be sure, are you working on Linux ?



  • @SGaist said:

    Just to be sure, are you working on Linux ?

    Yes. Linux Mint xfce 17.2 x64



  • BTW, I tried to post some of my questions -as you advised me before- about Android but unfortunately Android development mailing-list is nearly dead :(


  • Lifetime Qt Champion

    Strange, you can also ping people in the #necessitas IRC channel



  • @SGaist said:

    Strange, you can also ping people in the #necessitas IRC channel

    I pinged #necessitas guys yesterday but since 24hrs no one posted any message in #necessitas channel (except me). It seems Anroid port to Qt dying


  • Lifetime Qt Champion

    No not at all, it's active, e.g. Nfc support added in 5.6

    You can also use the #qt channel that might more active.



  • Because of lack of responses I opened a bug report in this link:
    https://bugreports.qt.io/browse/QTCREATORBUG-15403


  • Lifetime Qt Champion

    It's not a Qt Creator bug at all. Something make it so that the driver is not loaded indeed, but Qt Creator is innocent for that matter.



  • The problem solved and I updated the wiki page to include the solution:
    https://wiki.qt.io/Build_Qt_5_MySQL_Plugin_for_Android#Using_mariadbclient_.28Option_2.29


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.