asus4 / tf-lite-unity-sample

TensorFlow Lite Samples on Unity
861 stars 252 forks source link

Build on v2.12.0 fails in GPU delegate (Android + Linux) #304

Closed asus4 closed 1 year ago

asus4 commented 1 year ago

Environment:

Describe the bug

It fails at building GPU delegate on Android and Linux, when running ./build_tflite.py -android -xnnpack command.

external/androidndk/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lnativewindow

Here's a full log on the Android CI https://app.circleci.com/pipelines/github/asus4/tf-lite-unity-sample/32/workflows/82761569-92d0-4559-9468-b55146bb4902/jobs/150

To Reproduce Steps to reproduce the behavior:

  1. Run ./build_tflite.py -android -xnnpack or ./build_tflite.py -linux -xnnpack with the TensorFlow v2.12.0 branch

Workaround is to comment out nativewindow_linkopts in the TFLite bazel file. It looks like the issue in the TFLite.

https://github.com/tensorflow/tensorflow/blob/0db597d0d758aba578783b5bf46c889700a45085/tensorflow/lite/delegates/gpu/build_defs.bzl#L27-L28

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.