microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.27k stars 6.41k forks source link

Qt WebEngine (Qt6) : Found 2 post-build check problem(s) - The folder /include is empty or not present #34756

Closed cgilles closed 1 year ago

cgilles commented 1 year ago

Operating system

Windows 10 22H2

Compiler

MSVC 2019 community

Steps to reproduce the behavior

./vcpkg --triplet x64-windows --x-buildtrees-root=C:/b/ --x-install-root=C:/dk/ --downloads-root=c:/d/ --vcpkg-root=C:/vcpkg/ install qt

Failure logs

Computing installation plan... A suitable version of cmake was not found (required v3.27.1) Downloading portable cmake 3.27.1... Downloading cmake... https://github.com/Kitware/CMake/releases/download/v3.27.1/cmake-3.27.1-windows-i386.zip->C:\d\cmake-3.27.1-windows-i386.zip Downloading https://github.com/Kitware/CMake/releases/download/v3.27.1/cmake-3.27.1-windows-i386.zip Extracting cmake... The following packages will be built and installed:

-- Building x64-windows-dbg -- Building x64-windows-rel -- Performing post-build validation warning: The folder /include is empty or not present. This indicates the library was not correctly installed. warning: There should be no empty directories in C:\vcpkg\packages\qtwebengine_x64-windows. The following empty directories were found:

C:\vcpkg\packages\qtwebengine_x64-windows\debug

warning: If a directory should be populated but is not, this might indicate an error in the portfile. If the directories are not needed and their creation cannot be disabled, use something like this in the portfile to remove them: file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")

error: Found 2 post-build check problem(s). To submit these ports to curated catalogs, please first correct the portfile: C:\vcpkg\ports\qtwebengine\portfile.cmake Stored binaries in 1 destinations in 32.2 ms. Elapsed time to handle qtwebengine:x64-windows: 8.3 min Installing 99/101 qtwebsockets:x64-windows... Building qtwebsockets[core,qml]:x64-windows... -- Downloading https://download.qt.io/archive/qt/6.5/6.5.3/submodules/qtwebsockets-everywhere-src-6.5.3.tar.xz -> qtwebsockets-everywhere-src-6.5.3.tar.xz... -- Extracting source C:/d//qtwebsockets-everywhere-src-6.5.3.tar.xz -- Using source at C:/b/qtwebsockets/src/here-src-6-eb507c34ad.clean -- Found external ninja('1.10.2'). -- Configuring x64-windows -- Building x64-windows-dbg -- Building x64-windows-rel -- Performing post-build validation Stored binaries in 1 destinations in 433 ms. Elapsed time to handle qtwebsockets:x64-windows: 15 s Installing 100/101 qtwebview:x64-windows... Building qtwebview[core,webengine]:x64-windows... -- Downloading https://download.qt.io/archive/qt/6.5/6.5.3/submodules/qtwebview-everywhere-src-6.5.3.tar.xz -> qtwebview-everywhere-src-6.5.3.tar.xz... -- Extracting source C:/d//qtwebview-everywhere-src-6.5.3.tar.xz -- Using source at C:/b/qtwebview/src/here-src-6-e78bf2c34f.clean -- Found external ninja('1.10.2'). -- Configuring x64-windows CMake Warning at C:/dk/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:318 (message): The following variables are not used in CMakeLists.txt:

  CMAKE_REQUIRE_FIND_PACKAGE_WebEngineCore

Please recheck them and remove the unnecessary options from the vcpkg_cmake_configure call.

If these options should still be passed for whatever reason, please use the MAYBE_UNUSED_VARIABLES argument. Call Stack (most recent call first): C:/dk/x64-windows/share/qtbase/qt_install_submodule.cmake:147 (vcpkg_cmake_configure) C:/dk/x64-windows/share/qtbase/qt_install_submodule.cmake:341 (qt_cmake_configure) ports/qtwebview/portfile.cmake:14 (qt_install_submodule) scripts/ports.cmake:168 (include)

-- Building x64-windows-dbg -- Building x64-windows-rel -- Performing post-build validation Stored binaries in 1 destinations in 624 ms. Elapsed time to handle qtwebview:x64-windows: 18 s Installing 101/101 qt:x64-windows... Building qt[core,default-features]:x64-windows... -- Performing post-build validation Stored binaries in 1 destinations in 18.4 ms. Elapsed time to handle qt:x64-windows: 73.5 ms Total install time: 33 min Elaspsed time for script execution : (00:33:31,78)

Additional context

No response

Neumann-A commented 1 year ago

Configure log ?

cgilles commented 1 year ago

