Building WebEngine 6.2 from source failed on Windows 10
-
I'm trying to compile QtWebEngine version 6.2 with -webengine-proprietary-codecs enabled. The error occurs when configure:
configure --release -prefix %CD%\qtbase -webengine-proprietary-codecs -skip qtopcua -skip qt3d -skip qt5compat -skip qttranslations -skip qtvirtualkeyboard -skip qthttpserver -skip qtdoc
The last error message:
Qt WebEngineCore:
Embedded build ......................... no
Full debug information ................. no
Sanitizer support ...................... no
Pepper Plugins ......................... yes
Printing and PDF ....................... yes
Proprietary Codecs ..................... yes
Spellchecker ........................... yes
Native Spellchecker .................... no
WebRTC ................................. yes
PipeWire over GIO ...................... no
Geolocation ............................ yes
WebChannel support ..................... yes
Kerberos Authentication ................ yes
Extensions ............................. yes
Qt WebEngineQuick:
UI Delegates ........................... yesWARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation.
On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
On macOS, you can use Homebrew's llvm package.
You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check.
WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found.
You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check.Qt is now configured for building. Just run 'cmake --build . --parallel'
Once everything is built, Qt is installed. You should NOT run 'cmake --install .'
Note that this build cannot be deployed to other machines or devices.To configure and build other Qt modules, you can use the following convenience script:
C:/Qt/6.2.4/msvc2019_64/src/qt-everywhere-src-6.2.4/qtbase/bin/qt-configure-module.batIf reconfiguration fails for some reason, try to remove 'CMakeCache.txt' from the build directory
-- Configuring incomplete, errors occurred!
--->cmake_args: -DBUILD_qtopcua=OFF;-DBUILD_qt3d=OFF;-DBUILD_qt5compat=OFF;-DBUILD_qttranslations=OFF;-DBUILD_qtvirtualkeyboard=OFF;-DBUILD_qthttpserver=OFF;-DBUILD_qtdoc=OFF;-DCMAKE_INSTALL_PREFIX=C://Qt//6.2.4//msvc2019_64//src//qt-everywhere-src-6.2.4//qtbase;-DCMAKE_BUILD_TYPE=Release;-DINPUT_webengine_proprietary_codecs=yes;-G;Ninja;C:/Qt/6.2.4/msvc2019_64/src/qt-everywhere-src-6.2.4
CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:958 (message):
CMake exited with code 1.Thanks