Hi!
I have a problem building iconv in android-ndk
I did it as you said but made many errors when building.
The following is what I did.
1. downloaded libiconv-1.14.tar.gz from
http://www.gnu.org/software/libiconv/.
2. extracted to d:/testLibIconv/jni/
4. succeeded in ./configure & make & make install in cygwin.
3. made Application.mk and Android.mk in d:/testLibIconv/jni
- in Application.mk
APP_ABI := armeabi-v7a
APP_OPTIM := debug
APP_STL := gnustl_static
APP_CPPFLAGS := -fexceptions -frtti
- in Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := lib/iconv.c \
libcharset/lib/localcharset.c \
lib/relocatable.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include \
$(LOCAL_PATH)/libcharset \
$(LOCAL_PATH)/libcharset/include
LOCAL_CFLAGS := \
-DLIBDIR=\"\"
LOCAL_MODULE:= iconv
include $(BUILD_SHARED_LIBRARY)
3. In cygwin,
$ cd /cygdrive/d:/testLibIconv/jni
$ ndk-build
but so many errors occured.
Did I miss something?
I am using android-ndk-r8.
I am working with it for four days.
Please Help me.
Thank you,
Best Regards,
Adam.
2012년 5월 15일 화요일 오후 4시 37분 35초 UTC+8, CHDevelop 님의 말: