[Solved] Qt 5.1 OpenGL with CMake - Failed to find "glu32" in "".
-
ps And your link
@The windowsSDK (as suggested in http://qt-project.org/forums/viewthread/29014)@doesnt seem to work for me... was that thread closed?
-
it seems that WindowsSDK is indeed needed to provide Qt with OpenGL bindings: http://www.opengl.org/discussion_boards/showthread.php/176620-Need-help-missing-opengl32-lib-glu32-lib .
Qt 5.1 support of OpenGL changed rather significantly, since it provides OpenGL3+ profiles, which it didnt do before. Not surprising that requirements changed. -
So it worked for me(at least the CMake coniguration, didnt try to actually use it in compilation yet).
Steps to reproduce:- I used precompiled version of Qt 5.1(the one with OpenGL x64 for VS2012). To use it should be fine for you, as Qt 5.1 should support OpenGL3.2+ profiles out of the box, i dont think you need to use Glew anymore, just look at http://qt-project.org/doc/qt-5.1/qtgui/qabstractopenglfunctions.html hierarchy
- Installed Win SDK 8.0. But i think 7.0 could be fine.
- added
set (CMAKE_PREFIX_PATH "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64")
line to my cmake file.
That's where glu32.lib and similar files are located. - Run cmake-gui configure&generate, using VS 11 win64 as generator.
-
Hallo,
I've just encountered the same problem. Just a quick question:
In which cmake-file did you make the change ( .. set (CMAKE_PREFIX_PATH ..)) ?
Sorry, I'm pretty new to this.
Thanks!Chris
-
I've run into this problem, and the suggested fix doesn't work for me. I've tried everything I can. Can someone iteratively work through this with me sometime soon? It should take someone that knows what is wrong about 10 minutes. I'm not an idiot, I'm just in a rush and I want to know how to solve this.
Here's my more detailed question:
http://www.qtcentre.org/threads/56185-cmake-error-with-Failed-to-find-quot-glu32-quot-in-quot-quot?p=251234#post251234Here's another question that I've responded to trying to raise awareness:
http://qt-project.org/forums/viewthread/32267/ -
Solved:
set (CMAKE_MODULE_PATH “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64”) -
same issue none of the solutions work.
C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x64/Gdi32.Lib
C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x64/GlU32.Lib
C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x64/OpenGL32.Libthose are the files I point to. but after presssing configure it comlains again about glu32 not found, when do that then it complains about Opnegl32 not found and it goes in circle :((((((((((((( WTF ????????????????