Unsolved Build Qt 5.10.1 Make Error
-
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 2I used this command ::./configure -developer-build -opensource -nomake examples -nomake tests -Werror -Wunused-private-field
-
@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. -
hi @sierdzio .... I tried this also ./configure -developer-build -opensource -nomake examples -nomake tests I'm getting same error
-
@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. -
@sierdzio hi tried but no use
-
You have tried on a clean source?
./configure
caches flags by default. -
@sierdzio yes clear configure caches file
-
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.