Sure... very is located the configure log file exactly ?

Neumann-A commented 1 year ago

In C:/b/qtwebengine

cgilles commented 1 year ago

config-x64-windows-rel-err.log

It said : WARNING: QtWebEngine won't be built. Build requires Windows 10 SDK at least version 10.0.20348.0

cgilles commented 1 year ago

Installed is Windows SDK 10.0.19041.0 (VSCode 2019 Community)

Neumann-A commented 1 year ago

Installed is Windows SDK 10.0.19041.0 (VSCode 2019 Community)

So QtWebengine is not building anything since your Windows SDK is outdated.

cgilles commented 1 year ago

Qt requirement is right: https://doc.qt.io/qt-6.5/qtwebengine-platform-notes.html

So i need to install VSCode 2022...

cgilles commented 1 year ago

or more simple is to install Windows 11 SDK 22000 available in VSCode 2019 I try this now.

cgilles commented 1 year ago

Seriously (:=)))):

-- Windows 10 SDK version: 10.0.22000.0 -- Support check for QtWebEngine failed: Build requires Windows 11 SDK at least version 10.0.22621.0

-- Configuration summary shown below. It has also been written to C:/b/qtwebengine/x64-windows-rel/config.summary -- Configure with --log-level=STATUS or higher to increase CMake's message verbosity. The log level does not persist across reconfigurations.

WARNING: QtWebEngine won't be built. Build requires Windows 11 SDK at least version 10.0.22621.0

CMake Warning: Manually-specified variables were not used by the project:

FEATURE_webengine_geolocation
FEATURE_webengine_proprietary_codecs
FEATURE_webengine_spellchecker
FEATURE_webengine_v8_snapshot_support
FEATURE_webengine_webchannel
FEATURE_webengine_webrtc
FEATURE_webengine_webrtc_pipewire
FETCHCONTENT_FULLY_DISCONNECTED
HOST_PERL
INSTALL_TRANSLATIONSDIR
QT_SYNCQT
_VCPKG_ROOT_DIR
cgilles commented 1 year ago

Ok i can find Windows 10 SDK 10.0.20348.0 in Individual Components section from VSCode 2019 installer. Trying that ...

cgilles commented 1 year ago

It's turn in loop !!!

-- Windows 10 SDK version: 10.0.20348.0 -- Support check for QtWebEngine failed: Build requires Windows 11 SDK at least version 10.0.22621.0

-- Configuration summary shown below. It has also been written to E:/b/qtwebengine/x64-windows-rel/config.summary -- Configure with --log-level=STATUS or higher to increase CMake's message verbosity. The log level does not persist across reconfigurations.

WARNING: QtWebEngine won't be built. Build requires Windows 11 SDK at least version 10.0.22621.0

CMake Warning: Manually-specified variables were not used by the project:

FEATURE_webengine_geolocation
FEATURE_webengine_proprietary_codecs
FEATURE_webengine_spellchecker
FEATURE_webengine_v8_snapshot_support
FEATURE_webengine_webchannel
FEATURE_webengine_webrtc
FEATURE_webengine_webrtc_pipewire
FETCHCONTENT_FULLY_DISCONNECTED
HOST_PERL
INSTALL_TRANSLATIONSDIR
QT_SYNCQT
_VCPKG_ROOT_DIR
cgilles commented 1 year ago

oh, Qt6 is now 6.6.0, not 6.5.3. This is why Windows SDK deps is changed...

cgilles commented 1 year ago

Ok, VSCode 2022 Community installed. Build start again.

Q: i see some package taken from a cache locally, Where are stored this files exactly ?

Gilles Caulier

cgilles commented 1 year ago

Qt6WebEngine build is extremely long. I see this on the console:

