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
Forum Updated to NodeBB v4.3 + New Features

Qt 5 - OpenGL Problem

Scheduled Pinned Locked Moved General and Desktop
34 Posts 7 Posters 32.0k 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.
  • D Offline
    D Offline
    DamianPrg
    wrote on last edited by
    #19

    [quote author="sierdzio" date="1358339671"]On Windows, you need to rdowload the .zip file, not tarball. Also, I think you need to run configure.exe, not the configure script. I'm using Linux, though, this info is second-hand at best ;)[/quote]

    I tried ZIP, but it wont extract on my PC. Do you think thats problem? Because Tarball is often used on linux?

    @ZapB - Does the configure.exe actually exist at that path?

    No, just .bat and one with no extenstion.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #20

      Qt packaging strips tarballs of things that are not needed on unix (so, Windows stuff is missing there), and uses unix line endings. So you need the .zip.

      As ZapB mentioned, using git is a much better idea.

      (Z(:^

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DamianPrg
        wrote on last edited by
        #21

        Ok thanks, guys. I will install from there.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DamianPrg
          wrote on last edited by
          #22

          Ok, i downloaded source from GitHub, and I have new problem.

          @

          C:\Users\Damian\Documents\GitHub\qt5>configure -developer-build -opensource -ope
          ngl desktop -nomake examples -nomake tests

          • C:/Users/Damian/Documents/GitHub/qt5/qtbase/configure -developer-build -openso
            urce -opengl desktop -nomake examples -nomake tests
            Please wait while bootstrapping configure ...
            <srcbase> = C:/Users/Damian/Documents/GitHub/qt5/qtbase
            <outbase> = C:/Users/Damian/Documents/GitHub/qt5/qtbase
            No suitable compiler found in PATH. Aborting.
            *** qtbase/configure exited with non-zero status.

          C:\Users\Damian\Documents\GitHub\qt5>
          @

          I have VS10 Pro, VS11 Pro, so why it says "No suitable compiler found in PATH", should I add VS to PATH, or what?

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            ZapB
            wrote on last edited by
            #23

            Run configure from a MS VS10 command prompt so that the environment variables are set up to find the compiler etc on the %PATH%

            Nokia Certified Qt Specialist
            Interested in hearing about Qt related work

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DamianPrg
              wrote on last edited by
              #24

              Ok, configure works, thanks for the help.

              1 Reply Last reply
              0
              • U Offline
                U Offline
                utcenter
                wrote on 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 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 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 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 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 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 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 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 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

                                  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 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