Qt 5 - OpenGL Problem
-
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?
- C:/Users/Damian/Documents/GitHub/qt5/qtbase/configure -developer-build -openso
-
Run configure from a MS VS10 command prompt so that the environment variables are set up to find the compiler etc on the %PATH%
-
Ok, configure works, thanks for the help.
-
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.
-
Yes but that's a lot of work and requires somebody to do it.
-
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'@ -
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.
-
Ok I try to restore old GLES files. Thanks
-
[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?
-
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
-
I will just wait for new Qt release. Anyway thanks Guys for help.
-
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/qt64It provides already prebuild packages for QT in various configurations (especially 64bit builds).
Best Regards,
Jan -
@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