Can't compile Qt 5.0 Rc with Mingw,

  • Hi
    I followed the instructions on

    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.
    from c:\qt\mingw64-4.7.2\bin../lib/gcc/x86_64-w64-mingw32/4.7.

    Can anyone help me with this ?


  • I do not know right this or wrong, but i commented 85 line in file:

        @// swprintf(pipeName, L"\\\\.\\pipe\\qt-%X", qrand());@

    So far so good...

  • I personaly changed it to
    swprintf(pipeName, 256, L"\\.\pipe\qt-%X", qrand());

    seems to be fine... At least at compilation time :)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.