【发布时间】:2016-11-10 06:06:29
【问题描述】:
我正在关注这个instruction TensorFlow Android Camera Demo,我在 WORKSPACE 中更改了 NDK 和 SDK 的路径,现在当我尝试使用命令构建 APK 时
$ bazel build //tensorflow/examples/android:tensorflow_demo
我遇到了这样的错误:
我做错了什么?如何解决?
如果我尝试在 Android Studio 中构建 APK,我会收到这样的错误:
Error:/private/var/tmp/_bazel_Iryna/c541cf0f6f349cf0d7c8d3692096116a/external/protobuf/BUILD:73:1: C++ compilation of rule '@protobuf//:protobuf_lite' failed: sandbox-exec failed: error executing command /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_Iryna/c541cf0f6f349cf0d7c8d3692096116a/bazel-sandbox/a0350092-17a0-44fc-a63c-6321732c52f4-2/sandbox.sb /bin/false -MD -MF ... (remaining 27 argument(s) skipped).
Error:Execution failed for task ':buildNative'.
> Process 'command '/usr/local/bin/bazel'' finished with non-zero exit value 1
【问题讨论】:
-
这看起来像是一个构建/安装问题。请在我们的github 页面提出问题。尝试同时使用
--genrule_strategy=standalone和--spawn_strategy=standalone。 -
@drpng 如何使用 --genrule_strategy=standalone 和 --spawn_strategy=standalone ?如果我在终端打印它,我得到“找不到命令”
-
我的意思是
bazel build --genrule_strategy=standalone --spawn_strategy=standalone //tensorflow/examples/android:tensorflow_demo -
@drpng 同样的错误
-
好的,尝试在我们的github 页面上提交问题。
标签: android android-ndk tensorflow