2

I'm getting this error when try to build Qt for VS2010.

Running syncqt...

srcbase = F:/Qt/qtbase
outbase = F:/Qt/qtbase

Creating qmake...

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved.

Running configuration tests...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\link.EXE"' : return code '0x463'
Stop.
Could not find output file: No such file or directory

I tried with arguments "configure -opengl desktop"

Can anyone help?

Sanka Darshana
  • 1,391
  • 1
  • 23
  • 41

2 Answers2

1

I'm debugging this error, and the "Could not find output file" is about arch.exe in qtbase/config.tests/arch. So this is a consequence of the link error that happens before that.

Going in that directory and typing nmake gives me

link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFEST DEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:arch.exe @C:\Users\DAVIDF~1\AppData\Local\Temp\nm2E51.tmp
LINK : fatal error LNK1158: cannot run 'rc.exe'

Bingo. As found in Visual Studio can't build due to rc.exe, this happens when the PATH is messed up and doesn't contain the right msvc directories (in my case it was because I was prepending something to the PATH with a ':' instead of a ';'... Unix habits)

Community
  • 1
  • 1
David Faure
  • 1,836
  • 15
  • 19
0

It seems that updating VS2010 with SP1 solve this problem.

https://www.microsoft.com/en-us/download/details.aspx?id=23691

Ludek Vodicka
  • 1,610
  • 1
  • 18
  • 33