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

Bruno Souza Cabrral bcabral at uw.edu
Thu Dec 6 14:25:19 CET 2012


Thank you,
I got this error with both mingw-builds-32-4.7.2-posix-sjlj-rev2 and
mingw-builds-64-4.7.2-posix-sjlj-rev2.
Maybe they become stricter in this revision.

Regards,
Bruno cabral
On Dec 6, 2012 2:03 AM, "Koehne Kai" <Kai.Koehne at digia.com> wrote:

> > -----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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121206/ce79b7e0/attachment.html>


More information about the Interest mailing list