Qt Creator LNK1104: Cannot open file 'glu32.lib'
I've been learning C ++ for about a year now, not a complete noobie, but recently decided to learn how to create GUIs, so after a little research I figured out that Qt is the tool for me.
Grabbed Qt and wanted to get into Qt Creator following the Youtube thenewboston tutorials, but any (even empty) project I try to run gets the error
LNK1104: cannot open file 'glu32.lib'.
I've searched the internet for a solution to this problem for a while - the question has been asked several times, but the solutions either don't apply to me, or I can't make the head or tail (In many ways, I'm still into something of a noobie).
I could really use some advice on this.
Edit: @hyde Here's the compiler output:
17:58:09: Performing steps for an untitled project ...
17:58:09: Configuration hasn't changed, skipping qmake step.
17:58:09: Start: "C: \ Qt \ Tools \ QtCreator \ bin \ jom.exe"
C: \ Qt \ Tools \ QtCreator \ bin \ jom.exe -f Makefile.Debug
echo 1 / * CREATEPROCESS_MANIFEST_RESOURCE_ID / 24 / RT_MANIFEST * / "debug \ untitled.exe.embed.manifest"> debug \ untitled.exe_manifest.rcif debug \ untitled.exe does not exist, if debug \ untitled.exe.embed.manifest exists del debug \ untitled.exe.embed.manifest
if debug \ untitled.exe.embed.manifest copy / Y debug \ untitled.exe.embed.manifest debug \ untitled.exe_manifest.bak exists
link / NOLOGO / DYNAMICBASE / NXCOMPAT / DEBUG / SUBSYSTEM: WINDOWS "/ MANIFESTDEPENDENCY: type = 'win32' name = 'Microsoft.Windows.Common-Controls' version =' 6.0.0.0 'publicKeyToken =' 6595b64144ccf1df 'language =' processorArchcture = '' "/MANIFEST/MANIFESTFILE:debug\untitled.exe.embed.manifest/OUT:debug\untitled.exe @C: \ Users \ Immi \ AppData \ Local \ Temp \ untitled.exe.3464.31. jom
LINK: fatal error LNK1104: cannot open file 'glu32.lib'
jom: C: \ Qt \ Tools \ QtCreator \ bin \ build-untitled-Desktop_Qt_5_3_MSVC2012_OpenGL_32bit-Debug \ Makefile.Debug [debug \ untitled.exe] Error 1104
jom: C: \ Qt \ Tools \ QtCreator \ bin \ build-untitled-Desktop_Qt_5_3_MSVC2012_OpenGL_32bit-Debug \ Makefile [debug] Error 2
17:58:10: Process "C: \ Qt \ Tools \ QtCreator \ bin \ jom.exe" exited with code 2.
Error building / deploying untitled project (bundle: Qt 5.3 MSVC2012 OpenGL 32 bit desktop)
When performing the "Do" step
17:58:10: Elapsed time: 00:01.
source to share
I had the same problem and solved it this way:
- In Qt Creator, I selected Projects .
- In Build & Run - Build Environment I clicked More .
- I started editing the LIB variable and added after the line C: \ Program Files (x86) \ Microsoft SDK \ Windows \ v7.1A \ Lib \ (you need to have the Windows SDK for Windows installed).
Now I am rebuilding my project that it compiled and I was able to run. But debugging didn't work. I figured that after reading this page http://qt-project.org/doc/qtcreator-2.6/creator-debugger-engines.html where I found (after some guesswork) that I needed to install Get Offline Debugging ( WinDbg) as part of the Windows 8.1 SDK from this page: http://msdn.microsoft.com/en-us/windows/hardware/hh852365
Personal note: . I am not familiar with GUI development. I would recommend that you start looking at something else. I'm not saying that QT is bad in any way, but it seems like the environment can cause a lot of problems that can lead to your motivation (honestly: I'm a QT newbie). I would start in C # (very easy if you know C ++) and create some programs with Visual Studio - it's very easy to learn and you'll be productive and creative and have fun, which is important when you want something discover.
source to share