Installing 102/105 qtwebengine:x64-windows...
Building qtwebengine[core,default-features,geolocation,spellchecker,webchannel]:x64-windows...
-- Downloading https://github.com/lexxmark/winflexbison/releases/download/v2.5.25/win_flex_bison-2.5.25.zip -> win_flex_bison-2.5.25.zip...
-- Downloading https://www.python.org/ftp/python/3.11.5/python-3.11.5-embed-amd64.zip -> python-3.11.5-embed-amd64.zip...
-- Downloading https://github.com/pypa/get-pip/archive/38e54e5de07c66e875c11a1ebbdb938854625dd8.tar.gz -> pypa-get-pip-38e54e5de07c66e875c11a1ebbdb938854625dd8.tar.gz...
-- Extracting source E:/d//pypa-get-pip-38e54e5de07c66e875c11a1ebbdb938854625dd8.tar.gz
-- Using source at E:/b/qtwebengine/src/8854625dd8-861bd167bd.clean
-- Setting up python virtual environmnent...
-- Installing python packages: html5lib
-- Setting up python virtual environmnent...finished.
-- Downloading https://download.qt.io/archive/qt/6.6/6.6.0/submodules/qtwebengine-everywhere-src-6.6.0.tar.xz -> qtwebengine-everywhere-src-6.6.0.tar.xz...
-- Extracting source E:/d//qtwebengine-everywhere-src-6.6.0.tar.xz
-- Using source at E:/b/qtwebengine/src/here-src-6-1e08092769.clean
-- Downloading https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/download/SP_5380_5361/strawberry-perl-5.38.0.1-64bit-portable.zip -> strawberry-perl-5.38.0.1-64bit-portable.zip...
-- Found external ninja('1.11.0').
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
CMake Warning at E:/dk/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:318 (message):
  The following variables are not used in CMakeLists.txt:

      FEATURE_webengine_v8_snapshot_support

  Please recheck them and remove the unnecessary options from the
  `vcpkg_cmake_configure` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  E:/dk/x64-windows/share/qtbase/qt_install_submodule.cmake:147 (vcpkg_cmake_configure)
  ports/qtwebengine/portfile.cmake:101 (qt_cmake_configure)
  scripts/ports.cmake:168 (include)

-- Building x64-windows-dbg
CMake Warning at scripts/cmake/vcpkg_execute_build_process.cmake:65 (message):
  Please ensure your system has sufficient memory.
Call Stack (most recent call first):
  E:/dk/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  E:/dk/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/qtwebengine/portfile.cmake:112 (vcpkg_cmake_install)
  scripts/ports.cmake:168 (include)

-- Restarting build without parallelism

Windows 10 run in a VM with 10 cores and 16 GB of RAM. How RAM do i need to assign to the VM to fix this problem ?

Gilles Caulier

Neumann-A commented 1 year ago

Probably 32 GB

cgilles commented 1 year ago

Done, with 24Gb of RAM and 8 cores :

Building qtwebengine[core,default-features,geolocation,spellchecker,webchannel]:x64-windows... -- Downloading https://github.com/lexxmark/winflexbison/releases/download/v2.5.25/win_flex_bison-2.5.25.zip -> win_flex_bison-2.5.25.zip... -- Downloading https://www.python.org/ftp/python/3.11.5/python-3.11.5-embed-amd64.zip -> python-3.11.5-embed-amd64.zip... -- Downloading https://github.com/pypa/get-pip/archive/38e54e5de07c66e875c11a1ebbdb938854625dd8.tar.gz -> pypa-get-pip-38e54e5de07c66e875c11a1ebbdb938854625dd8.tar.gz... -- Extracting source E:/d/pypa-get-pip-38e54e5de07c66e875c11a1ebbdb938854625dd8.tar.gz -- Using source at E:/b/qtwebengine/src/8854625dd8-861bd167bd.clean -- Setting up python virtual environmnent... -- Installing python packages: html5lib -- Setting up python virtual environmnent...finished. -- Downloading https://download.qt.io/archive/qt/6.6/6.6.0/submodules/qtwebengine-everywhere-src-6.6.0.tar.xz -> qtwebengine-everywhere-src-6.6.0.tar.xz... -- Extracting source E:/d/qtwebengine-everywhere-src-6.6.0.tar.xz -- Using source at E:/b/qtwebengine/src/here-src-6-1e08092769.clean -- Downloading https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/download/SP_5380_5361/strawberry-perl-5.38.0.1-64bit-portable.zip -> strawberry-perl-5.38.0.1-64bit-portable.zip... -- Found external ninja('1.11.0'). -- Configuring x64-windows-dbg -- Configuring x64-windows-rel CMake Warning at E:/dk/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:318 (message): The following variables are not used in CMakeLists.txt:

  FEATURE_webengine_v8_snapshot_support

Please recheck them and remove the unnecessary options from the vcpkg_cmake_configure call.

If these options should still be passed for whatever reason, please use the MAYBE_UNUSED_VARIABLES argument. Call Stack (most recent call first): E:/dk/x64-windows/share/qtbase/qt_install_submodule.cmake:147 (vcpkg_cmake_configure) ports/qtwebengine/portfile.cmake:101 (qt_cmake_configure) scripts/ports.cmake:168 (include)

-- Building x64-windows-dbg -- Building x64-windows-rel -- Performing post-build validation Stored binaries in 1 destinations in 4.8 min. Elapsed time to handle qtwebengine:x64-windows: 5.1 h