Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

编译Paddle Android demo,在生成inference时,make出现错误 #71

@breaknormal1

Description

@breaknormal1

参照 安卓文档,在进行第二步 make时提示下面的错误:

root@wyf-virtual-machine:/home/wyf/Paddle-Android/Mobile/benchmark/tool/C/build# make
Scanning dependencies of target inference
[100%] Building CXX object CMakeFiles/inference.dir/inference.cc.o
Linking CXX executable inference
/home/wyf/Paddle-Android/arm64_standalone_toolchain/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lprotobuf
collect2: error: ld returned 1 exit status
make[2]: *** [inference] 错误 1
make[1]: *** [CMakeFiles/inference.dir/all] 错误 2
make: *** [all] 错误 2

然后参考了 Fix linking problem of protobuf-3.2,但没有看明白怎样修改的CMakeLists.txt,我的 ANDROID_ABI = arm64-v8a,能否较详细说下怎样修改呢?谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions