We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Error accur when build with android studio. How to fix it? 用android studio构建的时候出错。step都是一样的,不知道是哪里出了问题。求解
error infomation as follows:
Build command failed. Error while executing process C:\Users\Tongbao\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C E:\UserPeofile\Documents\AndroidProject\ncnn-android-styletransfer\app\.cxx\cmake\debug\arm64-v8a styletransferncnn} ninja: Entering directory `E:\UserPeofile\Documents\AndroidProject\ncnn-android-styletransfer\app\.cxx\cmake\debug\arm64-v8a' [1/2] Building CXX object CMakeFiles/styletransferncnn.dir/styletransferncnn_jni.cpp.o [2/2] Linking CXX shared library E:\UserPeofile\Documents\AndroidProject\ncnn-android-styletransfer\app\build\intermediates\cmake\debug\obj\arm64-v8a\libstyletransferncnn.so FAILED: E:/UserPeofile/Documents/AndroidProject/ncnn-android-styletransfer/app/build/intermediates/cmake/debug/obj/arm64-v8a/libstyletransferncnn.so cmd.exe /C "cd . && C:\Users\Tongbao\AppData\Local\Android\Sdk\ndk\20.0.5594570\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android24 --gcc-toolchain=C:/Users/Tongbao/AppData/Local/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/Tongbao/AppData/Local/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -shared -Wl,-soname,libstyletransferncnn.so -o E:\UserPeofile\Documents\AndroidProject\ncnn-android-styletransfer\app\build\intermediates\cmake\debug\obj\arm64-v8a\libstyletransferncnn.so CMakeFiles/styletransferncnn.dir/styletransferncnn_jni.cpp.o E:/UserPeofile/Documents/AndroidProject/ncnn-android-styletransfer/app/src/main/jni/ncnn-20221128-android-vulkan/arm64-v8a/lib/libncnn.a -fopenmp -static-openmp -Wl,-wrap,__kmp_affinity_determine_capable C:/Users/Tongbao/AppData/Local/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android/24/libvulkan.so E:/UserPeofile/Documents/AndroidProject/ncnn-android-styletransfer/app/src/main/jni/ncnn-20221128-android-vulkan/arm64-v8a/lib/libglslang.a E:/UserPeofile/Documents/AndroidProject/ncnn-android-styletransfer/app/src/main/jni/ncnn-20221128-android-vulkan/arm64-v8a/lib/libSPIRV.a E:/UserPeofile/Documents/AndroidProject/ncnn-android-styletransfer/app/src/main/jni/ncnn-20221128-android-vulkan/arm64-v8a/lib/libMachineIndependent.a E:/UserPeofile/Documents/AndroidProject/ncnn-android-styletransfer/app/src/main/jni/ncnn-20221128-android-vulkan/arm64-v8a/lib/libOGLCompiler.a E:/UserPeofile/Documents/AndroidProject/ncnn-android-styletransfer/app/src/main/jni/ncnn-20221128-android-vulkan/arm64-v8a/lib/libOSDependent.a -pthread E:/UserPeofile/Documents/AndroidProject/ncnn-android-styletransfer/app/src/main/jni/ncnn-20221128-android-vulkan/arm64-v8a/lib/libGenericCodeGen.a -landroid -ljnigraphics -llog -latomic -lm && cd ." clang++: error: unknown argument: '-static-openmp' ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Error accur when build with android studio. How to fix it?
用android studio构建的时候出错。step都是一样的,不知道是哪里出了问题。求解
error infomation as follows:
The text was updated successfully, but these errors were encountered: