【问题标题】:unable to to run bazel build command无法运行 bazel build 命令
【发布时间】:2021-07-22 11:45:35
【问题描述】:

我正在尝试使用 bazel 执行手部跟踪 android 应用程序,当我运行构建命令时出现此错误:

你能帮我解决一下吗

ERROR: C:/users/admin/mediapipe_repo/mediapipe/mediapipe/framework/formats/BUILD:251:24: C++ compilation of rule '//mediapipe/framework/formats:landmark_cc_proto' failed (Exit 1): clang fai
led: error executing command external/androidndk/ndk/toolchains/llvm/prebuilt/windows-x86_64/bin/clang -gcc-toolchain external/androidndk/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/w
indows-x86_64 -target ... (remaining 57 argument(s) skipped)
clang: error: no such file or directory: '/w'
clang: error: no such file or directory: '/D_USE_MATH_DEFINES'
clang: error: no such file or directory: '/std:c++17'
Target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 151.344s, Critical Path: 132.86s
INFO: 160 processes: 128 internal, 31 local, 1 worker.
FAILED: Build did NOT complete successfully

【问题讨论】:

  • 您似乎将 Visual Studio 标志传递给 Clang。您至少需要展示您如何调用 Bazel 以及您所做的任何配置。

标签: android c++ android-studio bazel mediapipe


【解决方案1】:

Mediapipe 文档中有a note

注意:在原生 Windows 上构建 MediaPipe Android 应用程序仍然是不可能的。请改为在 WSL 中执行此操作,并参阅下一节中的 WSL 设置说明。

这意味着您正在尝试做的事情目前是不可能的,抱歉。另请参阅 this issue 了解与您情况相同的其他人。

【讨论】:

  • 是的,可能这就是感谢你回答的原因
猜你喜欢
  • 1970-01-01
  • 2020-04-18
  • 1970-01-01
  • 1970-01-01
  • 2022-11-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多