我正在尝试从 tensorflow 构建 android 示例,但一直遇到烦人的构建错误。到目前为止我的步骤:
- 为 SDK 安装了 android studio。(v24)
- 下载了android NDK 10e(其他版本好像不行)
- 另外安装了 SDK 构建工具 23.0.1(v24 似乎不起作用)
- 使用 inception 模型在 android 示例中添加了一个 assets 文件夹
- 编辑 WORKSPACE 文件以指向 NDK/SDK 位置。
我尝试了几个版本的 TF,但我一直收到错误消息。有任何想法吗?
错误:
C++ compilation of rule '@protobuf//:protobuf' failed: namespace-sandbox failed: error executing command /home/sander/.cache/bazel/_bazel_sander/577a8dcd97360f56540bc1f3f08ac240/tf-cat-face/_bin/namespace-sandbox ... (remaining 51 argument(s) skipped).
src/main/tools/namespace-sandbox.c:697: execvp(argv[0], argv): No such file or directory
Target //tensorflow/examples/android:tensorflow_demo failed to build
Use --verbose_failures to see the command lines of failed build steps.