OpenCV Android native code build issue

☆樱花仙子☆ 提交于 2019-12-01 17:43:40

Instead of downgrading to NDK14 from NDK16 you can still do with NDK16 by adding following to the CMakeLists.txt before add_library() :

set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a")

Copied from this discussion on a github issue

I reverted to NDK 14.1.3816874 instead of using the currently latest NDK 16.1.4479499, and the errors have disappeared.

The older NDK you can find here: https://developer.android.com/ndk/downloads/older_releases.html

I hope this helps!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!