Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv4Android build error with arm64-v8a

I succesfully build Opencv 3.4.1 for Android for target armeabi-v7a.

But when in CMAKE I specify target ANDROID_ABI: arm64-v8a, I got this error at the end on build process:

[100%] Linking CXX shared library ..\..\..\lib\arm64-v8a\libopencv_java3.so
..\..\..\lib\arm64-v8a\libopencv_flann.a: error adding symbols: Archive has no index; run ranlib to add one
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
mingw32-make[2]: *** [modules\java\jni\CMakeFiles\opencv_java.dir\build.make:228: lib/arm64-v8a/libopencv_java3.so] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2036: modules/java/jni/CMakeFiles/opencv_java.dir/all] Error 2
mingw32-make: *** [Makefile:182: all] Error 2

Any idea?


Windows 10, CMAKE, NDK21, mingw-w64