Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QT5.7 configure.exe needs to show -no-warnings-are-errors option

    Installation and Deployment
    4
    5
    1141
    Loading More Posts
    • 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.
    • B
      BK_Broiler last edited by

      When I tried to build a static version of QT5.7 from qt-everywhere-oppensource-src-5.7.0.zip using the gcc g++ C++11 compiler, and windows 7, configure.exe would terminate early because gcc would generate a zero as null pointer constant warning from one of the qmake header files, which would then cause g++ to exit because configure.exe compiled it with the -Werror option, which generates an error on any warning.
      Looking through the configure.exe file, I found that it accepts a -no-warnings-are-errors option. This option is not listed in any documentation or listed using the -h option.
      Once I added this option, configure.exe successfully built qmake and the other make files.

      I recommend Qt fix this bug in configure.exe -h. It would have saved me a lot of grief.

      jsulm JKSH 2 Replies Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @BK_Broiler last edited by

        @BK_Broiler Asking in this forum for such a change will most probably not work. You should create a bug-report.

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

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          What header gave you that error ?

          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 Reply Quote 0
          • JKSH
            JKSH Moderators @BK_Broiler last edited by

            @BK_Broiler said in QT5.7 configure.exe needs to show -no-warnings-are-errors option:

            Once I added this option, configure.exe successfully built qmake and the other make files.

            To clarify: Do you mean you ran configure.exe directly? Or did you run configure.bat from the source root, which then ran configure.exe?

            Also, can you please share the full list of configuration options that you used?

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply Reply Quote 0
            • B
              BK_Broiler last edited by

              My mistake, configure.exe -h does list the -no-warnings-are-errors option, it's just buried between 3 other listings in the middle of the print out

              1 Reply Last reply Reply Quote 0
              • First post
                Last post