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. QT5.7 configure.exe needs to show -no-warnings-are-errors option
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 4 Posters 1.7k 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.
  • B Offline
    B Offline
    BK_Broiler
    wrote on last edited by
    #1

    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.

    jsulmJ JKSHJ 2 Replies Last reply
    0
    • B BK_Broiler

      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.

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

      @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
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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
        0
        • B BK_Broiler

          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.

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          @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
          0
          • B Offline
            B Offline
            BK_Broiler
            wrote on last edited by
            #5

            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
            0

            • Login

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