Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-108497

Can't run Qt3D examples on Android with OpenGL renderer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.4.0
    • Qt3D
    • None
    • Android

    Description

      When I try to run the simple qml example for Qt3D on an Android device (Samsung Galaxy Tab S8) it does not start due to not finding the rhi renderer plugin.

      Then, I force the OpenGL renderer by adding the following line to main.cpp

      qputenv("QT_DEBUG_PLUGINS", "1"); qputenv("QT3D_RENDERER", "opengl");

      The app now runs but it does not show any mesh on screen (although on screen stats show 2 geometries, 13440 vertices, etc). Looking at the debug output, I see shader compilation errors as follows:

      I AdrenoGLES-0: WARNING: 0:3: extension 'GL_ARB_fragment_coord_conventions' is not supported
      I AdrenoGLES-0: ERROR: 0:6: 'attribute' : supported in vertex shaders only
      I AdrenoGLES-0: ERROR: 0:7: 'attribute' : supported in vertex shaders only
      I AdrenoGLES-0: ERROR: 2 compilation errors. No code generated.
      11-15 13:57:03.770 8626 8654 I AdrenoGLES-0:
      W libsimple-qml_arm64-v8a.so: QOpenGLShader::compile(Fragment): WARNING: 0:3: extension 'GL_ARB_fragment_coord_conventions' is not supported
      W libsimple-qml_arm64-v8a.so: ERROR: 0:6: 'attribute' : supported in vertex shaders only
      W libsimple-qml_arm64-v8a.so: ERROR: 0:7: 'attribute' : supported in vertex shaders only
      W libsimple-qml_arm64-v8a.so: ERROR: 2 compilation errors. No code generated.
      11-15 13:57:03.770 8626 8654 W libsimple-qml_arm64-v8a.so:
      11-15 13:57:03.770 8626 8654 W libsimple-qml_arm64-v8a.so:
      W libsimple-qml_arm64-v8a.so: *** Problematic Fragment shader source code ***
      W libsimple-qml_arm64-v8a.so: #version 100
      W libsimple-qml_arm64-v8a.so: #ifdef GL_KHR_blend_equation_advanced
      W libsimple-qml_arm64-v8a.so: #extension GL_ARB_fragment_coord_conventions : enable
      W libsimple-qml_arm64-v8a.so: #extension GL_KHR_blend_equation_advanced : enable
      W libsimple-qml_arm64-v8a.so: #endif
      W libsimple-qml_arm64-v8a.so: #ifndef GL_FRAGMENT_PRECISION_HIGH
      W libsimple-qml_arm64-v8a.so: #define highp mediump
      W libsimple-qml_arm64-v8a.so: #endif
      W libsimple-qml_arm64-v8a.so: #line 1
      11-15 13:57:03.770 8626 8654 W libsimple-qml_arm64-v8a.so:
      W libsimple-qml_arm64-v8a.so: #define LAYER_diffuse
      W libsimple-qml_arm64-v8a.so: #define LAYER_specular
      W libsimple-qml_arm64-v8a.so: #define LAYER_normal
      W libsimple-qml_arm64-v8a.so: uniform highp vec3 eyePosition;
      W libsimple-qml_arm64-v8a.so: attribute highp vec3 worldPosition;
      W libsimple-qml_arm64-v8a.so: attribute highp vec3 worldNormal;
      W libsimple-qml_arm64-v8a.so: uniform highp float shininess;
      W libsimple-qml_arm64-v8a.so: uniform highp vec4 ks;
      W libsimple-qml_arm64-v8a.so: uniform highp vec4 kd;
      W libsimple-qml_arm64-v8a.so: uniform highp vec4 ka;
      W libsimple-qml_arm64-v8a.so: /****************************************************************************

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              seanharmer Sean Harmer
              alaurenzi Arturo Laurenzi
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes