-
Notifications
You must be signed in to change notification settings - Fork 6
Description
First, I can successfully build target //tensorflow/examples/android:tensorflow_demo.
However, when I build //tensorflow/tools/benchmark:benchmark_model it gives errors as follows.
bazel-out/arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-opt/bin/_solib_armeabi-v7a/_U_S_Stensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Crs_Unative_Ulib___Utensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Sso/libRSSupportIO.so: error: undefined reference to 'ANativeWindow_lock', version 'LIBANDROID' bazel-out/arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-opt/bin/_solib_armeabi-v7a/_U_S_Stensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Crs_Unative_Ulib___Utensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Sso/libRSSupportIO.so: error: undefined reference to 'ANativeWindow_release', version 'LIBANDROID' bazel-out/arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-opt/bin/_solib_armeabi-v7a/_U_S_Stensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Crs_Unative_Ulib___Utensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Sso/libRSSupportIO.so: error: undefined reference to 'ANativeWindow_setBuffersGeometry', version 'LIBANDROID' bazel-out/arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-opt/bin/_solib_armeabi-v7a/_U_S_Stensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Crs_Unative_Ulib___Utensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Sso/libRSSupportIO.so: error: undefined reference to 'ANativeWindow_unlockAndPost', version 'LIBANDROID' bazel-out/arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-opt/bin/_solib_armeabi-v7a/_U_S_Stensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Crs_Unative_Ulib___Utensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Sso/libRSSupportIO.so: error: undefined reference to 'ANativeWindow_fromSurface', version 'LIBANDROID' bazel-out/arm-linux-androideabi-4.9-v7a-gnu-libstdcpp-opt/bin/_solib_armeabi-v7a/_U_S_Stensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Crs_Unative_Ulib___Utensorflow_Scontrib_Sandroid_Urenderscript_Uops_Srs_Sso/libRSSupport.so: error: undefined reference to '__android_log_print', version 'LIBLOG' collect2: error: ld returned 1 exit status
As you see it's link error but it looks strange since "-landroid" and "-llog" are already added in linkopts of benchmark_model target. Btw, building //tensorflow/tools/benchmark:benchmark_model_lib is okay so the error is inside the last step.
Is there anyone can help me with this? Thanks so much. @malzantot @