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. Using MinGW compiler on Windows 7
Forum Updated to NodeBB v4.3 + New Features

Using MinGW compiler on Windows 7

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 3 Posters 1.1k Views 3 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.
  • K Offline
    K Offline
    KeithM
    wrote on 20 Oct 2015, 15:21 last edited by
    #1

    I have been developing using Qt on Linux for some time. I have been asked to port to MS Windows. I am not a W7 expert and am having difficulty setting it up.
    I downloaded Qt: ( qt-opensource-windows-x86-msvc2010-5.5.1 )
    and MinGW: ( i686-4.9.1-release-posix-dwarf-rt_v3-rev2 )
    I installed MinGW (can run gcc on command line) and added c:\minGW/bin to %PATH%
    I installed Qt, only option seems to be for MSVS so I unchecked that.
    On running Qt Creator -> Tools -> Build and run:
    I see:
    In Compiler Tab I have: MinGW
    In Debugger Tab: I have: GDB
    In Qt Versions: I have nothing
    In Kits I have: Manual/desktop which points to MinGW and GDB, but does not have a Qt version or a Qt mkspec.

    So .... I assume what is missing is a 'qmake' - Any idea how I create this? I have looked all over the web - and I cannot find the missing bit of info.
    (Or am I just being thick!?)

    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 20 Oct 2015, 15:44 last edited by
      #2

      Hi,

      You downloaded the Visual Studio 2010 version of Qt. You can't mix and match compilers on Windows, even MSVC is not compatible from one version to the other.

      If you want to use MinGW, just uninstall both you installed. Download the MinGW package and install it. You have everything you need in it, including MinGW. No need for an external version.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply 21 Oct 2015, 13:32
      0
      • L Offline
        L Offline
        Leonardo
        wrote on 20 Oct 2015, 15:46 last edited by
        #3

        You've download the wrong installer.

        qt-opensource-windows-x86-msvc2010-5.5.1

        That's for Visual Studio. You should have downloaded

        qt-opensource-windows-x86-mingw492-5.5.1

        If Qt is not automatically detected by Qt Creator, you can add it manually. The qmake executable is located inside the bin folder, under Qt's installation path.

        1 Reply Last reply
        0
        • S SGaist
          20 Oct 2015, 15:44

          Hi,

          You downloaded the Visual Studio 2010 version of Qt. You can't mix and match compilers on Windows, even MSVC is not compatible from one version to the other.

          If you want to use MinGW, just uninstall both you installed. Download the MinGW package and install it. You have everything you need in it, including MinGW. No need for an external version.

          K Offline
          K Offline
          KeithM
          wrote on 21 Oct 2015, 13:32 last edited by
          #4

          Thank you both.

          I misunderstood how the installers worked (I create from sources on Linux)
          Cheers

          1 Reply Last reply
          0

          1/4

          20 Oct 2015, 15:21

          • Login

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