在Visual Studio 2019下未能编译CapnProto
我正在遵循下面链接中的说明,以在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这看起来像是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