[Development] Build Qt 5 with MinGW 4.7?

Thiago Macieira thiago.macieira at intel.com
Sun Aug 26 16:21:05 CEST 2012


On domingo, 26 de agosto de 2012 10.03.33, Stephen Chu wrote:
> Thanks for pointing out the build differences. I didn't realize there
> are so many different builds of the same MinGW version. Switching to
> mingw-builds get me further. But then I got this error:
> 
> cp qmake.exe C:\Qt\5.0\qtbase\bin\qmake.exe
> g++: error: tmp/obj/debug_shared/arch.o: No such file or directory
> mingw32-make: *** [arch.exe] Error 1
> Could not find output file: No such file or directory
> *** qtbase/configure exited with non-zero status.
> 
> I went to qtbase\config.text\arch and manually ran mingw32-make to
> create the obj file in question. Then re-run configure and it worked.

Hmm.. something wrong with the arch-detection code then.

> I then noticed that C++11 feature is not enabled. I cleaned out all
> files and re-ran configure with -c++11 and it complained that it's an
> unknown option.
> 
> Since it's indicated in this thread that we can still build C++11
> executable with non-C++11 Qt library, so I will just go ahead and build
> Qt 5 without it.

Misfeature. The test is not implemented in the configure.exe because the 
standard MinGW we ship is 4.4 and doesn't benefit from C++11. On MSVC, it can't 
be disabled.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120826/9187368d/attachment.sig>


More information about the Development mailing list