Closed ashokbugude closed 7 years ago
I am using the prebuilt binaries and am using them in Android studio in windows 10 and have set it up according to https://github.com/Qualeams/Android-Face-Recognition-with-Deep-Learning-Library/issues/1 When I build the app , i get below errors
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':facerecognitionlibrary:externalNativeBuildRelease'.
Build command failed. Error while executing process C:\Users\H242018\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Projects\Android-Test1\facerecognitionlibrary\jni-build\jni\Android.mk NDK_APPLICATION_MK=C:\Projects\Android-Test1\facerecognitionlibrary\jni-build\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-21 NDK_OUT=C:/Projects/Android-Test1/facerecognitionlibrary/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=C:\Projects\Android-Test1\facerecognitionlibrary\build\intermediates\ndkBuild\release\lib C:/Projects/Android-Test1/facerecognitionlibrary/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libtensorflow.so} Android NDK: WARNING:C:\Projects\Android-Test1\facerecognitionlibrary\jni-build\jni\Android.mk:tensorflow: non-system libraries in linker flags: C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libprotos_all_cc.a C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libprotobuf.a C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libprotobuf_lite.a C:/Users/H242018/AppData/Local/Android/sdk/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_static.a C:/Users/H242018/AppData/Local/Android/sdk/ndk-bundle/build//../sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the Android NDK: current module [armeabi-v7a] SharedLibrary : libtensorflow.so C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::(anonymous namespace)::GetBiasValueDims(tensorflow::Tensor const&, tensorflow::TensorFormat, int, int, int, int): error: undefined reference to 'tensorflow::TensorShape::dim_size(int) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::(anonymous namespace)::GetBiasValueDims(tensorflow::Tensor const&, tensorflow::TensorFormat, int, int, int, int): error: undefined reference to 'tensorflow::TensorShape::dim_size(int) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::(anonymous namespace)::GetBiasValueDims(tensorflow::Tensor const&, tensorflow::TensorFormat, int, int, int, int): error: undefined reference to 'tensorflow::TensorShape::dim_size(int) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::(anonymous namespace)::GetBiasValueDims(tensorflow::Tensor const&, tensorflow::TensorFormat, int, int, int, int): error: undefined reference to 'tensorflow::TensorShape::dim_size(int) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::BiasOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::DebugString() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::BiasOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::DebugString() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::BiasOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::DebugString() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::BiasOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::DebugString() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::BiasGradOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::TensorShape(tensorflow::gtl::ArraySlice)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::BiasGradOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::DestructorOutOfLine()' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::BiasGradOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::TensorShape(tensorflow::gtl::ArraySlice)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(bias_op.o):bias_op.cc:function tensorflow::BiasGradOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::DestructorOutOfLine()' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOffsetOp::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::TensorShape(tensorflow::gtl::ArraySlice)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOffsetOp::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::DestructorOutOfLine()' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::AddDim(long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::DestructorOutOfLine()' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::SlowCopyFrom(tensorflow::TensorShape const&)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::set_dim(int, long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::SlowCopyFrom(tensorflow::TensorShape const&)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::AddDim(long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::SlowCopyFrom(tensorflow::TensorShape const&)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::set_dim(int, long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::SlowCopyFrom(tensorflow::TensorShape const&)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, Eigen::QUInt16>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::AddDim(long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, Eigen::QUInt16>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::set_dim(int, long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, Eigen::QInt8>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::AddDim(long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(concat_op.o):concat_op.cc:function tensorflow::ConcatOp<Eigen::ThreadPoolDevice, Eigen::QInt8>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::set_dim(int, long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(constant_op.o):constant_op.cc:function tensorflow::{lambda(tensorflow::OpKernelConstruction)#7}::_FUN(tensorflow::OpKernelConstruction): error: undefined reference to 'tensorflow::TensorShape::TensorShape()' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(constant_op.o):constant_op.cc:function tensorflow::{lambda(tensorflow::OpKernelConstruction)#6}::_FUN(tensorflow::OpKernelConstruction): error: undefined reference to 'tensorflow::TensorShape::TensorShape()' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(constant_op.o):constant_op.cc:function tensorflow::FillOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::TensorShape()' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(constant_op.o):constant_op.cc:function tensorflow::FillOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::TensorShape()' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(example_parsing_ops.o):example_parsing_ops.cc:function tensorflow::SingleSequenceExampleParserOp::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::Features_defaultinstance' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(example_parsing_ops.o):example_parsing_ops.cc:function tensorflow::SingleSequenceExampleParserOp::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::dim_sizes() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(example_parsing_ops.o):example_parsing_ops.cc:function tensorflow::SingleSequenceExampleParserOp::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::TensorShape(tensorflow::gtl::ArraySlice)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(example_parsing_ops.o):example_parsing_ops.cc:function tensorflow::SingleSequenceExampleParserOp::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::FeatureLists_defaultinstance' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(example_parsing_ops.o):example_parsing_ops.cc:function tensorflow::SingleSequenceExampleParserOp::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::dim_sizes() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(gather_op.o):gather_op.cc:function tensorflow::TTypes<int, 2u, int>::ConstTensor tensorflow::Tensor::flat_outer_dims<int, 2u>() const: error: undefined reference to 'tensorflow::Tensor::ComputeFlatOuterDims(long long) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(gather_op.o):gather_op.cc:function tensorflow::TTypes<float, 2u, int>::ConstTensor tensorflow::Tensor::flat_outer_dims<float, 2u>() const: error: undefined reference to 'tensorflow::Tensor::ComputeFlatOuterDims(long long) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(pack_op.o):pack_op.cc:function tensorflow::PackOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::InsertDim(int, long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(pack_op.o):pack_op.cc:function tensorflow::PackOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::InsertDim(int, long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(shape_ops.o):shape_ops.cc:function tensorflow::SqueezeOp::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::dim_sizes() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(shape_ops.o):shape_ops.cc:function tensorflow::ExpandDimsOp::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::dim_sizes() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(strided_slice_op.o):strided_slice_op.cc:function tensorflow::StridedSliceOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::ValidateStridedSliceOp(tensorflow::Tensor const&, tensorflow::Tensor const&, tensorflow::Tensor const&, tensorflow::ShapeReadWriteInterface const&, int, int, int, int, int, tensorflow::ShapeReadWriteInterface, tensorflow::ShapeReadWriteInterface, bool, bool, bool, tensorflow::gtl::InlinedVector<long long, 4>, tensorflow::gtl::InlinedVector<long long, 4>, tensorflow::gtl::InlinedVector<long long, 4>)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(strided_slice_op.o):strided_slice_op.cc:function tensorflow::StridedSliceGradOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::ValidateStridedSliceOp(tensorflow::Tensor const&, tensorflow::Tensor const&, tensorflow::Tensor const&, tensorflow::ShapeReadWriteInterface const&, int, int, int, int, int, tensorflow::ShapeReadWriteInterface, tensorflow::ShapeReadWriteInterface, bool, bool, bool, tensorflow::gtl::InlinedVector<long long, 4>, tensorflow::gtl::InlinedVector<long long, 4>, tensorflow::gtl::InlinedVector<long long, 4>)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(strided_slice_op.o):strided_slice_op.cc:function tensorflow::StridedSliceAssignOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::ValidateStridedSliceOp(tensorflow::Tensor const&, tensorflow::Tensor const&, tensorflow::Tensor const&, tensorflow::ShapeReadWriteInterface const&, int, int, int, int, int, tensorflow::ShapeReadWriteInterface, tensorflow::ShapeReadWriteInterface, bool, bool, bool, tensorflow::gtl::InlinedVector<long long, 4>, tensorflow::gtl::InlinedVector<long long, 4>, tensorflow::gtl::InlinedVector<long long, 4>)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(strided_slice_op.o):strided_slice_op.cc:function tensorflow::StridedSliceAssignOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::ValidateStridedSliceOp(tensorflow::Tensor const&, tensorflow::Tensor const&, tensorflow::Tensor const&, tensorflow::ShapeReadWriteInterface const&, int, int, int, int, int, tensorflow::ShapeReadWriteInterface, tensorflow::ShapeReadWriteInterface, bool, bool, bool, tensorflow::gtl::InlinedVector<long long, 4>, tensorflow::gtl::InlinedVector<long long, 4>, tensorflow::gtl::InlinedVector<long long, 4>)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(unpack_op.o):unpack_op.cc:function tensorflow::UnpackOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::RemoveDim(int)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(unpack_op.o):unpack_op.cc:function tensorflow::UnpackOp<Eigen::ThreadPoolDevice, float>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::RemoveDim(int)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(cwise_op_select.o):cwise_op_select.cc:function tensorflow::TTypes<int, 2u, int>::Tensor tensorflow::Tensor::flat_outer_dims<int, 2u>(): error: undefined reference to 'tensorflow::Tensor::ComputeFlatOuterDims(long long) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(cwise_op_select.o):cwise_op_select.cc:function tensorflow::TTypes<float, 2u, int>::Tensor tensorflow::Tensor::flat_outer_dims<float, 2u>(): error: undefined reference to 'tensorflow::Tensor::ComputeFlatOuterDims(long long) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(maxpooling_op.o):maxpooling_op.cc:function tensorflow::MaxPoolingGradOp<Eigen::ThreadPoolDevice, float>::MaxPoolingGradOp(tensorflow::OpKernelConstruction): error: undefined reference to 'tensorflow::DeviceTypeString(tensorflow::DeviceType)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(maxpooling_op.o):maxpooling_op.cc:function tensorflow::MaxPoolingGradOp<Eigen::ThreadPoolDevice, Eigen::half>::MaxPoolingGradOp(tensorflow::OpKernelConstruction): error: undefined reference to 'tensorflow::DeviceTypeString(tensorflow::DeviceType)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(random_op.o):random_op.cc:function tensorflow::(anonymous namespace)::RandomGammaOp::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::AppendShape(tensorflow::TensorShape const&)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function tensorflow::Status tensorflow::checkpoint::TensorSliceWriter::Add(std::string const&, tensorflow::TensorShape const&, tensorflow::TensorSlice const&, int const): error: undefined reference to 'tensorflow::TensorShape::TensorShape(tensorflow::TensorShapeProto const&)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function tensorflow::Status tensorflow::checkpoint::TensorSliceWriter::Add(std::string const&, tensorflow::TensorShape const&, tensorflow::TensorSlice const&, int const): error: undefined reference to 'tensorflow::TensorShape::AsProto(tensorflow::TensorShapeProto) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function tensorflow::Status tensorflow::checkpoint::TensorSliceWriter::Add(std::string const&, tensorflow::TensorShape const&, tensorflow::TensorSlice const&, int const): error: undefined reference to 'tensorflow::TensorShape::TensorShape(tensorflow::TensorShapeProto const&)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function tensorflow::Status tensorflow::checkpoint::TensorSliceWriter::Add(std::string const&, tensorflow::TensorShape const&, tensorflow::TensorSlice const&, int const): error: undefined reference to 'tensorflow::SavedTensorSliceMeta_defaultinstance' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function tensorflow::Status tensorflow::checkpoint::TensorSliceWriter::Add(std::string const&, tensorflow::TensorShape const&, tensorflow::TensorSlice const&, int const): error: undefined reference to 'tensorflow::TensorShapeProto_defaultinstance' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function tensorflow::Status tensorflow::checkpoint::TensorSliceWriter::Add(std::string const&, tensorflow::TensorShape const&, tensorflow::TensorSlice const&, float const): error: undefined reference to 'tensorflow::TensorShape::TensorShape(tensorflow::TensorShapeProto const&)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function tensorflow::Status tensorflow::checkpoint::TensorSliceWriter::Add(std::string const&, tensorflow::TensorShape const&, tensorflow::TensorSlice const&, float const): error: undefined reference to 'tensorflow::TensorShape::AsProto(tensorflow::TensorShapeProto) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function tensorflow::Status tensorflow::checkpoint::TensorSliceWriter::Add(std::string const&, tensorflow::TensorShape const&, tensorflow::TensorSlice const&, float const): error: undefined reference to 'tensorflow::TensorShape::TensorShape(tensorflow::TensorShapeProto const&)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function tensorflow::Status tensorflow::checkpoint::TensorSliceWriter::Add(std::string const&, tensorflow::TensorShape const&, tensorflow::TensorSlice const&, float const): error: undefined reference to 'tensorflow::SavedTensorSliceMeta_defaultinstance' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function tensorflow::Status tensorflow::checkpoint::TensorSliceWriter::Add(std::string const&, tensorflow::TensorShape const&, tensorflow::TensorSlice const&, float const): error: undefined reference to 'tensorflow::TensorShapeProto_defaultinstance' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function bool tensorflow::checkpoint::TensorSliceReader::CopySliceData(std::string const&, tensorflow::TensorSlice const&, int) const: error: undefined reference to 'tensorflow::TensorProto_defaultinstance' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function bool tensorflow::checkpoint::TensorSliceReader::CopySliceData(std::string const&, tensorflow::TensorSlice const&, int) const: error: undefined reference to 'tensorflow::SavedSlice_defaultinstance' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function bool tensorflow::checkpoint::TensorSliceReader::CopySliceData(std::string const&, tensorflow::TensorSlice const&, float) const: error: undefined reference to 'tensorflow::TensorProto_defaultinstance' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_tensor.o):save_restore_tensor.cc:function bool tensorflow::checkpoint::TensorSliceReader::CopySliceData(std::string const&, tensorflow::TensorSlice const&, float) const: error: undefined reference to 'tensorflow::SavedSlice_defaultinstance' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(save_restore_v2_ops.o):save_restore_v2_ops.cc:function tensorflow::SaveV2::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::BundleWriter::~BundleWriter()' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, int, false>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::IsFullyDefined() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, int, false>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::DebugString() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, int, false>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::InsertDim(int, long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, int, false>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::IsCompatibleWith(tensorflow::TensorShape const&) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, int, false>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::InsertDim(int, long long)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, int, false>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::DebugString() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, Eigen::QInt32, true>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::IsFullyDefined() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, Eigen::QInt32, true>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::DebugString() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, Eigen::QInt32, true>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::IsCompatibleWith(tensorflow::TensorShape const&) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, Eigen::QInt32, true>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::DebugString() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, tensorflow::bfloat16, true>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::IsFullyDefined() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, tensorflow::bfloat16, true>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::IsCompatibleWith(tensorflow::TensorShape const&) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, int, true>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::IsFullyDefined() const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayPackOrGatherOp<Eigen::ThreadPoolDevice, int, true>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::PartialTensorShape::IsCompatibleWith(tensorflow::TensorShape const&) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayConcatOp<Eigen::ThreadPoolDevice, Eigen::QUInt8>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::RemoveDim(int)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(tensor_array_ops.o):tensor_array_ops.cc:function tensorflow::TensorArrayConcatOp<Eigen::ThreadPoolDevice, int>::Compute(tensorflow::OpKernelContext): error: undefined reference to 'tensorflow::TensorShape::RemoveDim(int)' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(topk_op.o):topk_op.cc:function tensorflow::TTypes<int, 2u, int>::ConstTensor tensorflow::Tensor::flat_inner_dims<int, 2u>() const: error: undefined reference to 'tensorflow::Tensor::ComputeFlatInnerDims(long long) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(topk_op.o):topk_op.cc:function tensorflow::TTypes<float, 2u, int>::ConstTensor tensorflow::Tensor::flat_inner_dims<float, 2u>() const: error: undefined reference to 'tensorflow::Tensor::ComputeFlatInnerDims(long long) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(topk_op.o):topk_op.cc:function tensorflow::TTypes<int, 2u, int>::Tensor tensorflow::Tensor::flat_inner_dims<int, 2u>(): error: undefined reference to 'tensorflow::Tensor::ComputeFlatInnerDims(long long) const' C:/Projects/Android-Test1/facerecognitionlibrary/jni-build/jni/libs/armeabi-v7a/libandroid_tensorflow_kernels.lo(topk_op.o):topk_op.cc:function tensorflow::TTypes<float, 2u, int>::Tensor tensorflow::Tensor::flat_inner_dims<float, 2u>(): error: undefined reference to 'tensorflow::Tensor::ComputeFlatInnerDims(long long) const' tensorflow/core/framework/reader_base.cc:226: error: undefined reference to 'tensorflow::ReaderBaseState::Clear()' collect2.exe: error: ld returned 1 exit status make: *** [C:/Projects/Android-Test1/facerecognitionlibrary/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libtensorflow.so] Error 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Resolved the issue , deleted existing libandroid_tensorflow_kernels.lo as its not present in latest binary releases
I am using the prebuilt binaries and am using them in Android studio in windows 10 and have set it up according to https://github.com/Qualeams/Android-Face-Recognition-with-Deep-Learning-Library/issues/1 When I build the app , i get below errors
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':facerecognitionlibrary:externalNativeBuildRelease'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED