Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在NDK下如何配置测试?我配置错误 #21

Open
Weiunli opened this issue Jun 19, 2022 · 0 comments
Open

在NDK下如何配置测试?我配置错误 #21

Weiunli opened this issue Jun 19, 2022 · 0 comments

Comments

@Weiunli
Copy link

Weiunli commented Jun 19, 2022

按照ollvm8的移植到ndk测试配置,把clang clang-12 clang++ clang-format文件复制到了.../Android/Sdk/ndk/23.../toolchains/llvm/prebuilt/linux-x86_64/bin文件夹下
然后编译过程中报错
请问怎么解决这个问题,是哪里配置不对吗?
报错信息如下:
Run Build Command:"/home/weidou/Android/Sdk/cmake/3.10.2.4988404/bin/ninja" "cmTC_e5967"
[1/2] Building C object CMakeFiles/cmTC_e5967.dir/testCCompiler.c.o
FAILED: CMakeFiles/cmTC_e5967.dir/testCCompiler.c.o
/home/weidou/Android/Sdk/ndk/ollvm12/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv7-none-linux-androideabi21 --gcc-toolchain=/home/weidou/Android/Sdk/ndk/ollvm12/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/weidou/Android/Sdk/ndk/ollvm12/toolchains/llvm/prebuilt/linux-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -fvisibility=hidden -mllvm -mba -mllvm -mba-prob=100 -mllvm -fla -mllvm -gle -fPIE -o CMakeFiles/cmTC_e5967.dir/testCCompiler.c.o -c testCCompiler.c
/home/weidou/Android/Sdk/ndk/ollvm12/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libLLVMX86CodeGen.so.12: cannot open shared object file: No such file or directory
ninja: build stopped: subcommand failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant