ARM-software / armnn

Arm NN ML Software. The code here is a read-only mirror of https://review.mlplatform.org/admin/repos/ml/armnn
https://developer.arm.com/products/processors/machine-learning/arm-nn
MIT License
1.15k stars 307 forks source link

Compile error for Build TFlite Delegate #594

Closed xiaotongnii closed 2 years ago

xiaotongnii commented 2 years ago

aim at: Build the TfLite Delegate (Stand-Alone) ref from:https://github.com/ARM-software/armnn/blob/branches%2Farmnn_21_02/delegate/BuildGuideNative.md env: 1) ubuntu18.04(x86) 2) tensorflow-2.3.1 -build success 3) flatbuffers-1.12.0-build arm64 success 4) compute library_21.02 -build success scons arch=arm64-v8a neon=1 opencl=1 embed_kernels=1 extra_cxx_flags="-fPIC" benchmark_tests=0 validation_tests=0 -j8 internal_only=0 5)build armnn 21.02 success

CXX=arrch64-linux-gnu-g++ CC=aarch64-linux-gnu-gcc  cmake .. -DARMCOMPUTE_ROOT=$BASEDIR/ComputeLibrary -DARMCOMPUTENEON=1 -DBUILD_UNIT_TESTS=0 
make

6) build tflte delegate

CXX=arrch64-linux-gnu-g++ CC=aarch64-linux-gnu-gcc cmake .. -DTENSORFLOW_LIB_DIR=$BASEDIR/tensorflow/bazel-bin -DTENSORFLOW_ROOT=$BASEDIR/tensorflow -DTFLITE_LIB_ROOT=$BASEDIR/tensorflow/bazel-bin -DFLATBUFFERS_ROOT=$BASEDIR/flatbuffers/install -DArmnn_DIR=$BASEDIR/armnn/build -DARMNN_SOURCE_DIR=$BASEDIR/armnn
make

error Info: /usr/lib/gcc-cross/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/bin/ld:**skipping incompatible /home/*/delegate/tensorflow/bazel-bin/libtensorflow_lite_all.so when searching for -ltensorflow_lite_all /usr/lib/gcc-cross/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/bin/ld: cannot find -ltensorflow_lite_all

look at dirctory,libtensorflow_lite_all.so is exist:

ls ../../../tensorflow-bazel-bin
libtensorflow_lite_all.so

please give me some advice to slove it,thanks。

xiaotongnii commented 2 years ago

sorry,Duplicate commit,closed。