Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] Qt 5.1 OpenGL with CMake - Failed to find "glu32" in "".
Forum Updated to NodeBB v4.3 + New Features

[Solved] Qt 5.1 OpenGL with CMake - Failed to find "glu32" in "".

Scheduled Pinned Locked Moved Installation and Deployment
11 Posts 6 Posters 23.7k 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.
  • J Offline
    J Offline
    Jagholin
    wrote on 15 Jul 2013, 13:14 last edited by
    #2

    Have encountered the same problem.
    Use 2.8.11, and target_include_directories command instead of include_directories pretty much with the same result.

    If i find a solution i let you know.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jagholin
      wrote on 15 Jul 2013, 13:17 last edited by
      #3

      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?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jagholin
        wrote on 15 Jul 2013, 13:36 last edited by
        #4

        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.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jagholin
          wrote on 15 Jul 2013, 14:21 last edited by
          #5

          So it worked for me(at least the CMake coniguration, didnt try to actually use it in compilation yet).
          Steps to reproduce:

          1. 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
          2. Installed Win SDK 8.0. But i think 7.0 could be fine.
          3. 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.
          4. Run cmake-gui configure&generate, using VS 11 win64 as generator.
          1 Reply Last reply
          0
          • C Offline
            C Offline
            cgcostume
            wrote on 15 Jul 2013, 16:51 last edited by
            #6

            thanks, works for me. i added @cmake_policy(SET CMP0020 NEW)@ to avoid warnings for 5.1... i didn't check what this causes on earlier cmake versions (2.8.10 or earlier). Thanks!

            1 Reply Last reply
            0
            • C Offline
              C Offline
              ChrisIFFQT
              wrote on 5 Sept 2013, 16:26 last edited by
              #7

              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

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kennethadammiller
                wrote on 12 Sept 2013, 04:43 last edited by
                #8

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

                Here's another question that I've responded to trying to raise awareness:
                http://qt-project.org/forums/viewthread/32267/

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kennethadammiller
                  wrote on 12 Sept 2013, 22:11 last edited by
                  #9

                  Solved:
                  set (CMAKE_MODULE_PATH “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64”)

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    pip010
                    wrote on 27 Jun 2014, 16:41 last edited by
                    #10

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

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

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MattB.au
                      wrote on 16 Jul 2014, 07:06 last edited by
                      #11

                      Running CMake from a Visual Studio command prompt has been the resolution of this problem for our team.

                      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