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. Compiling Qt 5.7 on Windows using MinGW
Forum Updated to NodeBB v4.3 + New Features

Compiling Qt 5.7 on Windows using MinGW

Scheduled Pinned Locked Moved Unsolved General and Desktop
compilation5.7windows 7mingw
7 Posts 3 Posters 4.0k Views 2 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.
  • T Offline
    T Offline
    thEClaw
    wrote on 21 Jun 2016, 08:26 last edited by thEClaw
    #1

    I am having problems compiling Qt 5.7 inside a Windows 7 virtual machine. Until now I usually installed the binary (MinGW) package, including the compiler that comes with it, and then I compiled the source-code myself (into a completely separate directory) to have a little more control over certain builds.

    When I try this with Qt 5.7, which comes with MinGW 5.3.0, configure throws an error that the compiler seemingly doesn't support C++11. That of course cannot be true, but I don't know how to tell configure that the compiler is sufficient.

    Maybe I have to set some environment variables, maybe I should install a version of MinGW myself... any kind of hint would be very much appreciated.

    R 1 Reply Last reply 21 Jun 2016, 10:34
    0
    • T thEClaw
      21 Jun 2016, 08:26

      I am having problems compiling Qt 5.7 inside a Windows 7 virtual machine. Until now I usually installed the binary (MinGW) package, including the compiler that comes with it, and then I compiled the source-code myself (into a completely separate directory) to have a little more control over certain builds.

      When I try this with Qt 5.7, which comes with MinGW 5.3.0, configure throws an error that the compiler seemingly doesn't support C++11. That of course cannot be true, but I don't know how to tell configure that the compiler is sufficient.

      Maybe I have to set some environment variables, maybe I should install a version of MinGW myself... any kind of hint would be very much appreciated.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 21 Jun 2016, 10:34 last edited by
      #2

      @thEClaw
      maybe - when you are not doing this already - it's enough to explicitly specify the mkspecs:

      configure -platform win32-g++
      

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • T Offline
        T Offline
        thEClaw
        wrote on 21 Jun 2016, 12:05 last edited by thEClaw
        #3

        Sadly that didn't help. Here are the final lines I see when trying to run configure.bat (I tried it on a fresh directory, so the previous attempts should not influence the result):

        Running configuration tests...
        QMake failed!
        ERROR: Qt requires a C++11 compiler and yours does not seem to be that.
        Please upgrade.
        

        Since the error-statement is definitely wrong, I honestly think that the configure-script is a little buggy. As far as I understand, this is the first iteration of Qt that absolutely requires a C++11-capable compiler.

        Also, here is my whole configure-call, maybe it is useful:
        configure.bat -release -opensource -confirm-license -nomake tools -nomake examples -nomake tests -no-compile-examples -opengl desktop -no-warnings-are-errors -no-angle -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-avx512 -mp

        1 Reply Last reply
        0
        • T Offline
          T Offline
          thEClaw
          wrote on 22 Jun 2016, 03:17 last edited by
          #4

          I experimented with a couple of flags, including setting the C++11-flag for configure manually, but I have had no success so far. Any further suggestions maybe?

          1 Reply Last reply
          0
          • T Offline
            T Offline
            thEClaw
            wrote on 23 Jun 2016, 15:07 last edited by
            #5

            I will push this once more, if that is ok. The problem still persists and I still have no idea how to solve it.

            1 Reply Last reply
            1
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 23 Jun 2016, 15:09 last edited by
              #6

              Hi,

              Might be a silly question but do you have several version of MinGW installed ? Did you install the one coming with the Qt installer ?

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

              1 Reply Last reply
              0
              • T Offline
                T Offline
                thEClaw
                wrote on 23 Jun 2016, 15:29 last edited by thEClaw
                #7

                I did install the one coming with the Qt package, there is no other version installed.

                1 Reply Last reply
                0

                7/7

                23 Jun 2016, 15:29

                • Login

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