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. Qt5.7 configure qith zlib error- Qt requires a c++11 compiler and yours does not seem to have that

Qt5.7 configure qith zlib error- Qt requires a c++11 compiler and yours does not seem to have that

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 3.1k 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.
  • M Offline
    M Offline
    maria_ts
    wrote on last edited by
    #1

    Hello, I am trying to compile qt with -zlib (Qt5.7). I am using the Visual Studio cmd and executing the command:

    .\..\Qt\5.7\Src\qtbase> configure -qt-zlib
    

    The error I get is that: Qt requires a c++11 compiler and yours does not seem to have that
    I am using Visual Studio 2013 and Qt 5.7.
    Could you please help me? How can I solve this error?

    E 1 Reply Last reply
    0
    • m.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by
      #2

      Hi,

      I am not sure whether this will change anything, but I

      • call configure in the parent directory of qtbase
      • do not use this option at all, as on WINDOWS it is probably used automatically

      -Michael.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        maria_ts
        wrote on last edited by
        #3

        @m-sue Thank you for your answer. I did call configure on the parent directory, but the error I get there is that Perl is not found in PATH. Although, my PATH environmental variable includes the path of Perl.

        1 Reply Last reply
        0
        • m.sueM Offline
          m.sueM Offline
          m.sue
          wrote on last edited by m.sue
          #4

          Hi,

          then maybe the perl version is wrong, or more probably you typed the path wrong. You should be able to starrt perl.exe from the command line. Please try.

          It is important to get this fixed before you continue with configure.

          And sooner or later you will want to add the sub-directory "gnuwin32\bin" to your PATH as well.

          -Michael.

          1 Reply Last reply
          0
          • M maria_ts

            Hello, I am trying to compile qt with -zlib (Qt5.7). I am using the Visual Studio cmd and executing the command:

            .\..\Qt\5.7\Src\qtbase> configure -qt-zlib
            

            The error I get is that: Qt requires a c++11 compiler and yours does not seem to have that
            I am using Visual Studio 2013 and Qt 5.7.
            Could you please help me? How can I solve this error?

            E Offline
            E Offline
            Eeli K
            wrote on last edited by
            #5

            @maria_ts Looks strange because Qt is supported with VS 2013. Otherwise I would have thought that the compiler is too old. If it's possible for you to use VS 2015 you can try that. I don't have any VS at hand so I can't say if there are any configuration options in VS which enable or disable compiler features or if they affect Qt configuration at all. But because you trying to configure Qt in command line you can check http://doc.qt.io/qt-5/configure-options.html for Compiler Options section and use the proper options for your platform/compiler, i.e. 32 or 64 and msvc2013. Read also http://doc.qt.io/qt-5/windows-building.html if you haven't done it yet.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              maria_ts
              wrote on last edited by
              #6

              @Eeli-K Thank you for your answer. I have included the correct paths in PATH environmental variable, and now I am trying to configure QT from Source to find the error. Running the following command

              configure -developer-build -opensource -confirm-license -mp -nomake examples -nomake tests -debug-and-release -c++11 -no-warnings-are-errors -platform win32-msvc2012
              

              I get again the same error about c++11. I have also tried VS2015 and it seems to have the same problem.

              jsulmJ 1 Reply Last reply
              0
              • M maria_ts

                @Eeli-K Thank you for your answer. I have included the correct paths in PATH environmental variable, and now I am trying to configure QT from Source to find the error. Running the following command

                configure -developer-build -opensource -confirm-license -mp -nomake examples -nomake tests -debug-and-release -c++11 -no-warnings-are-errors -platform win32-msvc2012
                

                I get again the same error about c++11. I have also tried VS2015 and it seems to have the same problem.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @maria_ts said in Qt5.7 configure qith zlib error- Qt requires a c++11 compiler and yours does not seem to have that:

                win32-msvc2012

                not sure this is correct.

                Also try to add -v parameter to configure and check what exactly happens during configure execution.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                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