Compiling of Qt 5.0.0 fails on Windows 7 (64 bit) with VS 2008 in Win32 mode
-
This error occurs both with release and debug.
-
Also ANGLE support does not make a difference.
Can anyone reproduce this problem? -
I found my problem!
I had "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64" in my PATH variable. Unfortunately qmake checks if this path is found in the PATH environment variable to decided if the target of the project is 32 or 64 bits.
I don't really like this way to detect the architecture, but I guess this is Microsoft's fault :-(
-
My problem was that I had both x86 and x64 compilers in my path variable and qt detect 64 bit mode if x64 compilers are present. This can happen if you first compiled for 64 bit and thus executed
@C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat@
to have all tools available, and then execute
@C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat@
and compile for 32 bit WITHOUT restarting cmd.exe. -
I see the same error message now with Qt 5.1.1 and VS 2010, but I do have only the x64 paths for visual studio set on my system.
There must be other possible causes... Dang.
-
Do you have this error when compiling for 32 or 64 bit? Make sure that your environment does not contain both 32 and 64 bit compiler paths, otherwise 32 bit compiling will fail because he auto-detects 64 bit mode which is obviously wrong.
-
I am compiling 64 Bit and have only the 64 bit compiler paths in the path ,so that shouldn't be it.
-
Try this workaround: http://qt-project.org/forums/viewthread/32660/