Skip to content

TF lite has link error when I try to build with build_rpi_lib.sh #25120

@adppark

Description

@adppark

When I try to build for Tensorflow lite(in latest version) occur link error like this.

/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv7l/lib/libtensorflow-lite.a(nnapi_delegate.o): In function tflite::NNAPIAllocation::~NNAPIAllocation()': nnapi_delegate.cc:(.text+0x2c): undefined reference to NnApiImplementation()'
/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv7l/lib/libtensorflow-lite.a(nnapi_delegate.o): In function tflite::NNAPIAllocation::NNAPIAllocation(char const*, tflite::ErrorReporter*)': nnapi_delegate.cc:(.text+0x110): undefined reference to NnApiImplementation()'
/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv7l/lib/libtensorflow-lite.a(nnapi_delegate.o): In function tflite::NNAPIDelegate::~NNAPIDelegate()': nnapi_delegate.cc:(.text+0x190): undefined reference to NnApiImplementation()'
nnapi_delegate.cc:(.text+0x1b4): undefined reference to NnApiImplementation()' /tensorflow/tensorflow/lite/tools/make/gen/rpi_armv7l/lib/libtensorflow-lite.a(nnapi_delegate.o): In function tflite::addTensorOperands(tflite::Subgraph*, ANeuralNetworksModel*, unsigned int*, std::vector<long long, std::allocator >*)':
nnapi_delegate.cc:(.text+0x214): undefined reference to NnApiImplementation()' /tensorflow/tensorflow/lite/tools/make/gen/rpi_armv7l/lib/libtensorflow-lite.a(nnapi_delegate.o):nnapi_delegate.cc:(.text+0x504): more undefined references to NnApiImplementation()' follow
collect2: error: ld returned 1 exit status

how can I fix it?

Metadata

Metadata

Labels

comp:liteTF Lite related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions