Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Build Qt 5.10.1 Make Error
Forum Updated to NodeBB v4.3 + New Features

Build Qt 5.10.1 Make Error

Scheduled Pinned Locked Moved Unsolved Qt WebKit
plz help me
8 Posts 3 Posters 1.0k 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.
  • R Offline
    R Offline
    Rajashekara V
    wrote on 16 Mar 2020, 11:20 last edited by
    #1

    Hi guys!
    I'm trying make qt from source and this error occurs:

    ../../include/QtTest/../../src/testlib/qtestevent.h:119:9: error: private field
    '_delay' is not used [-Werror,-Wunused-private-field]
    int _delay;
    ^
    ../../include/QtTest/../../src/testlib/qtestevent.h:138:24: error: private field
    '_action' is not used [-Werror,-Wunused-private-field]
    QTest::MouseAction _action;
    ^
    ../../include/QtTest/../../src/testlib/qtestevent.h:139:21: error: private field
    '_button' is not used [-Werror,-Wunused-private-field]
    Qt::MouseButton _button;
    ^
    ../../include/QtTest/../../src/testlib/qtestevent.h:142:9: error: private field
    '_delay' is not used [-Werror,-Wunused-private-field]
    int _delay;
    ^
    ../../include/QtTest/../../src/testlib/qtestevent.h:158:9: error: private field
    '_delay' is not used [-Werror,-Wunused-private-field]
    int _delay;
    ^
    5 errors generated.
    make[4]: *** [.obj/release/header_qtest_gui.o] Error 1
    make[3]: *** [release-all] Error 2
    make[2]: *** [sub-testlib-make_first] Error 2
    make[1]: *** [sub-src-make_first] Error 2
    make: *** [module-qtbase-make_first] Error 2

    I used this command ::./configure -developer-build -opensource -nomake examples -nomake tests -Werror -Wunused-private-field

    S 1 Reply Last reply 16 Mar 2020, 11:57
    0
    • R Rajashekara V
      16 Mar 2020, 11:20

      Hi guys!
      I'm trying make qt from source and this error occurs:

      ../../include/QtTest/../../src/testlib/qtestevent.h:119:9: error: private field
      '_delay' is not used [-Werror,-Wunused-private-field]
      int _delay;
      ^
      ../../include/QtTest/../../src/testlib/qtestevent.h:138:24: error: private field
      '_action' is not used [-Werror,-Wunused-private-field]
      QTest::MouseAction _action;
      ^
      ../../include/QtTest/../../src/testlib/qtestevent.h:139:21: error: private field
      '_button' is not used [-Werror,-Wunused-private-field]
      Qt::MouseButton _button;
      ^
      ../../include/QtTest/../../src/testlib/qtestevent.h:142:9: error: private field
      '_delay' is not used [-Werror,-Wunused-private-field]
      int _delay;
      ^
      ../../include/QtTest/../../src/testlib/qtestevent.h:158:9: error: private field
      '_delay' is not used [-Werror,-Wunused-private-field]
      int _delay;
      ^
      5 errors generated.
      make[4]: *** [.obj/release/header_qtest_gui.o] Error 1
      make[3]: *** [release-all] Error 2
      make[2]: *** [sub-testlib-make_first] Error 2
      make[1]: *** [sub-src-make_first] Error 2
      make: *** [module-qtbase-make_first] Error 2

      I used this command ::./configure -developer-build -opensource -nomake examples -nomake tests -Werror -Wunused-private-field

      S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 16 Mar 2020, 11:57 last edited by
      #2

      @Rajashekara-V said in Build Qt 5.10.1 Make Error:

      -developer-build

      Why? Do you intend to contribute to Qt? If not, do not use this flag. You can skip -Werror -Wunused-private-field too.

      (Z(:^

      R 1 Reply Last reply 16 Mar 2020, 12:16
      1
      • S sierdzio
        16 Mar 2020, 11:57

        @Rajashekara-V said in Build Qt 5.10.1 Make Error:

        -developer-build

        Why? Do you intend to contribute to Qt? If not, do not use this flag. You can skip -Werror -Wunused-private-field too.

        R Offline
        R Offline
        Rajashekara V
        wrote on 16 Mar 2020, 12:16 last edited by Rajashekara V
        #3

        hi @sierdzio .... I tried this also ./configure -developer-build -opensource -nomake examples -nomake tests I'm getting same error

        S 1 Reply Last reply 16 Mar 2020, 12:19
        0
        • R Rajashekara V
          16 Mar 2020, 12:16

          hi @sierdzio .... I tried this also ./configure -developer-build -opensource -nomake examples -nomake tests I'm getting same error

          S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 16 Mar 2020, 12:19 last edited by
          #4

          @Rajashekara-V said in Build Qt 5.10.1 Make Error:

          hi @sierdzio .... I tried this also ./configure -developer-build -opensource -nomake examples -nomake tests I'm getting same error

          Yes that's becuase your are still using developer build. Remove that flag and try again. If you need the built Qt to go to a certain folder, use -prefix instead.

          (Z(:^

          R 1 Reply Last reply 16 Mar 2020, 12:27
          1
          • S sierdzio
            16 Mar 2020, 12:19

            @Rajashekara-V said in Build Qt 5.10.1 Make Error:

            hi @sierdzio .... I tried this also ./configure -developer-build -opensource -nomake examples -nomake tests I'm getting same error

            Yes that's becuase your are still using developer build. Remove that flag and try again. If you need the built Qt to go to a certain folder, use -prefix instead.

            R Offline
            R Offline
            Rajashekara V
            wrote on 16 Mar 2020, 12:27 last edited by
            #5

            @sierdzio hi tried but no use

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sierdzio
              Moderators
              wrote on 16 Mar 2020, 12:41 last edited by
              #6

              You have tried on a clean source? ./configure caches flags by default.

              (Z(:^

              R 1 Reply Last reply 16 Mar 2020, 14:10
              1
              • S sierdzio
                16 Mar 2020, 12:41

                You have tried on a clean source? ./configure caches flags by default.

                R Offline
                R Offline
                Rajashekara V
                wrote on 16 Mar 2020, 14:10 last edited by
                #7

                @sierdzio yes clear configure caches file

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 16 Mar 2020, 20:01 last edited by
                  #8

                  Hi,

                  You should do an out of source build and start from a clean state. If you have to restart your build, just nuke the folder and start again, it will keep your sources clean.

                  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
                  1

                  1/8

                  16 Mar 2020, 11:20

                  • Login

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