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
Forum Updated to NodeBB v4.3 + New Features

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 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.
  • B Offline
    B Offline
    BK_Broiler
    wrote on 29 Nov 2016, 04:14 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.

    J J 2 Replies Last reply 29 Nov 2016, 05:42
    0
    • B BK_Broiler
      29 Nov 2016, 04:14

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 29 Nov 2016, 05:42 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
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 29 Nov 2016, 10:49 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
          29 Nov 2016, 04:14

          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.

          J Offline
          J Offline
          JKSH
          Moderators
          wrote on 30 Nov 2016, 01:45 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 30 Nov 2016, 02:11 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

            3/5

            29 Nov 2016, 10:49

            • Login

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