Results 1 to 3 of 3

Thread: Error while compiling qt5.7 in centos 8.0

  1. #1
    Join Date
    Feb 2020
    Posts
    2
    Qt products
    Qt5

    Question Error while compiling qt5.7 in centos 8.0

    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

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,481
    Thanks
    252
    Thanked 711 Times in 701 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Error while compiling qt5.7 in centos 8.0

    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?
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Feb 2020
    Posts
    2
    Qt products
    Qt5

    Default Re: Error while compiling qt5.7 in centos 8.0

    Quote Originally Posted by d_stranz View Post
    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

Similar Threads

  1. -IGL error in CentOS 6
    By rawfool in forum Newbie
    Replies: 0
    Last Post: 20th February 2014, 12:30
  2. error while compiling on MAC
    By aj2903 in forum Qt Programming
    Replies: 1
    Last Post: 3rd March 2010, 07:03
  3. Error in compiling
    By Tarun in forum Qt-based Software
    Replies: 1
    Last Post: 3rd February 2010, 14:04
  4. Replies: 1
    Last Post: 25th October 2008, 19:18
  5. Compiling Error
    By KyrinComa in forum Qt Programming
    Replies: 2
    Last Post: 17th May 2006, 13:19

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.