Skip to content

Compile flatc failed in windows 11 #8925

@fawdlstty

Description

@fawdlstty

About half a year ago, I was able to compile flatc in the Windows 11 environment, but now it doesn't work. It seems that some people have made destructive modifications. The program log is as follows:

生成开始于 23:29...
1>------ 已启动生成: 项目: flatc, 配置: Debug x64 ------
1>LINK : 没有找到 E:\GitHub_fa\flatbuffers\build\Debug\flatc.exe 或上一个增量链接没有生成它;正在执行完全链接
1>flatc.vcxproj -> E:\GitHub_fa\flatbuffers\build\Debug\flatc.exe
2>------ 已启动生成: 项目: flattests, 配置: Debug x64 ------
2>flatc generation: `tests/alignment_test.fbs` -> `tests/alignment_test_generated.h`
2>The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
2>D:\Software\Program\vs2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: “E:\GitHub_fa\flatbuffers\build\CMakeFiles\a99f51996782bf37f39dd37cc107df8a\alignment_test_generated.h.rule;E:\GitHub_fa\flatbuffers\build\CMakeFiles\a99f51996782bf37f39dd37cc107df8a\default_vectors_strings_test.fbs.h.rule;E:\GitHub_fa\flatbuffers\build\CMakeFiles\a99f51996782bf37f39dd37cc107df8a\arrays_test_generated.h.rule;E:\GitHub_fa\flatbuffers\build\CMakeFiles\a99f51996782bf37f39dd37cc107df8a\native_inline_table_test_generated.h.rule;E:\GitHub_fa\flatbuffers\build\CMakeFiles\a99f51996782bf37f39dd37cc107df8a\native_type_test_generated.h.rule;E:\GitHub_fa\flatbuffers\build\CMakeFiles\12cd75ecdc89791fbea1a3926099f969\key_field_sample_generated.h.rule;E:\GitHub_fa\flatbuffers\build\CMakeFiles\bf2e6ce42ad137d7b650890e14b4c173\test_64bit_generated.h.rule;E:\GitHub_fa\flatbuffers\build\CMakeFiles\077a39797ff09dbd3260603a9dccf4d6\v1_generated.h.rule;E:\GitHub_fa\flatbuffers\build\CMakeFiles\077a39797ff09dbd3260603a9dccf4d6\v2_generated.h.rule;E:\GitHub_fa\flatbuffers\build\CMakeFiles\a99f51996782bf37f39dd37cc107df8a\union_underlying_type_test_generated.h.rule”的自定义生成已退出,代码为 14001。
2>已完成生成项目“flattests.vcxproj”的操作 - 失败。
========== 生成: 1 成功,1 失败,6 最新,0 已跳过 ==========
========== 生成 于 23:30 完成,耗时 04.055 秒 ==========

Metadata

Metadata

Assignees

No one assigned

    Labels

    flatcFlatBuffers Compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions