无法在visual studio 2019下编译capnproto



我正在按照下面链接的说明在visual studio 2019下编译capnproto。https://capnproto.org/install.html

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

是否有一些项目设置,我错过了?

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:Userssnjvscapnproto-c++-win32-0.10.0capnproto-c++-0.10.0srckjDebugkj-gzip.lib
2>common.c++
2>debug.c++
****2>C:Userssnjvscapnproto-c++-win32-0.10.0capnproto-c++-0.10.0srckjdebug.c++(23,10): fatal error C1083: Cannot open include file: 'win32-api-version.h': No such file or directory****
2>exception.c++

这看起来像是Cap'n Proto几天前刚刚发布的0.10.0版本中的一个bug。这个文件没有包含在发布包中。CI没有捕捉到它,因为CI直接从git运行。嗯。

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

EDIT: 0.10.1现在发布,修复了这个问题。点击这里下载:https://capnproto.org/install.html

最新更新