[Interest] Using QtQuick Controls 2 on android

Wolfgang Baron Wolfgang.Baron at gmx.net
Wed Aug 31 02:42:17 CEST 2016


Hi,

I am trying to use QtQuick Controls on android (emulator for now). I 
cannot deploy a single project using QtQuick Controls 2 on android. The 
same project runs on windows classic and winrt. Other projects without 
QtQuick Controls 2 do run on android. The encountered error messages for 
the quickcontrols2 gallery example are:


Warning: QML import could not be resolved in any of the import paths: 
QtQuick.Controls.impl
Warning: QML import could not be resolved in any of the import paths: 
QtQuick.Controls.Material.impl
Warning: QML import could not be resolved in any of the import paths: 
QtQuick.Controls.Universal.impl


Although this may sound harmless, as it's just a warning, the resulting 
program will not run. With host GPU turned on, a white display is shown 
and the application output window shows:


W System : ClassLoader referenced unknown path:

W linker : 
/data/data/org.qtproject.example.gallery/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.gallery/qt-reserved-files/plugins/bearer/libqandroidbearer.so: 
is missing DT_SONAME will use basename as a replacement: 
"libqandroidbearer.so"

D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

D : HostConnection::get() New Host Connection established 0xab124270, 
tid 2699

D : HostConnection::get() New Host Connection established 0xaeb87330, 
tid 2712

I OpenGLRenderer: Initialized EGL, version 1.4

W linker : 
/data/data/org.qtproject.example.gallery/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.gallery/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.gallery/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so: 
is missing DT_SONAME will use basename as a replacement: 
"libqtquickcontrols2plugin.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/qml/QtQuick/Controls.2/Material/libqtquickcontrols2materialstyleplugin.so: 
is missing DT_SONAME will use basename as a replacement: 
"libqtquickcontrols2materialstyleplugin.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/qml/QtQuick/Controls.2/Universal/libqtquickcontrols2universalstyleplugin.so: 
is missing DT_SONAME will use basename as a replacement: 
"libqtquickcontrols2universalstyleplugin.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/qml/Qt/labs/settings/libqmlsettingsplugin.so: 
is missing DT_SONAME will use basename as a replacement: 
"libqmlsettingsplugin.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so: 
is missing DT_SONAME will use basename as a replacement: 
"libqtquicktemplates2plugin.so"

W linker : 
/data/data/org.qtproject.example.gallery/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.gallery/qt-reserved-files/plugins/imageformats/libqdds.so: 
is missing DT_SONAME will use basename as a replacement: "libqdds.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/plugins/imageformats/libqgif.so: 
is missing DT_SONAME will use basename as a replacement: "libqgif.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/plugins/imageformats/libqicns.so: 
is missing DT_SONAME will use basename as a replacement: "libqicns.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/plugins/imageformats/libqico.so: 
is missing DT_SONAME will use basename as a replacement: "libqico.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/plugins/imageformats/libqjpeg.so: 
is missing DT_SONAME will use basename as a replacement: "libqjpeg.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/plugins/imageformats/libqtga.so: 
is missing DT_SONAME will use basename as a replacement: "libqtga.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/plugins/imageformats/libqtiff.so: 
is missing DT_SONAME will use basename as a replacement: "libqtiff.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/plugins/imageformats/libqwbmp.so: 
is missing DT_SONAME will use basename as a replacement: "libqwbmp.so"

W linker : 
/data/data/org.qtproject.example.gallery/qt-reserved-files/plugins/imageformats/libqwebp.so: 
is missing DT_SONAME will use basename as a replacement: "libqwebp.so"

W Gallery : (null):0 ((null)): libpng warning: iCCP: known incorrect 
sRGB profile

D : HostConnection::get() New Host Connection established 0xa07f0320, 
tid 2713

D : HostConnection::get() New Host Connection established 0xaeb88140, 
tid 2718

W Gallery : (null):0 ((null)): QOpenGLShader::compile(Vertex): Vertex 
shader failed to compile with the following errors:

W Gallery : ERROR: 0:2: error(#101) Macro redefined: lowp

W Gallery : ERROR: 0:3: error(#101) Macro redefined: mediump

W Gallery : ERROR: 0:4: error(#101) Macro redefined: highp

W Gallery : ERROR: error(#273) 3 compilation errors. No code generated

08-31 00:33:01.629 2699 2718 W Gallery :

08-31 00:33:01.629 2699 2718 W Gallery :

W Gallery : (null):0 ((null)): *** Problematic Vertex shader source code ***

W Gallery : (null):0 ((null)): #define lowp

W Gallery : #define mediump

W Gallery : #define highp

W Gallery : #line 1

W Gallery : attribute highp vec4 vertexCoord;

W Gallery : attribute highp vec4 vertexColor;

08-31 00:33:01.629 2699 2718 W Gallery :

W Gallery : uniform highp mat4 matrix;

W Gallery : uniform highp float opacity;

08-31 00:33:01.629 2699 2718 W Gallery :

W Gallery : varying lowp vec4 color;

08-31 00:33:01.629 2699 2718 W Gallery :

W Gallery : attribute highp float _qt_order;

W Gallery : uniform highp float _qt_zRange;

W Gallery : void main()

W Gallery : {

W Gallery : gl_Position = matrix * vertexCoord;

W Gallery : color = vertexColor * opacity;

W Gallery : gl_Position.z = (gl_Position.z * _qt_zRange + _qt_order) * 
gl_Position.w;

W Gallery : }

W Gallery : (null):0 ((null)): ***

W Gallery : (null):0 ((null)): QOpenGLShader::compile(Fragment): 
Fragment shader failed to compile with the following errors:

W Gallery : ERROR: 0:2: error(#101) Macro redefined: lowp

W Gallery : ERROR: 0:3: error(#101) Macro redefined: mediump

W Gallery : ERROR: 0:4: error(#101) Macro redefined: highp

W Gallery : ERROR: error(#273) 3 compilation errors. No code generated


and so on...


I am running this example on Windows 10. Do I need to change my 
environment or is this a bug? All bugs having similar content did not 
quite describe what I am experiencing.


Thanks for an help!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160831/132a6bb7/attachment.html>


More information about the Interest mailing list