How to install libiconv for android ndk?

拜拜、爱过 提交于 2019-12-10 16:48:54

问题


Can somebody teach me or point me to a tutorial on how to install libiconv for android? I've been googling for 3 days and I can't find a tutorial or a how-to.


回答1:


Grab the libiconv source, and make an Android.mk makefile. Look at this site for a prewritten makefile for libiconv and Android. Once you have the Android.mk file you can build using the ndk-build script.




回答2:


My guess is that you don't need iconv on Android. Android should be all UTF-8 everywhere, so there should be no need for character conversion. Maybe there are cases where you want your app to edit foreign files in all sorts of charsets, that's the only reason I can think of where an Android app would need iconv.

So instead of trying to include libiconv, perhaps you should just change whatever code you are using that requires libiconv so that it does not require it when running on Android.



来源:https://stackoverflow.com/questions/10004077/how-to-install-libiconv-for-android-ndk

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