关于我的系统上是否存在 Ninja 的消息相互矛盾。
我看到它存在/不存在。你知道这是什么原因吗?难道是我的端口文件有问题?
-- Found external ninja('1.10.2').
-- Configuring x64-win-llvm-static-md
-- Building x64-win-llvm-static-md-dbg
...
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[kassert]+Build+error+on+x64-mingw-static&body=Copy+issue+body+from+E%3A%2FProjects%2FVCPKG%2Fpackage_test%2Fbuild%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md
-- Running vcpkg install - failed
CMake Error at E:/Projects/VCPKG/vcpkg/scripts/buildsystems/vcpkg.cmake:902 (message):
vcpkg install failed. See logs for more information:
E:\Projects\VCPKG\package_test\build\vcpkg-manifest-install.log
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeDetermineSystem.cmake:146 (include)
CMakeLists.txt:5 (project)
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build
tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CMake 无法找到 Ninja 的最后一个错误是“级联”错误,当向 CMake 提供 vcpkg 工具链文件并且任何 vcpkg 步骤失败时,就会发生这种情况。是的,这很令人困惑,真正的原因通常在 vcpkg 输出中进一步列出。 您还没有发布完整的输出,但有线索的行如下:
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[kassert]+Build+error+on+x64-mingw-static&body=Copy+issue+body+from+E%3A%2FProjects%2FVCPKG%2Fpackage_test%2Fbuild%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md
构建失败的端口在上面 URL 中的方括号中:
[kassert]
。您有可能能够确定 通过检查
$VCKPG_ROOT/buildtrees/kassert/*.log
中的日志文件来了解构建失败的性质。我个人会从该目录中的 install-x64-mingw-static-dbg-out.log
开始。