Ask Your Question
0

Opencv4Android build error with arm64-v8a

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

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\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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

LiorA gravatar image

Solved it ?

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 1,187 times

Last updated: May 17 '20