[Interest] Can't compile Qt 5.0 RC with Mingw,

Koehne Kai Kai.Koehne at digia.com
Thu Dec 6 11:02:39 CET 2012


> -----Original Message-----
> From: interest-bounces+kai.koehne=digia.com at qt-project.org
> [mailto:interest-bounces+kai.koehne=digia.com at qt-project.org] On Behalf
> Of Bruno Cabral
> Sent: Wednesday, December 05, 2012 10:04 PM
> To: interest at qt-project.org
> Subject: [Interest] Can't compile Qt 5.0 RC with Mingw,
> 
> Hi

Hi,

> I followed the instructions on http://qt-project.org/wiki/MinGW-64-bit
> But but no matter what, I can't get Qt to compile.
> I already tried the mingw-32 and 64.
> Looks like an unicode error,
> I get the error :
> io\qprocess_win.cpp: In function 'void qt_create_pipe(void**, bool)':
> io\qprocess_win.cpp:85:58: error: invalid conversion from 'const wchar_t*'
> to 's
> ize_t {aka long long unsigned int}' [-fpermissive] In file included from
> c:\qt\mingw64-4.7.2\bin\../lib/gcc/x86_64-w64-mingw32/4.7.
> 2/include/c++/cstdio:44:0, from
> c:\qt\mingw64-4.7.2\bin\../lib/gcc/x86_64-w64-mingw32/4.7.
> 2/include/c++/random:39,
> Can anyone help me with this ?

Looks indeed like we should change the code, since swprintf(wchar_t*, wchar_t*) isnt' compliant to the latest C standards (at least that's what http://www.cplusplus.com/forum/general/6612/ suggests).

Anyhow, qprocess_win.cpp compiles fine for me with both mingw-builds-32-4.7.2-posix-sjlj-rev1, mingw-builds-64-4.7.2-posix-sjlj-rev1, a stock mingw.org  , tdm64-gcc-4.7.1-3.exe and finally a recent build from RubenV . Which toolchain / version of MinGW-w64 are you using?

Regards

Kai 



More information about the Interest mailing list