Building native library with standalone toolchain android arm

假装没事ソ 提交于 2019-12-04 07:26:20

I had to add an implementation of the swab function, since the NDK does not have that one. Afterwards this compiled fine (but I used the crystax ndk).

A better way toolwise was to just use a Android.mk file and use ndk-build to compile it.

Linker error from the bottom of your question occurs because make-standalone-toolchain.sh from NDK r7 creates incomplete toolchain (it misses some libraries including libsupc++.a). I recommend you try making a toolchain from one of previous NDK releases (r6b should be fine).

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