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. configure the build: -Wno-dev: what to do with it?
Forum Updated to NodeBB v4.3 + New Features

configure the build: -Wno-dev: what to do with it?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 3 Posters 296 Views 1 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
    BwvB
    wrote on 2 Apr 2025, 16:21 last edited by
    #1

    I use to compile Qt from the sources in the tar-file that can be found at
    https://download.qt.io/archive/qt/...

    After unpacking I run the "configure" script to obtain the build configuration.
    I use CMake with ninja as the generator

    During the configuration, tons of warnings fly over the screen, many of them with the mysterious remark
    "This warning is for project developers. Use -Wno-dev to suppress it."

    How am I supposed to provide this flag? It is not an option of the configure script.

    Thanks
    Bertwim

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 2 Apr 2025, 16:59 last edited by
      #2

      Simply ignore it. Why do you bother?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BwvB
        wrote on 2 Apr 2025, 18:44 last edited by BwvB 4 Feb 2025, 18:47
        #3

        Because the amount of blurp that is thrown over you obscures the real messages. I thought that is obvious.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 2 Apr 2025, 19:19 last edited by
          #4

          Then modify the configure script to pass this.
          The important stuff is in the summary at the end where you won't find such messages.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SimonSchroeder
            wrote on 3 Apr 2025, 06:31 last edited by
            #5

            I'm not an expert in this, but as I understand it -Wno-dev is not a parameter for the compiler but for cmake itself. So, when invoking CMake, just provide this as additional parameter: cmake -Wno-dev ... (where ... are the parameters you usually provide to cmake).

            C 1 Reply Last reply 3 Apr 2025, 06:56
            1
            • S SimonSchroeder
              3 Apr 2025, 06:31

              I'm not an expert in this, but as I understand it -Wno-dev is not a parameter for the compiler but for cmake itself. So, when invoking CMake, just provide this as additional parameter: cmake -Wno-dev ... (where ... are the parameters you usually provide to cmake).

              C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 3 Apr 2025, 06:56 last edited by
              #6

              @SimonSchroeder You are correct but the configure script provided by Qt (which more or less only calls cmake) has no option to pass this. Otoh when compiling Qt from source I would say you're a developer and you may be interested in these warnings.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              B 1 Reply Last reply 3 Apr 2025, 09:47
              0
              • C Christian Ehrlicher
                3 Apr 2025, 06:56

                @SimonSchroeder You are correct but the configure script provided by Qt (which more or less only calls cmake) has no option to pass this. Otoh when compiling Qt from source I would say you're a developer and you may be interested in these warnings.

                B Offline
                B Offline
                BwvB
                wrote on 3 Apr 2025, 09:47 last edited by
                #7

                @Christian-Ehrlicher I agree with @SimonSchroeder that such an option is needed. Being a developer does not mean that one also is a Qt-developer. I am only a Qt user, but I do need to build from source. If there would be only a few of these warnings it would be bearable, but the number of them exceeds the pain barrier. Moreover, in between all this noise there are other comments/warnings that are relevant for a 'personal' build.

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on 3 Apr 2025, 10:14 last edited by
                  #8

                  Then modify the configure script. Best provide a patch so it gets properly upstreamed

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  B 1 Reply Last reply 3 Apr 2025, 12:51
                  0
                  • C Christian Ehrlicher
                    3 Apr 2025, 10:14

                    Then modify the configure script. Best provide a patch so it gets properly upstreamed

                    B Offline
                    B Offline
                    BwvB
                    wrote on 3 Apr 2025, 12:51 last edited by
                    #9

                    @Christian-Ehrlicher Well, I tried the obvious, i.e. adding the option -Wno-dev to the two lines with 'cmake' in the configure script. That didn't work. Hopefully, somebody who understands Qt's cmake-building can do it.

                    1 Reply Last reply
                    0

                    9/9

                    3 Apr 2025, 12:51

                    • Login

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