Looks like qtbase\src\corelib\io\qprocess.cpp is using a deprecated version of swprintf.
On line 85 it should read swprintf(pipeName,256, L"\\\\.\\pipe\\qt-%X", qrand()); This is the standard and is followed by GCC and Visual Studio. The older without the size was a hack on VS. Can someone submit this ? I can't afford the work of needed to submit a patch. Thanks, Bruno Cabral -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Joseph Crowell Sent: Wednesday, December 5, 2012 5:39 PM To: [email protected] Subject: Re: [Interest] Can't compile Qt 5.0 RC with Mingw, On 6/12/2012 7:03 AM, Bruno Cabral wrote: > 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] At first glance, this looks very wrong. I've also been noticing a lot of conversions from size_t to int which will result in data loss on some systems. Should be uint32 instead of int. > 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 ? > > I suppose that the RC was a Release Candidate. Anyone got to compile > with mingw ? > > > Thanks > > > _______________________________________________ > Interest mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
