Cmakelists.txt file compiles ncnn and CPP and runs normally on the other two Ubuntu machines.
Similarly, the source code is configured, the project is loaded, and the gradle initialization is correct, but there is an error in compiling APK.
clang++: error: unknown argument: ‘-static-openmp’
After searching for a long time, I can’t see the wrong configuration. I doubt the gradle version. The problem remains after the upgrade; Upgrade the as version, and the problem still occurs.
Open settings, SDK configuration, check SDK tools, and reinstall SDK. The latest SDK 23.0 is installed at once. The error disappears, but there is still a problem with the compilation. It is reduced to SDK 20.0, and the error occurs again.
High or low, choose ndk21.3 and cmake3.10.2. Finally, the compilation is normal and the debugging is passed.
Read More:
- (resolved) Xcode running error: clang: error: unknown argument: ‘- WebSockets’
- Failed to import static file of vue3 static resource. There is no static folder
- [Qt] error: call to non-static member function without an object argument
- “Not a valid NDK directory” appears when eclipse ADT selects the NDK directory
- Nuxt cannot find the static resource in static
- Start react-native after updating Xcode11 and report an error: Unknown argument type ‘_attribute_’ in method -[RCTAppState getCurren
- non-static variable this cannot be referenced from a static context
- RuntimeError – [Xcodeproj] Unknown object version.
- Fedora32 start container error – OCI runtime create failed: This version of runc doesn’t work on cgroups V2: unknown
- Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android
- Android studio NDK setting is gray and cannot be solved
- This version of chromedriver only supports chrome version 92 crawler simulates the problem of Google plug-in version when the browser clicks and reports an error
- The binary version of its metadata is 1.5.1, expected version is 1.1.16
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- iOS clang: error: linker command failed with exit code 1 (use -v to see invocation)
- The problem of MAC switching JDK version and RN Android JDK version leads to compilation failure. Solve it
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Error: Command ‘/ usr / bin / clang’ failed with exit status 1 solution for Mac OS installation
- Xcode ffmpeg Error:/clang:1:1: linker command failed with exit code 1 (use -v to see invocation)
- [solved] runtimeerror: module compiled against API version 0xc but this version of numpy is 0xb