QtWebEngine/Qt6Build
Jump to navigation
Jump to search
Building Qt6 WebEngine from Source
Please check platform notes for required dependencies https://doc.qt.io/qt-6/qtwebengine-platform-notes.html.
Qt builds can be done in 'top level' manner, meaning that you clone qt5 main repository (git://code.qt.io/qt/qt5.git), which then initializes all the qt modules as submodules and configures and builds everything in one go. However, in this small guide shows the alternative way so called 'module build' which is more robust as it clones minimum subset of modules required for QtWebengine and compiles each module separately. It also is very flexible as you can try to compile newer QtWebengine with older qt base and so.
Obtain Qt6 sources code=
mkdir qt6
cd qt6
git clone git://code.qt.io/qt/qtbase.git
git clone git://code.qt.io/qt/shadertools.git
git clone git://code.qt.io/qt/qtdeclarative.git
git clone git://code.qt.io/qt/qtwebengine.git
cd qtwebenigne
git submodule init
git submodule update
cd ..
Note that web engine needs initialization of submodule.