Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5 - OpenGL Problem
QtWS25 Last Chance

Qt 5 - OpenGL Problem

Scheduled Pinned Locked Moved General and Desktop
34 Posts 7 Posters 31.9k Views
  • 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.
  • D Offline
    D Offline
    DamianPrg
    wrote on 16 Jan 2013, 14:39 last edited by
    #24

    Ok, configure works, thanks for the help.

    1 Reply Last reply
    0
    • U Offline
      U Offline
      utcenter
      wrote on 16 Jan 2013, 15:46 last edited by
      #25

      Hey, wouldn't it be far better if solutions for both ANGLE and desktop OpenGL are being built and switching is runtime like the QPA plugin works? Same for QWidgets without OpenGL dependencies.

      Even if OpenGL is buried deep into QtGui, it should still be possible to patch it in as a dynamic library. After all, even having 3 different version of QtGui is better than having 3 different version of Qt plus the time to build those.

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        ZapB
        wrote on 16 Jan 2013, 16:03 last edited by
        #26

        Yes but that's a lot of work and requires somebody to do it.

        Nokia Certified Qt Specialist
        Interested in hearing about Qt related work

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DamianPrg
          wrote on 16 Jan 2013, 18:05 last edited by
          #27

          Ok, compiled. I relaunched my project - run qmake. And when I want to build/run I get.

          @
          c:\users\damian\documents\github\qt5\qtbase\src\opengl\qgl.h:70: error: C1083: Cannot open include file: 'GLES2/gl2.h': No such file or directory
          @

          which is right, because I added -opengl desktop, so i should use desktop opengl, so why it want to include GLES?

          now i get
          @:-1: error: LNK1104: cannot open file 'libEGLd.lib'@

          1 Reply Last reply
          0
          • U Offline
            U Offline
            utcenter
            wrote on 16 Jan 2013, 20:08 last edited by
            #28

            Even if you compiled to use desktop OpenGL, GLES is still crucial as it is the compatibility layer Qt relies on across different platforms. What you did essentially allows YOU to use desktop OpenGL if avaiable, there is no separate implementation of the functionality Qt relies on internally. EGL fits in that context as well.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DamianPrg
              wrote on 16 Jan 2013, 20:21 last edited by
              #29

              Ok I try to restore old GLES files. Thanks

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                ZapB
                wrote on 16 Jan 2013, 20:30 last edited by
                #30

                [quote author="utcenter" date="1358366924"]Even if you compiled to use desktop OpenGL, GLES is still crucial as it is the compatibility layer Qt relies on across different platforms. What you did essentially allows YOU to use desktop OpenGL if avaiable, there is no separate implementation of the functionality Qt relies on internally. EGL fits in that context as well.[/quote]

                Sorry but that is incorrect. Qt can use either OpenGL ES 2 and EGL or Desktop GL and WGL (on Windows). Check the source code of the windows qpa plugin for confirmation. It will use whichever GL it has been compiled for. So in this case it should be using the desktop GL.

                DamianPrg, for some reason it seems that you project is still trying to link to the old setup. Stale makefiles perhaps? Are you sure you are using the correct Qt build? i.e. is your new qmake the first in your %PATH%?

                Did configure say that it was building for Desktop OpenGL?

                Nokia Certified Qt Specialist
                Interested in hearing about Qt related work

                1 Reply Last reply
                0
                • U Offline
                  U Offline
                  utcenter
                  wrote on 16 Jan 2013, 22:20 last edited by
                  #31

                  My bad, an incorrect assumption.

                  Also, it seems that the "default" Qt5 offline package for windows will switch to desktop OpenGL in the near future, which makes good sense. Unfortunately, that won't happen in 5.0.1

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DamianPrg
                    wrote on 17 Jan 2013, 12:43 last edited by
                    #32

                    I will just wait for new Qt release. Anyway thanks Guys for help.

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      JanHi
                      wrote on 4 Jun 2014, 14:19 last edited by
                      #33

                      Hi guys,

                      I stumbled upon a similar issue and had to recompile QT myself with openGL support and found this very helpful source:
                      http://www.tver-soft.org/qt64

                      It provides already prebuild packages for QT in various configurations (especially 64bit builds).

                      Best Regards,
                      Jan

                      1 Reply Last reply
                      0
                      • D DamianPrg
                        7 Jan 2013, 17:59

                        Hello.

                        My problem is that I cannot use OpenGL 2 functions, some which I can use are glClear, glClearColor, but I cant use glBegin for example.

                        I added QT += opengl in project file.

                        Can anyone help? Thanks

                        N Offline
                        N Offline
                        Nasi_1987
                        wrote on 9 Sept 2015, 07:48 last edited by
                        #34

                        @DamianPrg
                        You'd better download Qt 5.5 which switches dynamically between using the OpenGL driver or the ANGLE emulation layer implementing OpenGL on top of DirectX. check this: http://stackoverflow.com/questions/31633401/qt-5-5-0-cannot-find-opengl-functions

                        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