Building QtWebEngine 6.7.2 : "Could not find a configuration file for package "Qt6" that is compatible with requested version "6.5"."
Unsolved
Installation and Deployment
-
Hi,
I'm trying to build QtWebEngine 6.7.2 with proprietary codecs on Windows, but when calling cmake it fails, saying Qt 6.5 is requested.
What I did :
git clone git://code.qt.io/qt/qtwebengine.git cd qtwebengine git checkout 6.7.2 git submodule update --init --progress mkdir build cd build C:\Qt\6.7.2\msvc2019_64\bin\qt-configure-module.bat .. -webengine-proprietary-codecs
The output :
-- Windows 10 SDK version: 10.0.22621.0 'C:\Qt\6.7.2\msvc2019_64\bin\qt-cmake-private.bat' '-DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE' '-DINPUT_webengine_proprietary_codecs=yes' 'C:/qt6/qtwebengine' -- The C compiler identification is MSVC 19.41.34120.0 -- The CXX compiler identification is MSVC 19.41.34120.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx86/x86/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx86/x86/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning at C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message): Version 6.5 of package Qt6 was requested but an incompatible version was found: 6.7.2 (64bit). You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to disable the version check and force the incompatible version to be used. There is no guarantee the build will succeed. Use at your own risk. You can silence this warning by passing -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE Call Stack (most recent call first): CMakeLists.txt:14 (find_package) CMake Warning at C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message): Version 6.5 of package Qt6 was requested but an incompatible version was found: 6.7.2 (64bit). You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to disable the version check and force the incompatible version to be used. There is no guarantee the build will succeed. Use at your own risk. You can silence this warning by passing -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE Call Stack (most recent call first): CMakeLists.txt:14 (find_package) CMake Warning at C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message): Version 6.5 of package Qt6 was requested but an incompatible version was found: 6.7.2 (64bit). You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to disable the version check and force the incompatible version to be used. There is no guarantee the build will succeed. Use at your own risk. You can silence this warning by passing -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE Call Stack (most recent call first): CMakeLists.txt:14 (find_package) CMake Warning at C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message): Version 6.5 of package Qt6 was requested but an incompatible version was found: 6.7.2 (64bit). You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to disable the version check and force the incompatible version to be used. There is no guarantee the build will succeed. Use at your own risk. You can silence this warning by passing -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE Call Stack (most recent call first): CMakeLists.txt:14 (find_package) CMake Warning at C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message): Version 6.5 of package Qt6 was requested but an incompatible version was found: 6.7.2 (64bit). You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to disable the version check and force the incompatible version to be used. There is no guarantee the build will succeed. Use at your own risk. You can silence this warning by passing -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE Call Stack (most recent call first): CMakeLists.txt:14 (find_package) CMake Warning at C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message): Version 6.5 of package Qt6 was requested but an incompatible version was found: 6.7.2 (64bit). You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to disable the version check and force the incompatible version to be used. There is no guarantee the build will succeed. Use at your own risk. You can silence this warning by passing -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE Call Stack (most recent call first): CMakeLists.txt:14 (find_package) CMake Error at CMakeLists.txt:14 (find_package): Could not find a configuration file for package "Qt6" that is compatible with requested version "6.5". The following configuration files were considered but not accepted: C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.7.2 (64bit) -- Configuring incomplete, errors occurred! CMake Error at C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/QtProcessConfigureArgs.cmake:1077 (message): CMake exited with code 1.
I also tried this, producing the same result :
cmake -D CMAKE_MESSAGE_LOG_LEVEL=STATUS -D QT_FEATURE_webengine_proprietary_codecs=ON -D QT_BUILD_EXAMPLES_BY_DEFAULT=OFF -G Ninja ..
Finally, I tried the following instruction (same without ninja), making the configuration process work but the generation fail :
cmake -D CMAKE_MESSAGE_LOG_LEVEL=STATUS -D QT_FEATURE_webengine_proprietary_codecs=ON -D QT_BUILD_EXAMPLES_BY_DEFAULT=OFF .. [...] -- Configuring done (35.8s) CMake Error in CMakeLists.txt: The EXCLUDE_FROM_ALL property of target "qwebengine_convert_dict" varies by configuration. This is not supported by the "Visual Studio 17 2022" generator. -- Generating done (2.8s) CMake Generate step failed. Build files cannot be regenerated correctly.
The versions of the binaries implied :
Cmake 3.30 Ninja 1.12.1 Qt 6.7.2 Windows 10 msvc 19.41.34120
Any idea of what is missing here ?
Thank you for your help.
-
You can’t build webengine alone.
Read this: https://wiki.qt.io/QtWebEngine/Qt6Build