我正在遵循下面链接的说明,以便在visual studio 2019下编译capnproto。https://capnproto.org/install.html
当我试图在步骤6中构建解决方案"ALL_BUILD“时,它失败了。我在日志中看到的第一个错误是它找不到kj/decg.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++发布于 2022-06-07 13:20:27
这看起来像是Cap发布的0.10.0版本中的一个bug,该版本几天前才发布。此文件未包含在发布包中。CI没有抓住它,因为CI直接从git上运行。呃。
今天我将尝试构建一个0.10.1版本。
编辑: 0.10.1现在已经发布,解决了这个问题。到这里来:https://capnproto.org/install.html
https://stackoverflow.com/questions/72530561
复制相似问题