Open Weiunli opened 2 years ago
按照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.
按照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.