Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't compile Qt 5.0 Rc with Mingw,
Qt 6.11 is out! See what's new in the release blog

Can't compile Qt 5.0 Rc with Mingw,

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bratao
    wrote on last edited by
    #1

    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 ?

    Thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      korwru
      wrote on last edited by
      #2

      I do not know right this or wrong, but i commented 85 line in file:
      \qtbase\src\corelib\io\qprocess_win.cpp

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

      So far so good...

      1 Reply Last reply
      0
      • B Offline
        B Offline
        billouparis
        wrote on last edited by
        #3

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

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved