Ask Your Question

Opencv4Android build error with arm64-v8a

asked 2020-05-03 09:01:40 -0500

fabio-C gravatar image

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\
..\..\..\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/] 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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-05-17 07:07:32 -0500

LiorA gravatar image

Solved it ?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-05-03 09:01:40 -0500

Seen: 207 times

Last updated: May 17