TensorFlow Android demo: unable to build with Bazel, could not read RELEASE.TXT -
recently i've been learning how use tensorflow, , wanted set android demos on computer see how worked. followed instructions provided here, differences being installed android sdk through android studio, , installed android ndk through sdk manager. until $ bazel build //tensorflow/examples/android:tensorflow_demo
, worked fine, after that, got error terminal:
error: no such package '@androidndk//': not read release.txt in android ndk: /home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk/release.txt (no such file or directory). error: no such package '@androidndk//': not read release.txt in android ndk: /home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk/release.txt (no such file or directory).
from looking around @ similar issues, understanding error because release.txt file isn't included in recent version of android ndk. this issue suggested downgrading previous version of ndk contains release.txt file, , provided links download such versions. however, link followed (https://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin) downloaded .bin file, unusable me. post suggested commenting out ndk entry in workspace file, haven't tried yet, since don't know if cause further complications down road.
another approach i've tried going path indicated error log (/home/me/.cache/bazel/_bazel_me/f3471be34d1e62bf21975aa777cedaa3/external/androidndk/ndk
) , creating blank release.txt file, made no difference. (i wasn't able create 1 in ndk installed, since in form of .jar file @ path /home/me/android-studio/android-studio/plugins/android-ndk/lib
, way see path.)
as stands, i'm @ dead end. there way resolve issue without downgrading or commenting out ndk entry? if not, how can install previous version of android ndk?
i posted issue #3175 in official github repository tensorflow, , it's been resolved. play-by-play of steps followed solve problem can found in thread. it's bit convoluted, steps believe solve issue follows:
- if didn't use --recursive option when git cloning tensorflow repository, re-clone using that.
- downgrade android ndk r11c (and make sure update workspace file accordingly). link linux version can found in github thread.
- check version of android sdk , build tools. if differ default versions written in workspace file, make sure change that.
- you may run tensorflow issue is, of yet, unresolved. (#3374) if so, run ./configure workaround.
and should allow bazel build proceed successfully.
Comments
Post a Comment