mingw - 使用 Bazel 和 Mingw 编译 gflags 库
问题描述
我在 Windows 10 上使用 MSYS2。我将mingw-w64-x86_64-gcc安装到我的 MSYS2 环境中。
现在我尝试gflags
使用 Bazel 和 MinGW 构建库。
git clone https://github.com/gflags/gflags.git
cd gflags
bazel build --compiler=mingw-gcc //...
我收到以下错误:
ERROR: G:/dev/gflags/BUILD:16:30: Action gflags_declare.h failed: (Exit -1073741515): expand_template.exe failed: error executing command bazel-out/host/bin/bazel/expanded_template/expand_template.exe --template src/gflags_declare.h.in --output bazel-out/x64_windows-fastbuild/bin/gflags_declare.h @GFLAGS_NAMESPACE@;gflags ... (remaining 2 argument(s) skipped
执行时似乎出了点问题expand_template
。但我不知道为什么。有没有人有一些想法或提示这里有什么问题?
解决方案
推荐阅读
- android-studio - Android Studio 打开错误:无法正确启动 (0xc000007b)
- c# - 如何将水晶报表连接到本地数据库?
- javascript - 如何在工厂内调用函数时更新另一个控制器中的 $scope 值?
- java - IBM Websphere MQ - 用于 Tomcat 部署的 EJB 和 MDB 迁移
- r - 字符 2 位数年份仅转换为年份
- python - 使用带有 SysTray 图标的对话框/窗口应用程序:焦点问题
- c++ - 使用变体时模板化的子代不被接受为父代
- postgis - 将本地 Geoserver 的数据目录移动到生产服务器无法创建新存储
- sas - Sas Viya 部署
- node.js - 带有 Promises.all 的 Firestore 功能需要很长时间才能完成