Qt for Android error during deployment



  • I am trying to run a "Hello World" app in qml on an Android TV. I always getting this error when I try to run the project (on simulator)
    The kit Android for x86 (GCC 4.9, Qt 5.7.1) has configuration issues which might be the root cause for this problem.


  • Lifetime Qt Champion

    Hi,

    Did you build Qt for Android for x86 yourself ?
    Are you running the emulator with a x86 image ?



  • No, I installed Qt for Android using the Maintenance Tool. I am using an Android Virtual device (downloaded with Android Studio).


  • Lifetime Qt Champion

    Then can you check the what exact configuration issue Qt Creator complains about ?



  • Ok I solved this problem by uninstalling Qt and reinstalling the entire Qt SDK. Now I have another one: when I launch the application on the simulator, there is only a blank screen. I have tried other application from the official examples, the one written in pure C++ work. But any application that involves QML just displays a blank white window. The application output says the following:
    Starting remote process.I art : Not late-enabling -Xcheck:jni (already on) W System : ClassLoader referenced unknown path: W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: is missing DT_SONAME will use basename as a replacement: "libqtforandroid.so" I Qt : qt start W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/bearer/libqandroidbearer.so: is missing DT_SONAME will use basename as a replacement: "libqandroidbearer.so" D : (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment. D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true D : HostConnection::get() New Host Connection established 0xadf48bc0, tid 3197 W : Process pipe failed D : HostConnection::get() New Host Connection established 0xadf48dc0, tid 3214 I OpenGLRenderer: Initialized EGL, version 1.4 E EGL_emulation: tid 3214: eglSurfaceAttrib(1165): error 0x3009 (EGL_BAD_MATCH) W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xae913560, error=EGL_BAD_MATCH W linker : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: is missing DT_SONAME will use basename as a replacement: "libqtquick2plugin.so" W linker : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Controls/libqtquickcontrolsplugin.so: is missing DT_SONAME will use basename as a replacement: "libqtquickcontrolsplugin.so" W linker : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so: is missing DT_SONAME will use basename as a replacement: "libwindowplugin.so" W linker : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Layouts/libqquicklayoutsplugin.so: is missing DT_SONAME will use basename as a replacement: "libqquicklayoutsplugin.so" W linker : /data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Controls/Styles/Android/libqtquickcontrolsandroidstyleplugin.so: is missing DT_SONAME will use basename as a replacement: "libqtquickcontrolsandroidstyleplugin.so"


  • Lifetime Qt Champion

    Did you enable 3D acceleration ?



  • @SGaist said in Qt for Android error during deployment:

    Did you enable 3D acceleration ?

    Alright so what I did is I uninstalled Qt from my computer and installed it again. Now I am able to run and launch the application. However there is a new problem: it shows a blank screen. This happens only if my application involves QML, a pure C++ application runs just fine.


Log in to reply
 

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