Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I keep having trouble with my compiler on windows - no problem on linux

I keep having trouble with my compiler on windows - no problem on linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 326 Views
  • 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.
  • R Offline
    R Offline
    RobbieP
    wrote on last edited by
    #1

    all of a sudden when I try to compile my compiler just freezes and appears to just run qmake over and over:
    C:\Qt\6.3.0\mingw_64\bin\qmake.exe -o Makefile ..\Fennec\Fennec.pro -spec win32-g++ "CONFIG+=qtquickcompiler"
    C:\Qt\6.3.0\mingw_64\bin\qmake.exe -o Makefile ..\Fennec\Fennec.pro -spec win32-g++ "CONFIG+=qtquickcompiler"
    C:\Qt\6.3.0\mingw_64\bin\qmake.exe -o Makefile ..\Fennec\Fennec.pro -spec win32-g++ "CONFIG+=qtquickcompiler"
    C:\Qt\6.3.0\mingw_64\bin\qmake.exe -o Makefile ..\Fennec\Fennec.pro -spec win32-g++ "CONFIG+=qtquickcompiler"

    what would cause that?

    This keeps happening to me on this machine, and I don't know how to deal with it.

    I have this warning:
    :-1: warning: "C:\Qt\Tools\mingw1120_64\bin\x86_64-w64-mingw32-gcc.exe" is used by qmake, but "C:\Qt\Tools\mingw1120_64\bin\gcc.exe" is configured in the kit.
    Please update your kit (Desktop Qt 6.3.0 MinGW 64-bit) or choose a mkspec for qmake that matches your target environment better.

    and this one:
    :-1: warning: "C:\Qt\Tools\mingw1120_64\bin\x86_64-w64-mingw32-g++.exe" is used by qmake, but "C:\Qt\Tools\mingw1120_64\bin\g++.exe" is configured in the kit.
    Please update your kit (Desktop Qt 6.3.0 MinGW 64-bit) or choose a mkspec for qmake that matches your target environment better.

    but I don't see a way to change it in the kit manager

    1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Your mkspec (-spec win32-g++) requires the sources to be compiled with mingw32-g++.exe.
      In Qt Creator, go to Tools->Options, "Kits" and choose the kit you are using to compile your project.
      In the middle of the lower window you will see the "compiler" section where you can select the compilers for C and C++
      Make sure it points to C:\Qt\Tools\mingw1120_64\bin\x86_64-w64-mingw32-g++.exe

      That will at least solve the warning and ensure the right compiler being used.
      If the freeze / infinitive loop do not disappear magically, just reply to this post.

      Software Engineer
      The Qt Company, Oslo

      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