首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >升级Visual Studio后Bazel不再工作

升级Visual Studio后Bazel不再工作
EN

Stack Overflow用户
提问于 2019-10-16 02:57:20
回答 1查看 613关注 0票数 1

我最近在我的系统上升级了Visual Studio,bazel build ...不再工作了。例如,

代码语言:javascript
运行
复制
C:\Users\marki\plasty>bazel build labeling:semantic_seg
INFO: Analyzed target //labeling:semantic_seg (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: C:/users/marki/plasty/util/BUILD:59:1: C++ compilation of rule '//util:image' failed (Exit -1). Note: Remote connection/protocol failed with: execution failed
Action failed to execute: java.io.IOException: ERROR: src/main/native/windows/process.cc(199): CreateProcessW("C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\bin\HostX64\x64\cl.exe" /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0601 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /bigobj /Zm500 /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /I. /Ibazel-out/x64_windows-fastbuild/bin /Ibazel-out/x64_windows-fastbuild/bin/third_party/stb/_virtual_includes/stb_image /showIncludes /MD /Od /Z7 /wd4117 "-D__DATE__=\"redacted\"" "-D__TIMESTAMP__=\"redacted\"" "-D_(...)): The system cannot find the file specified.
 (error: 2)
Target //labeling:semantic_seg failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.438s, Critical Path: 0.02s
INFO: 0 processes.
FAILED: Build did NOT complete successfully

目录C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702已不存在(?)在我的系统上。但是,我找到了C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105目录。但我不确定需要在Bazel中更改什么设置才能使用新目录。

EN

Stack Overflow用户

回答已采纳

发布于 2019-10-16 03:23:24

在找到这个线程https://github.com/bazelbuild/bazel/issues/8589之后,我将环境变量BAZEL_VC_FULL_VERSION设置为14.23.28105,这似乎解决了这个问题。

票数 2
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58401067

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档