qq_31197877 2016-01-05 13:14 采纳率: 0%
浏览 3315

利用Bazel和NDK编译不能通过

想按照Tensorflow的安卓Demo的步骤把这个Demo编译一遍,可是不懂NDK,编译错误,错误信息如下:

 tp@tp-Inspiron-3421:~/tensorflow$ /home/tp/bin/bazel build //tensorflow/examples/android:tensorflow_demo
..................
INFO: Found 1 target...
INFO: From Compiling external/re2/re2/stringpiece.cc:
external/re2/re2/stringpiece.cc:6:23: fatal error: util/util.h: No such file or directory
 #include "util/util.h"
                       ^
compilation terminated.
ERROR: /home/tp/.cache/bazel/_bazel_tp/52515bfa99a2d82b1037ec6d5029c6c1/external/re2/BUILD:7:1: C++ compilation of rule '@re2//:stringpiece' failed: arm-linux-androideabi-gcc failed: error executing command external/androidndk/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fstack-protector-strong -fpic -ffunction-sections -funwind-tables ... (remaining 37 argument(s) skipped).
Target //tensorflow/examples/android:tensorflow_demo failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 123.372s, Critical Path: 52.03s.

请问这是为什么?怎么解决?

  • 写回答

2条回答 默认 最新

  • devmiao 2016-01-05 15:45
    关注
    评论

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?