PS D:\vcpkg> ./vcpkg install qtwebengine:x64-windows --x-buildtrees-root=C:\tmp --no-print-usage
Computing installation plan...
The following packages will be built and installed:
qtwebengine:x64-windows@6.8.1#1
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\Harold\AppData\Local\vcpkg\archives in 94.1 us. Use --debug to see more details.
Installing 1/1 qtwebengine:x64-windows@6.8.1#1...
Building qtwebengine:x64-windows@6.8.1#1...
-- Using cached pypa-get-pip-38e54e5de07c66e875c11a1ebbdb938854625dd8.tar.gz
-- Extracting source D:/vcpkg/downloads/pypa-get-pip-38e54e5de07c66e875c11a1ebbdb938854625dd8.tar.gz
-- Using source at C:/tmp/qtwebengine/src/8854625dd8-861bd167bd.clean
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: D:/vcpkg/downloads/tools/python/python-3.12.7-x64-1/python.exe C:/tmp/qtwebengine/src/8854625dd8-861bd167bd.clean/public/get-pip.py --no-warn-script-location
Working Directory: C:/tmp/qtwebengine
Error code: 1
See logs for more information:
C:\tmp\qtwebengine\get-pip-x64-windows-err.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-get-python-packages/x_vcpkg_get_python_packages.cmake:48 (vcpkg_execute_required_process)
ports/qtwebengine/portfile.cmake:70 (x_vcpkg_get_python_packages)
scripts/ports.cmake:196 (include)
in C:\tmp\qtwebengine\get-pip-x64-windows-err.log
, it says ModuleNotFoundError: No module named 'distutils'
the problem is distutils package is removed in Python version 3.12
and it occurred in script get-pip.py
then i checked this script in C:\tmp\qtwebengine\src\8854625dd8-861bd167bd
, found it is quite out of date (modified year is 2023)
so i update it to the lastest version
to keep the changed cache file, add --editable
to vcpkg command, and noticed the following error msg:
PS D:\vcpkg> ./vcpkg install qtwebengine:x64-windows --x-buildtrees-root=C:\tmp --no-print-usage --editable
Computing installation plan...
The following packages will be built and installed:
qtwebengine:x64-windows@6.8.1#1
Installing 1/1 qtwebengine:x64-windows@6.8.1#1...
Building qtwebengine:x64-windows@6.8.1#1...
-- Using cached pypa-get-pip-38e54e5de07c66e875c11a1ebbdb938854625dd8.tar.gz
-- Using source at C:/tmp/qtwebengine/src/8854625dd8-861bd167bd
CMake Error at installed/x64-windows/share/vcpkg-get-python-packages/x_vcpkg_get_python_packages.cmake:79 (file):
file COPY cannot find
"D:/vcpkg/downloads/tools/python/python-3.12.7-x64-1/python311.zip": File
exists.
Call Stack (most recent call first):
ports/qtwebengine/portfile.cmake:70 (x_vcpkg_get_python_packages)
scripts/ports.cmake:196 (include)
it says D:/vcpkg/downloads/tools/python/python-3.12.7-x64-1/python311.zip
is missing
but i found python312.zip
in that folder, so i just copy and rename it to python311.zip
this time, qtwebengine
building process successfully started!
PS D:\vcpkg> ./vcpkg install qtwebengine:x64-windows --x-buildtrees-root=C:\tmp --no-print-usage --editable
Computing installation plan...
The following packages will be built and installed:
qtwebengine:x64-windows@6.8.1#1
Installing 1/1 qtwebengine:x64-windows@6.8.1#1...
Building qtwebengine:x64-windows@6.8.1#1...
-- Setting up python virtual environmnent...
-- Installing python packages: html5lib
-- Setting up python virtual environmnent...finished.
Downloading qtwebengine-everywhere-src-6.8.1.tar.xz, trying https://download.qt.io/archive/qt/6.8/6.8.1/submodules/qtwebengine-everywhere-src-6.8.1.tar.xz
Successfully downloaded qtwebengine-everywhere-src-6.8.1.tar.xz
-- Extracting source D:/vcpkg/downloads/qtwebengine-everywhere-src-6.8.1.tar.xz
-- Applying patch clang-cl.patch
-- Applying patch fix-error2275-2672.patch
-- Applying patch blink-include-fixes.patch
-- Applying patch fix_another_missing_inc.patch
-- Using source at C:/tmp/qtwebengine/src/here-src-6-ab73907ca8
-- Found external ninja('1.12.1').
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst
-- Using cached msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst
-- Using msys root at D:/vcpkg/downloads/tools/msys2/21caed2f81ec917b
-- Performing post-build validation
Elapsed time to handle qtwebengine:x64-windows: 9.6 h
Total install time: 9.6 h