Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QTQuick 2.0 Problem with QT 5.1
Forum Updated to NodeBB v4.3 + New Features

QTQuick 2.0 Problem with QT 5.1

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 3.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alexander.merkel
    wrote on last edited by
    #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 :)

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JapieKrekel
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved