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.