Forum Discussion
SSstupid
Dec 27, 2022Copper Contributor
How to build openCV with Android??
[Android] [Azure pipeline]
I try to build openCV library with android app(this app use openCV Library)
expected order
1. "chmod +x gradlew"
2. install JDK Ver.11
3. Gradle(assembleDebug) << === Error is here
> Task :app:checkDebugAarMetadata
WARNING: [XmlResourcesTransformer] No mapping for: android/support/FILE_PROVIDER_PATHS
> Task :opencv:compileDebugJavaWithJavac
warning: [options] source value 6 is obsolete and will be removed in a future release
warning: [options] target value 1.6 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
> Task :opencv:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 warnings
> Task :app:processDebugJavaRes NO-SOURCE
> Task :opencv:processDebugJavaRes NO-SOURCE
> Task :opencv:bundleLibResDebug NO-SOURCE
> Task :app:configureNdkBuildDebug[arm64-v8a] FAILED
C/C++: fcntl(): Bad file descriptor
C/C++: /Users/runner/Library/Android/sdk/ndk/23.0.7599858/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
* What went wrong:
Execution failed for task ':app:configureNdkBuildDebug[arm64-v8a]'.
> [CXX1405] error when building with ndkBuild using /Users/runner/work/1/s/app/src/main/jni/Android.mk: Build command failed.
Error while executing process /Users/runner/Library/Android/sdk/ndk/23.0.7599858/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/runner/work/1/s/app/src/main/jni/Android.mk
Android NDK: ERROR:/Users/runner/work/1/s/app/src/main/jni/Android.mk:opencv_java4: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that /Users/runner/work/1/s/app/src/main/jni/opencv/../libs/arm64-v8a/libopencv_java4.so exists or that its path is correct
++ I don`t know Android and macOS and Window...(I have been only C# - MAUI)
I have to make pipeline about apps of (Android, MacOS, Window, iOS)
It not gonna be easy KKK
No RepliesBe the first to reply