我目前正在为ARM处理器交叉编译张量流lite(版本:1.12.2)。 在交叉编译的过程中,我完成了以下三个步骤:
构建“ GoogleTest”源代码和
将头文件和共享库( libgtest_main.so , libgtest.so )复制到 / usr / include 和<分别是strong> / usr / lib 。
更改了Makefile CXXFLAGS := -O3 -DNDEBUG -fPIC -flax-vector-conversions -fomit-frame-pointer -lgtest
随着上述步骤出现以下错误...
获取错误:
/usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libgtest.so when searching for -lgtest
/usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/bin/ld: skipping incompatible //usr/lib/libgtest.so when searching for -lgtest
/usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/bin/ld: cannot find -lgtest
collect2: error: ld returned 1 exit status
tensorflow/lite/tools/make/Makefile:284: recipe for target '/home/aiiec/ARMNN/tensorflow_lite_build/tensorflow/tensorflow/lite/tools/make/gen/aarch64_armv8-a/bin/benchmark_model' failed
make: ***
[/home/aiiec/ARMNN/tensorflow_lite_build/tensorflow/tensorflow/lite/tools/make/gen/aarch64_armv8-a/bin/benchmark_model] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libgtest.so when searching for -lgtest
/usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/bin/ld: skipping incompatible //usr/lib/libgtest.so when searching for -lgtest
/usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/bin/ld: cannot find -lgtest
collect2: error: ld returned 1 exit status
tensorflow/lite/tools/make/Makefile:270: recipe for target
'/home/aiiec/ARMNN/tensorflow_lite_build/tensorflow/tensorflow/lite/tools/make/gen/aarch64_armv8-a/bin/minimal' failed
make: *** [/home/aiiec/ARMNN/tensorflow_lite_build/tensorflow/tensorflow/lite/tools/make/gen/aarch64_armv8-a/bin/minimal] Error 1
请帮助我解决以上错误。
感谢您的宝贵时间。