Its some error when make qt from source ...

249 阅读1分钟

1.the error is : --" [55/2054] Building CXX object qttools/...te.dir/lupdatepreprocessoraction.cpp.o FAILED: qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/lupdatepreprocessoraction.cpp.o /usr/bin/c++ -DLUPDATE_CLANG_VERSION_MAJOR=19 -DLUPDATE_CLANG_VERSION_MINOR=0 -DLUPDATE_CLANG_VERSION_PATCH=0 -DLUPDATE_CLANG_VERSION_STR=""19.0.0git"" -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_AS_CONST=1 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT=1 -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_QMLBUILTINS_LIB -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_TOOLS_LIB -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qttools/src/linguist/lupdate/lupdate_autogen/include -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qttools/src/linguist/lupdate -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qttools/src/linguist/lupdate/../shared -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/src/corelib -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtCore/6.7.0 -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtCore/6.7.0/QtCore -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtCore -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/mkspecs/linux-g++ -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtTools -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qttools/src/global -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtTools/6.7.0 -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtTools/6.7.0/QtTools -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtdeclarative/src/qml -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtQml/6.7.0 -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtQml/6.7.0/QtQml -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtQmlBuiltins/6.7.0 -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtQmlBuiltins/6.7.0/QtQmlBuiltins -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtQmlBuiltins -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtQml -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtQmlIntegration -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtdeclarative/src/qmlintegration -I/home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qtbase/include/QtNetwork -DNDEBUG -O2 -std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -Wsuggest-override -MD -MT qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/lupdatepreprocessoraction.cpp.o -MF qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/lupdatepreprocessoraction.cpp.o.d -o qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/lupdatepreprocessoraction.cpp.o -c /home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qttools/src/linguist/lupdate/lupdatepreprocessoraction.cpp In file included from /home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qttools/src/linguist/lupdate/lupdatepreprocessoraction.cpp:4: /home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qttools/src/linguist/lupdate/lupdatepreprocessoraction.h: In constructor ‘LupdatePPCallbacks::LupdatePPCallbacks(WriteSynchronizedRef*, clang::Preprocessor&)’: /home/kelly/Downloads/app/qt-everywhere-src-6.7.0/qttools/src/linguist/lupdate/lupdatepreprocessoraction.h:37:65: error: ‘const class clang::FileEntry’ has no member named ‘getName’ 37 | m_inputFile = sm.getFileEntryForID(sm.getMainFileID())->getName(); | "--

2.search web bugreports.qt.io/browse/QTCR…

3.qt-everywhere-src-6.7.0 ``` wiki.qt.io/Qt_6.7_Tool…

4.libclang 15.0.0