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. Error: LNK1104: File "glu32.lib" cannot be opened

Error: LNK1104: File "glu32.lib" cannot be opened

Scheduled Pinned Locked Moved Installation and Deployment
11 Posts 4 Posters 3.7k 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.
  • S Offline
    S Offline
    styl4z
    wrote on 21 May 2014, 14:31 last edited by
    #1

    I just installed Qt, tried to compile and link a fresh Qt Widgets project and I get this error message. Does anybody know a solution?

    Greets

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 May 2014, 20:40 last edited by
      #2

      Hi and welcome to devnet,

      What version of Qt did you install on which version of Windows ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • O Offline
        O Offline
        oumayre
        wrote on 3 Aug 2014, 13:12 last edited by
        #3

        Hi got the same problem ! I use Qt 5.3 in windows 8.1 ! please help.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 3 Aug 2014, 20:03 last edited by
          #4

          Which Qt package did you install ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • O Offline
            O Offline
            oumayre
            wrote on 3 Aug 2014, 23:26 last edited by
            #5

            sorry but I'm new to Qt I've installed Qt 5.3 ! how to find which current package is installed ?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 4 Aug 2014, 07:38 last edited by
              #6

              Which one did you download to install Qt 5 ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lucidchin
                wrote on 19 Aug 2014, 14:52 last edited by
                #7

                I just ran into this same problem.
                I used all the defaults for the install the first time.
                When I got this, I thought I must have messed something up, so I uninstalled and reinstalled.
                I used this version from the site:

                qt-opensource-windows-x86-1.6.0-4-online.exe

                The second time, I chose to add in the OpenGL for Visual Studio 2013 64bit and 32bit.

                My project still wont build.

                I'm running Windows 8.1 Pro 64bit on my Surface Pro 3.
                I have Visual Studio 2013 Pro installed, but didn't install the C++ Foundation stuff, unless that's the problem?

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  lucidchin
                  wrote on 19 Aug 2014, 18:56 last edited by
                  #8

                  Just an additional clarification. I installed QT on my MacBook Pro, the Mac version went in fine and I made a HelloWorld project and it built and ran fine.
                  I then went and ran Parallels to run my Windows 8.1 Pro VM. I went and downloaded the latest version from the QT site (same version in my previous post), and installed with all the default options, I didn't check anything. The following is the output from the installer telling me what I was installing:

                  Selected Component(s) without Dependencies
                  qt
                  qt.tools
                  qt.readme
                  qt.tools.maintenance
                  Added as dependency for qt.53.
                  qt.53.doc
                  qt.53.examples
                  Component(s) that have resolved Dependencies
                  qt.53
                  Added as dependency for qt.tools.qtcreator.
                  qt.tools.vcredist
                  Added as dependency for qt.53.win32_msvc2012_opengl.
                  qt.tools.qtcreator
                  Component(s) that have resolved Dependencies
                  qt.53.win32_msvc2012_opengl
                  qt.53.win64_msvc2012_winphone_x86
                  Added as dependency for qt.53.win64_msvc2013_64.
                  qt.tools.vcredist_64
                  Component(s) that have resolved Dependencies
                  qt.53.win64_msvc2013_64
                  qt.53.win64_msvc2012_winphone_arm
                  qt.53.win64_msvc2013_winrt_x64
                  Added as dependency for qt.53.android_armv7.
                  qt.tools.win32_mingw482
                  Component(s) that have resolved Dependencies
                  qt.53.android_armv7

                  After the installation, I created a new QT Widgets Application, went to immediately build and I got the link error. The only thing in common with my Surface Pro 3 and my Parallels VM is both have Visual Studio 2013 installed.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    lucidchin
                    wrote on 19 Aug 2014, 19:34 last edited by
                    #9

                    OK, After messing around with the various project settings when creating a new project, I think I figured out what's wrong... It seems that by default when making a new project during Kit Selection, the "Desktop Qt 5.3 MSVC2012 OpenGL 32bit" kit is selected. I don't have VS2012 installed on either of my WIndows setups.

                    I uncheck it and leave the "Desktop QT5.3 MVSVC2013 64bit" checked (both were checked by default).

                    Once the project is created, I build and it seems to work!

                    The next newbie question is how to remove a kit from my previous projects.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 19 Aug 2014, 20:14 last edited by
                      #10

                      Hi and welcome to devnet,

                      Go in the Project panel and remove the kit from there

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        lucidchin
                        wrote on 19 Aug 2014, 20:48 last edited by
                        #11

                        Thanks, I figured it out once you told me where to go. I didn't realize that all the tabs on the top of the Project section were for the kits.

                        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