2020-9-17 11:55
我这回用android studio 和自带的cmake编译,按着你上面的流程来,总数报找不到clang对应的指令
Determining if the CXX compiler works failed with the following output:
Change Dir: D:/develop/test/voicer-master/app/.cxx/cmake/debug/armeabi-v7a/CMakeFiles/CMakeTmp
Run Build Command:"D:\develop\AndroidSDK\sdk\cmake\3.10.2.4988404\bin\ninja.exe" "cmTC_b4aed"
[1/2] Building CXX object CMakeFiles/cmTC_b4aed.dir/testCXXCompiler.cxx.o
FAILED: CMakeFiles/cmTC_b4aed.dir/testCXXCompiler.cxx.o
D:\develop\android-ndk\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi16 --gcc-toolchain=D:/develop/android-ndk/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/develop/android-ndk/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -mllvm -sub -mllvm -bcf -mllvm -fla -fPIE -o CMakeFiles/cmTC_b4aed.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
clang (LLVM option parsing): Unknown command line argument '-sub'. Try: 'clang (LLVM option parsing) -help'
clang (LLVM option parsing): Did you mean '-mv5'?
clang (LLVM option parsing): Unknown command line argument '-bcf'. Try: 'clang (LLVM option parsing) -help'
clang (LLVM option parsing): Did you mean '-mv5'?
clang (LLVM option parsing): Unknown command line argument '-fla'. Try: 'clang (LLVM option parsing) -help'
clang (LLVM option parsing): Did you mean '-help'?
ninja: build stopped: subcommand failed.