[Development] Building Qt5.2 under Visual Studio 2013

Nagy-Egri Máté Ferenc nagymatef at freemail.hu
Mon Oct 7 13:23:26 CEST 2013


Hi!


I’m trying to build a program that extensively makes use of the proper template machinery under Visual Studio 2013 plus uses Qt GUI libs, therefore I took on the venture of building Qt 5.2 with Visual Studio 2013. However, configure.bat fails at compilation, namely:


c:\users\mátéferenc\downloads\qt-everywhere-opensource-src-5.2.0-alpha\qtbase\src\corelib\tools\qlocale_tools.cpp(1249) : fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 227)
 To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information
INTERNAL COMPILER ERROR in 'C:\Kellekek\Microsoft Visual Studio 12.0\VC\BIN\x86_amd64\cl.EXE'
    Please choose the Technical Support command on the Visual C++
    Help menu, or open the Technical Support help file for more information
cl : Command line error D8040 : error creating or communicating with child process
NMAKE : fatal error U1077: '"C:\Kellekek\Microsoft Visual Studio 12.0\VC\BIN\x86_amd64\cl.EXE"' : return code '0x2'
Stop.
Building qmake failed, return code 2


The code line mentioned is the return statement of:


static Bigint *diff(Bigint *a, Bigint *b)


As the error message suggests, this is an MSVC issue, but I thought I’d share this with the community. VS2013 should be out just before Qt5.2 sometime in November, so having it as a supported platform would be nice. RC can be downloaded, and RTM is about to hit the shelves soon. VS2013 is considerably faster both in terms of STL (dunno how much of it is used by Qt), but proper templates and the very much capable auto-vectorization tool both give a major boost to compilation times as well as binary speed.


My system is 64-bit platform, Windows 8, VS2013 Ultimate RC. Qt is 5.2 alpha and configuration options are:


configure.bat -platform win32-msvc2013 -opensource -debug-and-release -c++11 -mp -opengl desktop -prefix C:\Kellekek\Qt\5.2-alpha -bindir C:\Kellekek\Qt\5.2-alpha\bin\x64 -libdir C:\Kellekek\Qt\5.2-alpha\lib\x64


Should the error be addressed on the project side or be reported to MS and hope a fix comes before final version?


Best regards,

Máté
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131007/9d87eab8/attachment.html>


More information about the Development mailing list