QTQuick 2.0 Problem with QT 5.1
-
I cannot get QT Quick 2 code to run in QT 5.1. on Win7 with a 32bit MinGW Installation.
I always get these error messages:@getProcAddress: Unable to resolve 'glCreateProgram'
getProcAddress: Unable to resolve 'glCreateProgramARB'
getProcAddress: Unable to resolve 'glCreateProgramObject'
getProcAddress: Unable to resolve 'glCreateProgramObjectARB'
QOpenGLShaderProgram: could not create shader program
getProcAddress: Unable to resolve 'glCreateShader'
getProcAddress: Unable to resolve 'glCreateShaderARB'
getProcAddress: Unable to resolve 'glCreateShaderObject'
getProcAddress: Unable to resolve 'glCreateShaderObjectARB'
QOpenGLShader: could not create shader
List of attribute names is either too long or not null-terminated.
Maximum number of attributes on this hardware is 0.
Vertex shader:
attribute highp vec4 vertexCoord;
attribute highp vec4 vertexColor;
uniform highp mat4 matrix;
uniform highp float opacity;
varying lowp vec4 color;
void main() {
gl_Position = matrix * vertexCoord;
color = vertexColor * opacity;
}
Fragment shader:
varying lowp vec4 color;
void main() {
gl_FragColor = color;
}@I know I do not have the necessary OpenGL capabilities, but I thought the default configuration is ANGLE not OpenGL. Do i need to build everything with an ANGLE configuration?
Thank you :)
-
Unfortunately mingw doesn't yet support the DirectX SDK hence Angle is not available there. In other words you would have to use the MSVC compiler with angle. Please do report the issue as it might be able to detect this scenario and provide a fallback for the broken shader programs.
-
Yes, it is a bit of a let down.
The MinGW QT5.1 package is only available as openGL version.
MinGW QT5.0.1 and QT5.0.2 were available with ANGLE.
So I guess since Jens says it is not working yet, that it has to do with the swith to the newer minGW 4.8.
I saw that you issued "QTBUG-32232":https://bugreports.qt-project.org/browse/QTBUG-32232 on it, which has been closed rather quickly, stating that MinGW default is openGL. Which was not very helpfull.
I issued a bug requesting the angle prebuild version, "QTBUG-32270":https://bugreports.qt-project.org/browse/QTBUG-32270
Let keep our fingers crossed