Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94343

QtWebEngineCore include paths sometimes missing when building core files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 6.2
    • WebEngine
    • All
    • 82769967d385c3037cfe2decb6687abdf23035f9 (qt/qtwebengine/dev) 2eb0431c78b9854673f82a72e5d458339055c95f (qt/qtwebengine/dev)

    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

        Activity

          People

            michal Michal Klocek
            pvarga Peter Varga
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: