PDA

View Full Version : Error while compiling qt5.7 in centos 8.0



vipul5798
6th February 2020, 06:49
bj/qpropertyanimation.o animation/qpropertyanimation.cpp
g++ -c -include .pch/Qt5Core -pipe -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DELF_INTERPRETER="/lib64/ld-linux-x86-64.so.2" -DQT_HAVE_POLL -DQT_HAVE_PPOLL -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -I../3rdparty/zlib -Iglobal -I../3rdparty/pcre -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/double-conversion/include -I../3rdparty/double-conversion/include/double-conversion -I../3rdparty/forkfd -I../../include -I../../include/QtCore -I../../include/QtCore/5.7.1 -I../../include/QtCore/5.7.1/QtCore -I.moc -I../../mkspecs/linux-g++ -o .obj/qanimationgroup.o animation/qanimationgroup.cpp
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: .pch/Qt5Core: No such file or directory
compilation terminated.
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: .pch/Qt5Core: No such file or directory
compilation terminated.
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: .pch/Qt5Core: No such file or directory
compilation terminated.
make[3]: *** [Makefile:24055: .obj/qabstractanimation.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: .pch/Qt5Core: No such file or directory
compilation terminated.
make[3]: *** [Makefile:24213: .obj/qvariantanimation.o] Error 1
make[3]: *** [Makefile:24369: .obj/qpropertyanimation.o] Error 1
make[3]: *** [Makefile:24515: .obj/qanimationgroup.o] Error 1
make[3]: Leaving directory '/home/logix/qt5/qt5/qtbase/src/corelib'
make[2]: *** [Makefile:197: sub-corelib-make_first] Error 2
make[2]: Leaving directory '/home/logix/qt5/qt5/qtbase/src'
make[1]: *** [Makefile:47: sub-src-make_first] Error 2
make[1]: Leaving directory '/home/logix/qt5/qt5/qtbase'
make: *** [Makefile:79: module-qtbase-make_first] Error 2

d_stranz
6th February 2020, 17:17
cc1plus: fatal error: .pch/Qt5Core: No such file or directory

Well, isn't this sort of an obvious explanation? If the file or directory doesn't exist, then why are you including it in your command line options?

vipul5798
7th February 2020, 08:29
Well, isn't this sort of an obvious explanation? If the file or directory doesn't exist, then why are you including it in your command line options?


I am not including its a part of Qt5.7 build process

Able to resolve using

./configure -no-pch

:) thanks