在Visual Studio 2019下未能编译CapnProto

发布于 2025-02-05 19:05:28 字数 1967 浏览 2 评论 0原文

我正在遵循下面链接中的说明,以在Visual Studio 2019下汇编CapnProto。 https://capnproto.org/install.html.html

当我尝试构建解决方案时,步骤6,它失败了。我在日志中看到的第一个错误是它从kj/debug.c ++中找不到“ win32-api version.h”文件,

我是否缺少某些项目设置?

Build started...
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Checking Build System
2>------ Build started: Project: kj, Configuration: Debug x64 ------
3>------ Build started: Project: kj-gzip, Configuration: Debug x64 ------
4>------ Skipped Build: Project: Continuous, Configuration: Debug x64 ------
4>Project not selected to build for this solution configuration 
5>------ Skipped Build: Project: Experimental, Configuration: Debug x64 ------
5>Project not selected to build for this solution configuration 
6>------ Skipped Build: Project: Nightly, Configuration: Debug x64 ------
6>Project not selected to build for this solution configuration 
7>------ Skipped Build: Project: NightlyMemoryCheck, Configuration: Debug x64 ------
7>Project not selected to build for this solution configuration 
8>------ Skipped Build: Project: RUN_TESTS, Configuration: Debug x64 ------
8>Project not selected to build for this solution configuration 
2>Building Custom Rule C:/Users/snjvs/capnproto-c++-win32-0.10.0/capnproto-c++-0.10.0/src/kj/CMakeLists.txt
3>Building Custom Rule C:/Users/snjvs/capnproto-c++-win32-0.10.0/capnproto-c++-0.10.0/src/kj/CMakeLists.txt
3>gzip.c++
2>array.c++
2>list.c++
3>kj-gzip.vcxproj -> C:\Users\snjvs\capnproto-c++-win32-0.10.0\capnproto-c++-0.10.0\src\kj\Debug\kj-gzip.lib
2>common.c++
2>debug.c++
****2>C:\Users\snjvs\capnproto-c++-win32-0.10.0\capnproto-c++-0.10.0\src\kj\debug.c++(23,10): fatal error C1083: Cannot open include file: 'win32-api-version.h': No such file or directory****
2>exception.c++

I am following the instructions from the link below for compiling capnproto under visual studio 2019.
https://capnproto.org/install.html

When I try to build the solution "ALL_BUILD" in step 6, it fails. The first error that I see in the log is that it cannot find the file "win32-api-version.h" from kj/debug.c++

Is there some project setting that i am missing?

Build started...
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Checking Build System
2>------ Build started: Project: kj, Configuration: Debug x64 ------
3>------ Build started: Project: kj-gzip, Configuration: Debug x64 ------
4>------ Skipped Build: Project: Continuous, Configuration: Debug x64 ------
4>Project not selected to build for this solution configuration 
5>------ Skipped Build: Project: Experimental, Configuration: Debug x64 ------
5>Project not selected to build for this solution configuration 
6>------ Skipped Build: Project: Nightly, Configuration: Debug x64 ------
6>Project not selected to build for this solution configuration 
7>------ Skipped Build: Project: NightlyMemoryCheck, Configuration: Debug x64 ------
7>Project not selected to build for this solution configuration 
8>------ Skipped Build: Project: RUN_TESTS, Configuration: Debug x64 ------
8>Project not selected to build for this solution configuration 
2>Building Custom Rule C:/Users/snjvs/capnproto-c++-win32-0.10.0/capnproto-c++-0.10.0/src/kj/CMakeLists.txt
3>Building Custom Rule C:/Users/snjvs/capnproto-c++-win32-0.10.0/capnproto-c++-0.10.0/src/kj/CMakeLists.txt
3>gzip.c++
2>array.c++
2>list.c++
3>kj-gzip.vcxproj -> C:\Users\snjvs\capnproto-c++-win32-0.10.0\capnproto-c++-0.10.0\src\kj\Debug\kj-gzip.lib
2>common.c++
2>debug.c++
****2>C:\Users\snjvs\capnproto-c++-win32-0.10.0\capnproto-c++-0.10.0\src\kj\debug.c++(23,10): fatal error C1083: Cannot open include file: 'win32-api-version.h': No such file or directory****
2>exception.c++

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情何以堪。 2025-02-12 19:05:28

这看起来像是Cap'n Proto的0.10.0版本中的一个错误,几天前就出现了。此文件未包含在发布包中。 CI没有抓住它,因为CI直接从Git运行。啊。

我今天将尝试构建0.10.1版本。

编辑:现在发布0.10.1,解决此问题。在这里获取: https://capnproto.org/install.html

This looks like a bug in Cap'n Proto's 0.10.0 release, which just went out a few days ago. This file was not included in the release package. CI didn't catch it because CI runs directly from git. Ugh.

I will try to build a 0.10.1 release today.

EDIT: 0.10.1 is now released, fixing this issue. Get it here: https://capnproto.org/install.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文