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. QOpenGLShaderProgram: could not create shader program
Forum Updated to NodeBB v4.3 + New Features

QOpenGLShaderProgram: could not create shader program

Scheduled Pinned Locked Moved QML and Qt Quick
25 Posts 5 Posters 13.0k Views 5 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.
  • B boumath
    10 May 2015, 07:17

    Thanks Wieland, that's explains why forcing ANGLE in your case is working and not for vladinko0

    @vladinko0, I suggest you to install Visual Studio 2013 (Express is free), and install Qt 5.4.1 for VS2013. Force Qt::AA_UseOpenGLES like Wieland says. Because your graphic chipset is old, perhaps you will need to set the environment variable QT_ANGLE_PLATFORM to d3d9 (if it doesn't support DirectX 11).

    V Offline
    V Offline
    vladinko0
    wrote on 13 Sept 2015, 02:41 last edited by
    #21

    @boumath I tried VS2013 with Qt 5.5 .0 but no success. :(

    1 Reply Last reply
    0
    • C Chris Kawa
      28 Mar 2015, 14:08

      According to Intel documentation the Q35 Express chipset only supports OpenGL 1.3. That's waaay to low for Qt.

      You can run the ANGLE (or dynamic) version of Qt (OpenGL layer on top of DirectX). It's the package without "OpenGL" in the name mentioned by @Wieland. This still won't let you run some of the OpenGL examples. It's high time for an upgrade ;)

      S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 Sept 2015, 19:12 last edited by
      #22

      Hi,

      If you are still on the same machine the message from Chris:

      @Chris-Kawa said:

      According to Intel documentation the Q35 Express chipset only supports OpenGL 1.3. That's waaay to low for Qt.

      You can run the ANGLE (or dynamic) version of Qt (OpenGL layer on top of DirectX). It's the package without "OpenGL" in the name mentioned by @Wieland. This still won't let you run some of the OpenGL examples. It's high time for an upgrade ;)

      Is still valid

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vladinko0
        wrote on 13 Sept 2015, 21:56 last edited by
        #23

        In fact I changed my machine. Graphic card is now Intel(R) Graphic Media Accelerator 3150. Result for Qt 5.4.1 mingw32 is the same.

        I forgot to mention, that with msvs2013 andQt 5.5 .0 the error is little bit different:
        Starting C:\Users\Vladimir\Documents\build-untitled11-Desktop_Qt_5_5_0_MSVC2013_32bit-Debug\debug\untitled11.exe...
        QML debugging is enabled. Only use this in a safe environment.
        class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(class QFlags<enum QWindowsOpenGLTester::Renderer>): Could not initialize EGL display: error 0x3001

        class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(class QFlags<enum QWindowsOpenGLTester::Renderer>): When using ANGLE, check if d3dcompiler_4x.dll is available
        C:\Users\Vladimir\Documents\build-untitled11-Desktop_Qt_5_5_0_MSVC2013_32bit-Debug\debug\untitled11.exe exited with code 0

        At the end project is launched.

        1 Reply Last reply
        0
        • C Online
          C Online
          Chris Kawa
          Lifetime Qt Champion
          wrote on 14 Sept 2015, 06:26 last edited by
          #24

          GMA 3150 only supports OpenGL 1.4. That's still waaaaay in the woods. You're still gonna need to use ANGLE.

          Did you try what the message says? "When using ANGLE, check if d3dcompiler_4x.dll is available"
          This dll should be placed next to your executable.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vladinko0
            wrote on 14 Sept 2015, 16:11 last edited by
            #25

            Yes, I tried to put that file in to C:\Users\Vladimir\Documents\build-untitled11-Desktop_Qt_5_5_0_MSVC2013_32bit-Debug\debug
            but no luck.

            1 Reply Last reply
            0
            • M MarkWhitwell referenced this topic on 14 Apr 2023, 12:00

            21/25

            13 Sept 2015, 02:41

            • Login

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