Results 1 to 2 of 2

Thread: Compile for ANGLE Visual Studio Android Emulator

  1. #1

    Default Compile for ANGLE Visual Studio Android Emulator

    Hi folks
    I am just trying to make my first steps with Qt Framework.

    My final goal is to create a cross Platform mobile application.

    I created a Qt Quick 2 Hello World app, and I started playing with that.
    It compiles and runs correctly with Windows, Windows Phone (emulator or device) and Android Genymotion.

    I am corrently using Windows 10, Qt 5.5 and last version of pretty much everything I mentioned.

    What I have not managed to accomplish is to use the Visual Studio Android Emulator.

    The app is not rendered in the emulator and only a White screen is showed. If I click on the background the app closes (and this is correct accordingly to the Hello World example app), so it means the app is running indeed and the problem is related only to rendering.

    Official Visual Studio Android emulator documentation says :

    "If your app makes direct or indirect use of OpenGL ES 3.0 or higher, it may not render on our emulator. This is because we use the open source ANGLE (Almost Native Graphics Layer Engine) project to convert OpenGL ES calls to DirectX before they are forwarded to run on the host machine's GPU. ANGLE supports most OpenGL ES 3.0 APIs, but a few have yet to be implemented. However, OpenGL ES 2.0 works correctly."

    If I use OpenGL Viewer App in Genymotion I can read "OpenGL ES 2.0 (3.3)". If I use OpenGL Viewer App in Visual Studio Android emulator I can read "OpenGL ES 2.0" (without 3.3 or whatever).

    Do I have to use QSurfaceFormat to make explicit use of lower OpenGL version ?
    If I am right, can somebody make an example for me ?

    Thank you in advance
    Greetings

  2. #2

    Default Re: Compile for ANGLE Visual Studio Android Emulator

    Qt Code:
    1. D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
    2. D GLHostConnection: Waiting for host to establish connection for PID 17023 (org.qtproject.example.TestMobile)
    3. D GLHostConnection: HostConnection::get() New Host Connection established 0xac1b7dd0, tid 17023
    4. D GLHostConnection: Waiting for host to establish connection for PID 17023 (org.qtproject.example.TestMobile)
    5. D GLHostConnection: HostConnection::get() New Host Connection established 0xaf692eb0, tid 17036
    6. I OpenGLRenderer: Initialized EGL, version 1.4
    7. W EGL_emulation: eglSurfaceAttrib not implemented
    8. W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xabb13ca0, error=EGL_SUCCESS
    9. W linker : /data/data/org.qtproject.example.TestMobile/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: is missing DT_SONAME will use basename as a replacement: "libqtquick2plugin.so"
    10. W linker : /data/data/org.qtproject.example.TestMobile/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so: is missing DT_SONAME will use basename as a replacement: "libwindowplugin.so"
    11. D GLHostConnection: Waiting for host to establish connection for PID 17023 (org.qtproject.example.TestMobile)
    12. D GLHostConnection: HostConnection::get() New Host Connection established 0xa1c0c890, tid 17037
    13. D GLHostConnection: Waiting for host to establish connection for PID 17023 (org.qtproject.example.TestMobile)
    14. D GLHostConnection: HostConnection::get() New Host Connection established 0xabb020b0, tid 17040
    15. W libTestMobile.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: 0:1: '' : No precision specified for (float)
    16. 01-12 15:01:33.092 17023 17040 W libTestMobile.so:
    17. W libTestMobile.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
    18. W libTestMobile.so: (null):0 ((null)): #define lowp
    19. W libTestMobile.so: #define mediump
    20. W libTestMobile.so: #define highp
    21. W libTestMobile.so: #line 1
    22. W libTestMobile.so: varying lowp vec4 color;
    23. 01-12 15:01:33.092 17023 17040 W libTestMobile.so:
    24. W libTestMobile.so: void main()
    25. W libTestMobile.so: {
    26. W libTestMobile.so: gl_FragColor = color;
    27. W libTestMobile.so: }
    28. W libTestMobile.so: (null):0 ((null)): ***
    29. W libTestMobile.so: (null):0 ((null)): shader compilation failed:
    30. W libTestMobile.so: ""
    31. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    32. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
    33. W libTestMobile.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: 0:1: '' : No precision specified for (float)
    34. W libTestMobile.so: ERROR: 0:4: '' : No precision specified for (float)
    35. W libTestMobile.so: ERROR: 0:5: '' : No precision specified for (float)
    36. W libTestMobile.so: ERROR: 0:6: '' : No precision specified for (float)
    37. 01-12 15:01:33.100 17023 17040 W libTestMobile.so:
    38. W libTestMobile.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
    39. W libTestMobile.so: (null):0 ((null)): #define lowp
    40. W libTestMobile.so: #define mediump
    41. W libTestMobile.so: #define highp
    42. W libTestMobile.so: #line 1
    43. W libTestMobile.so: varying highp vec2 sampleCoord;
    44. 01-12 15:01:33.100 17023 17040 W libTestMobile.so:
    45. W libTestMobile.so: uniform mediump sampler2D _qt_texture;
    46. W libTestMobile.so: uniform lowp vec4 color;
    47. W libTestMobile.so: uniform mediump float alphaMin;
    48. W libTestMobile.so: uniform mediump float alphaMax;
    49. 01-12 15:01:33.100 17023 17040 W libTestMobile.so:
    50. W libTestMobile.so: void main()
    51. W libTestMobile.so: {
    52. W libTestMobile.so: gl_FragColor = color * smoothstep(alphaMin,
    53. W libTestMobile.so: alphaMax,
    54. W libTestMobile.so: texture2D(_qt_texture, sampleCoord).a);
    55. W libTestMobile.so: }
    56. W libTestMobile.so: (null):0 ((null)): ***
    57. W libTestMobile.so: (null):0 ((null)): shader compilation failed:
    58. W libTestMobile.so: ""
    59. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    60. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( textureScale ): shader program is not linked
    61. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
    62. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( alphaMin ): shader program is not linked
    63. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( alphaMax ): shader program is not linked
    64. W libTestMobile.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: 0:1: '' : No precision specified for (float)
    65. 01-12 15:01:33.141 17023 17040 W libTestMobile.so:
    66. W libTestMobile.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
    67. W libTestMobile.so: (null):0 ((null)): #define lowp
    68. W libTestMobile.so: #define mediump
    69. W libTestMobile.so: #define highp
    70. W libTestMobile.so: #line 1
    71. W libTestMobile.so: varying lowp vec4 color;
    72. 01-12 15:01:33.141 17023 17040 W libTestMobile.so:
    73. W libTestMobile.so: void main()
    74. W libTestMobile.so: {
    75. W libTestMobile.so: gl_FragColor = color;
    76. W libTestMobile.so: }
    77. W libTestMobile.so: (null):0 ((null)): ***
    78. W libTestMobile.so: (null):0 ((null)): shader compilation failed:
    79. W libTestMobile.so: ""
    80. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    81. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
    82. W libTestMobile.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: 0:1: '' : No precision specified for (float)
    83. W libTestMobile.so: ERROR: 0:4: '' : No precision specified for (float)
    84. W libTestMobile.so: ERROR: 0:5: '' : No precision specified for (float)
    85. W libTestMobile.so: ERROR: 0:6: '' : No precision specified for (float)
    86. 01-12 15:01:33.167 17023 17040 W libTestMobile.so:
    87. W libTestMobile.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
    88. W libTestMobile.so: (null):0 ((null)): #define lowp
    89. W libTestMobile.so: #define mediump
    90. W libTestMobile.so: #define highp
    91. W libTestMobile.so: #line 1
    92. W libTestMobile.so: varying highp vec2 sampleCoord;
    93. 01-12 15:01:33.167 17023 17040 W libTestMobile.so:
    94. W libTestMobile.so: uniform mediump sampler2D _qt_texture;
    95. W libTestMobile.so: uniform lowp vec4 color;
    96. W libTestMobile.so: uniform mediump float alphaMin;
    97. W libTestMobile.so: uniform mediump float alphaMax;
    98. 01-12 15:01:33.167 17023 17040 W libTestMobile.so:
    99. W libTestMobile.so: void main()
    100. W libTestMobile.so: {
    101. W libTestMobile.so: gl_FragColor = color * smoothstep(alphaMin,
    102. W libTestMobile.so: alphaMax,
    103. W libTestMobile.so: texture2D(_qt_texture, sampleCoord).a);
    104. W libTestMobile.so: }
    105. W libTestMobile.so: (null):0 ((null)): ***
    106. W libTestMobile.so: (null):0 ((null)): shader compilation failed:
    107. W libTestMobile.so: ""
    108. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    109. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( textureScale ): shader program is not linked
    110. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
    111. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( alphaMin ): shader program is not linked
    112. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( alphaMax ): shader program is not linked
    113. W libTestMobile.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: 0:1: '' : No precision specified for (float)
    114. 01-12 15:01:33.206 17023 17040 W libTestMobile.so:
    115. W libTestMobile.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
    116. W libTestMobile.so: (null):0 ((null)): #define lowp
    117. W libTestMobile.so: #define mediump
    118. W libTestMobile.so: #define highp
    119. W libTestMobile.so: #line 1
    120. W libTestMobile.so: varying lowp vec4 color;
    121. 01-12 15:01:33.206 17023 17040 W libTestMobile.so:
    122. W libTestMobile.so: void main()
    123. W libTestMobile.so: {
    124. W libTestMobile.so: gl_FragColor = color;
    125. W libTestMobile.so: }
    126. W libTestMobile.so: (null):0 ((null)): ***
    127. W libTestMobile.so: (null):0 ((null)): shader compilation failed:
    128. W libTestMobile.so: ""
    129. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    130. W libTestMobile.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
    131. W libTestMobile.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: 0:1: '' : No precision specified for (float)
    132. W libTestMobile.so: ERROR: 0:4: '' : No precision specified for (float)
    133. W libTestMobile.so: ERROR: 0:5: '' : No precision specified for (float)
    134. W libTestMobile.so: ERROR: 0:6: '' : No precision specified for (float)
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. How to compile Qt with Microsoft Visual Studio
    By citix in forum Qt Programming
    Replies: 11
    Last Post: 5th December 2013, 11:26
  2. Qt 4.8.3 with Visual Studio 2012 does not compile the webkit
    By dennis81 in forum Installation and Deployment
    Replies: 1
    Last Post: 4th December 2012, 03:25
  3. ms visual c++ compile without ms visual studio
    By zzz9 in forum General Programming
    Replies: 2
    Last Post: 12th August 2012, 21:29
  4. Compile Qt with Visual Studio 2008 64 bit
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 10th December 2010, 16:10
  5. Can't compile programs in Visual Studio.net 2005
    By xgoan in forum Qt Programming
    Replies: 3
    Last Post: 7th July 2006, 15:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.