问题描述:

I created a new project in my Qt 5.4.1 opengl 64 bit. When i tried to build and run my project, I get LINK 1104: cannot open file glu32.lib. I searched my entire pc but i couldn't find glu32.lib file anywhere neither I could find opengl32.lib. I am very new to Qt so, even in Kits I have this Desktop opengl 64bit automatically detected, but side of this it has exclamatory icon. Do everyone has this icon or I have made some error?

This is error in Compile Output section

11:27:17: Running steps for project untitled20...

11:27:17: Configuration unchanged, skipping qmake step.

11:27:17: Starting: "C:\Qt\Qt5.4.1\Tools\QtCreator\bin\jom.exe"

C:\Qt\Qt5.4.1\Tools\QtCreator\bin\jom.exe -f Makefile.Debug

link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:debug\untitled20.exe @C:\Users\jas\AppData\Local\Temp\untitled20.exe.4652.94.jom

LINK : fatal error LNK1104: cannot open file 'glu32.lib'

jom: C:\Users\jas\Documents\build-untitled20-Desktop_Qt_5_4_1_MSVC2013_OpenGL_64bit-Debug\Makefile.Debug [debug\untitled20.exe] Error 1104

jom: C:\Users\jas\Documents\build-untitled20-Desktop_Qt_5_4_1_MSVC2013_OpenGL_64bit-Debug\Makefile [debug] Error 2

11:27:20: The process "C:\Qt\Qt5.4.1\Tools\QtCreator\bin\jom.exe" exited with code 2.

Error while building/deploying project untitled20 (kit: Desktop Qt 5.4.1 MSVC2013 OpenGL 64bit)

When executing step "Make"

11:27:20: Elapsed time: 00:03.

网友答案:

Can you search for all the places in your computer where you have glu32.lib? The problem you are facing could be due to 2 reasons:

  1. The default location where Qt is looking for glu32.lib may not have it (less likely)
  2. The default location where Qt is looking for glu32.lib may have spaces in its path name.
相关阅读:
Top