Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] Adding mingw kit to an existing Qt 5.1.0 MSVC2010 installation
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Adding mingw kit to an existing Qt 5.1.0 MSVC2010 installation

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 3 Posters 5.5k 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.
  • F Offline
    F Offline
    frankiefrank
    wrote on last edited by
    #1

    I installed Qt 5.1.0 for MSVC2010 (OpenGL) with Qt Creator 2.7.2. Now I need some code to compile with MinGW.

    I installed the latest MinGW version, configured Qt Creator to point to gcc.exe (Build & Run -> Compilers) but when I try to make a new kit I get the following error (as a tooltip from the exclamation mark):

    The compiler 'MinGW' (x86-windows-msys-pe-32bit) cannot produce code for the Qt version 'Qt 5.1.0 (msvc2010_opengl)' (x86-windows-msvc2010-pe-32bit).

    Any assistance will be welcome!

    "Roads? Where we're going, we don't need roads."

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      The error message is absolutely right: MSVC and MinGW compilers do not produce compatible binaries, so you can't mix them. If you want to compile with MinGW, you need to compile/ install Qt libraries with MinGW.

      (Z(:^

      1 Reply Last reply
      0
      • F Offline
        F Offline
        frankiefrank
        wrote on last edited by
        #3

        Ah! :) Thank you. That was silly. If I used the online installer, would I have the option to choose the two different options: (MSVC2010+OpenGL and MinGW)?

        "Roads? Where we're going, we don't need roads."

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          Hi,

          I think you will need the MingW version of Qt 5.1.0 installed.

          Edit: Didn't refresh the page ;)

          157

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            [quote author="frankiefrank" date="1382351605"]Ah! :) Thank you. That was silly. If I used the online installer, would I have the option to choose the two different options: (MSVC2010+OpenGL and MinGW)?[/quote]

            I don't know, I'm not using any of the installers myself.

            (Z(:^

            1 Reply Last reply
            0
            • F Offline
              F Offline
              frankiefrank
              wrote on last edited by
              #6

              Solved, sort of. I didn't manage to add the kit at the time, but after using the brand new web installer I could select all the kits I needed. So works for me now.

              "Roads? Where we're going, we don't need roads."

              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