Details
Description
Most of the times this fails but sometimes it magically works.
Qt is configured with ../qt6-dev-src/configure -developer-build -release – -DQT_USE_CCACHE=ON -DQT_BUILD_TESTS=ON -DQT_BUILD_EXAMPLES=ON
Top-level build is started with: cmake --build . --parallel
The webengine build fails with:
[10948/13910] Building CXX object qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecookiestore.cpp.o FAILED: qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecookiestore.cpp.o /usr/bin/ccache /usr/lib/ccache/bin/c++ -DBUILDING_CHROMIUM -DNOMINMAX -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_WEBENGINECORE_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_GUI_LIB -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_OPENGL_LIB -DQT_POSITIONING_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_USE_QSTRINGBUILDER -DQT_WEBCHANNEL_LIB -DWebEngineCore_EXPORTS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -Iqtwebengine/src/core/api/WebEngineCore_autogen/include -I/home/stampho/work/Qt/qt6-dev-src/qtwebengine/src/core/api -Iqtwebengine/src/core/api -I/home/stampho/work/Qt/qt6-dev-src/qtwebengine/src/core/api/.. -I/home/stampho/work/Qt/qt6-dev-src/qtwebengine/src/core/api/../../3rdparty/chromium -I/home/stampho/work/Qt/qt6-dev-src/qtwebengine/src/core/api/../../3rdparty/chromium/third_party/abseil-cpp -Iqtbase/include -Iqtbase/include/QtCore -I/home/stampho/work/Qt/qt6-dev-src/qtbase/mkspecs/linux-g++ -Iqtbase/include/QtGui -Iqtbase/include/QtNetwork -Iqtbase/include/QtQuick -Iqtbase/include/QtQml -Iqtbase/include/QtQmlModels -Iqtbase/include/QtOpenGL -Iqtbase/src/corelib -Iqtbase/include/QtCore/6.2.0 -Iqtbase/include/QtCore/6.2.0/QtCore -Iqtbase/src/gui -Iqtbase/include/QtGui/6.2.0 -Iqtbase/include/QtGui/6.2.0/QtGui -Iqtdeclarative/src/quick -Iqtbase/include/QtQuick/6.2.0 -Iqtbase/include/QtQuick/6.2.0/QtQuick -Iqtdeclarative/src/qmlmodels -Iqtbase/include/QtQmlModels/6.2.0 -Iqtbase/include/QtQmlModels/6.2.0/QtQmlModels -Iqtdeclarative/src/qml -Iqtbase/include/QtQml/6.2.0 -Iqtbase/include/QtQml/6.2.0/QtQml -Iqtbase/include/QtWebChannel -Iqtbase/include/QtPositioning -DNDEBUG -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -pthread -Wsuggest-override -std=c++17 -Winvalid-pch -include /home/stampho/work/Qt/qt6-dev-release/qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/cmake_pch.hxx -MD -MT qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecookiestore.cpp.o -MF qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecookiestore.cpp.o.d -o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecookiestore.cpp.o -c /home/stampho/work/Qt/qt6-dev-src/qtwebengine/src/core/api/qwebenginecookiestore.cpp In file included from /home/stampho/work/Qt/qt6-dev-src/qtwebengine/src/core/api/qwebenginecookiestore_p.h:54, from /home/stampho/work/Qt/qt6-dev-src/qtwebengine/src/core/api/qwebenginecookiestore.cpp:41: /home/stampho/work/Qt/qt6-dev-src/qtwebengine/src/core/api/qtwebenginecoreglobal_p.h:56:10: fatal error: QtWebEngineCore/private/qtwebenginecore-config_p.h: No such file or directory 56 | #include <QtWebEngineCore/private/qtwebenginecore-config_p.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
The QtWebEngine include paths are not passed to the gcc command. For example, -Iqtbase/include/QtWebEngineCore/6.2.0/ is missing.
Attachments
For Gerrit Dashboard: QTBUG-94343 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
357155,4 | Fix issues with missing headers for topLevel builds | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
357305,2 | Fix issues with missing headers for topLevel builds | 6.2 | qt/qtwebengine | Status: MERGED | +2 | 0 |
357586,2 | Fix embarrassing typo | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
357630,2 | Fix embarrassing typo | 6.2 | qt/qtwebengine | Status: MERGED | +2 | 0 |