Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About vcpkg conflicts with CMake 3.28 | 关于vcpkg使用CMake 3.28的冲突 #1

Closed
Reed-yang opened this issue Dec 6, 2023 · 1 comment

Comments

@Reed-yang
Copy link

在使用vcpkg配置环境时被如下报错困扰了很久

-- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:7890".
Restored 0 package(s) from C:\Users\yangs\AppData\Local\vcpkg\archives in 1.07 ms. Use --debug to see more details.
Installing 1/15 zlib:x64-windows...
Building zlib:x64-windows...
-- Using cached madler-zlib-v1.3.tar.gz.
-- Cleaning sources at D:/PATH/vcpkg/buildtrees/zlib/src/v1.3-8825ee792f.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/PATH/vcpkg/downloads/madler-zlib-v1.3.tar.gz
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch 0002-skip-building-examples.patch
-- Applying patch 0003-build-static-or-shared-not-both.patch
-- Applying patch 0004-android-and-mingw-fixes.patch
-- Using source at D:/PATH/vcpkg/buildtrees/zlib/src/v1.3-8825ee792f.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- 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):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/zlib/portfile.cmake:26 (vcpkg_cmake_install)
  scripts/ports.cmake:170 (include)


-- Restarting build without parallelism
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j17
    Working Directory: D:/PATH/vcpkg/buildtrees/zlib/x64-windows-dbg
    See logs for more information:
      D:\PATH\vcpkg\buildtrees\zlib\install-x64-windows-dbg-out.log
      D:\PATH\vcpkg\buildtrees\zlib\install-x64-windows-dbg-out-1.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/zlib/portfile.cmake:26 (vcpkg_cmake_install)
  scripts/ports.cmake:170 (include)

error: building zlib:x64-windows failed with: BUILD_FAILED
Elapsed time to handle zlib:x64-windows: 16 s

经过研究该错误与CMake新版本(3.28.*)与vcpkg的某种冲突有关,mentioned here
在使用3.27.7后测试正常,特此提出issue

@Reed-yang Reed-yang changed the title About vcpkg conflics with CMake 3.28 | 关于vcpkg使用CMake 3.28的冲突 About vcpkg conflicts with CMake 3.28 | 关于vcpkg使用CMake 3.28的冲突 Dec 6, 2023
@zhiwei-c
Copy link
Owner

zhiwei-c commented Dec 8, 2023

下游普通开发者解决不了上游包管理软件的问题 😂

不过我刚才尝试编译发现没有问题,可能是 VCPKG 维护者已经在最新版本解决了这个问题。

@zhiwei-c zhiwei-c closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants