win 平台,xmake 为啥关联不到 vcpkg? #7358
Answered
by
waruqi
githubnotebooks
asked this question in
Q&A
-
(base) PS Z:\Workspace\Project\cpp> echo $env:VCPKG_ROOT
C:\Users\someone\Workspace\Repository\vcpkg
(base) PS Z:\Workspace\Project\cpp> xmake
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft C/C++ Compiler (x64) ... ok
checking for Microsoft Visual Studio (x64) version ... 2026
updating repositories .. ok
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
-> cli11 v2.6.1 [license:BSD]
-> cpptrace v1.0.4 [runtimes:"MD", license:MIT]
-> fmt 12.1.0 [runtimes:"MD", license:MIT]
-> benchmark v1.9.5 [runtimes:"MD", license:Apache-2.0]
-> gtest v1.17.0 [runtimes:"MD", license:BSD-3]
-> spdlog v1.17.0 [runtimes:"MD", license:MIT]
in vcpkg:
-> vcpkg::boost latest [shared:y, runtimes:"MD", cmake:n]
please input: y (y/n/m)
=> install vcpkg::boost latest .. failed
fetch vcpkg::boost-latest failed!
if you want to get more verbose errors, please see:
-> Z:\Workspace\Project\cpp\build\.packages\v\vcpkg_boost\latest\cache\installdir.failed\logs\install.txt实际上,我在 vcpkg 中已经安装了 boost: (base) PS Z:\Workspace\Project\cpp> C:\Users\someone\Workspace\Repository\vcpkg\vcpkg.exe list
boost-accumulators:x64-windows 1.90.0#1 Boost accumulators module
boost-algorithm:x64-windows 1.90.0#1 Boost algorithm module
boost-align:x64-windows 1.90.0#1 Boost align module
boost-align:x64-windows-static-md 1.90.0#1 Boost align module
boost-any:x64-windows 1.90.0#1 Boost any module
boost-array:x64-windows 1.90.0#1 Boost array module
boost-array:x64-windows-static-md 1.90.0#1 Boost array module
boost-asio:x64-windows 1.90.0#1 Boost asio module为啥 xmake 关联不到 vcpkg 呢?我使用如下命令也失败: (base) PS Z:\Workspace\Project\cpp> xmake g --vcpkg=C:\Users\someone\Workspace\Repository\vcpkg
configure
{
network = public
theme = default
vcpkg = C:\Users\someone\Workspace\Repository\vcpkg
proxy_pac = pac.lua
}
(base) PS Z:\Workspace\Project\cpp> xmake
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft C/C++ Compiler (x64) ... ok
checking for Microsoft Visual Studio (x64) version ... 2026
note: install or modify (m) these packages (pass -y to skip confirm)?
in vcpkg:
-> vcpkg::boost latest [cmake:n, shared:y, runtimes:"MD"]
in xmake-repo:
-> cli11 v2.6.1 [license:BSD]
-> cpptrace v1.0.4 [runtimes:"MD", license:MIT]
-> fmt 12.1.0 [runtimes:"MD", license:MIT]
-> benchmark v1.9.5 [runtimes:"MD", license:Apache-2.0]
-> gtest v1.17.0 [runtimes:"MD", license:BSD-3]
-> spdlog v1.17.0 [runtimes:"MD", license:MIT]
please input: y (y/n/m)
=> install vcpkg::boost latest .. failed
fetch vcpkg::boost-latest failed!
if you want to get more verbose errors, please see:
-> Z:\Workspace\Project\cpp\build\.packages\v\vcpkg_boost\latest\cache\installdir.failed\logs\install.txt |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Feb 28, 2026
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
githubnotebooks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#1998 (comment)