How to install libiconv for android ndk?

2019-06-26 07:45发布

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.

2条回答
虎瘦雄心在
2楼-- · 2019-06-26 08:27

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.

查看更多
SAY GOODBYE
3楼-- · 2019-06-26 08:38

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.

查看更多
登录 后发表回答