7 个解决方案
#1
问题已解决,现给出解决方案:
下一个iconv库放到跟Classes同级目录,然后在iconv库根目录下编写Android.mk文件,内容:
LOCAL_PATH:= $(call my-dir)
#libiconv.so
include $(CLEAR_VARS)
LOCAL_MODULE := libiconv
LOCAL_CFLAGS := \
-Wno-multichar \
-DAndroid \
-DLIBDIR="c" \
-DBUILDING_LIBICONV \
-DIN_LIBRARY
LOCAL_SRC_FILES := \
libcharset/lib/localcharset.c \
lib/iconv.c \
lib/relocatable.c
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/libcharset \
$(LOCAL_PATH)/lib \
$(LOCAL_PATH)/libcharset/include \
$(LOCAL_PATH)/srclib
include $(BUILD_STATIC_LIBRARY)
在Classes目录下的Android.mk文件里加入:
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/../iconv/include \
$(LOCAL_PATH)/../libiconv/libcharset \
$(LOCAL_PATH)/../libiconv/lib \
$(LOCAL_PATH)/../libiconv/libcharset/include \
$(LOCAL_PATH)/../libiconv/srclib \
$(LOCAL_PATH)/../iconv
LOCAL_WHOLE_STATIC_LIBRARIES += libiconv
$(call import-module,iconv)
这样就可以了~~
下一个iconv库放到跟Classes同级目录,然后在iconv库根目录下编写Android.mk文件,内容:
LOCAL_PATH:= $(call my-dir)
#libiconv.so
include $(CLEAR_VARS)
LOCAL_MODULE := libiconv
LOCAL_CFLAGS := \
-Wno-multichar \
-DAndroid \
-DLIBDIR="c" \
-DBUILDING_LIBICONV \
-DIN_LIBRARY
LOCAL_SRC_FILES := \
libcharset/lib/localcharset.c \
lib/iconv.c \
lib/relocatable.c
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/libcharset \
$(LOCAL_PATH)/lib \
$(LOCAL_PATH)/libcharset/include \
$(LOCAL_PATH)/srclib
include $(BUILD_STATIC_LIBRARY)
在Classes目录下的Android.mk文件里加入:
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/../iconv/include \
$(LOCAL_PATH)/../libiconv/libcharset \
$(LOCAL_PATH)/../libiconv/lib \
$(LOCAL_PATH)/../libiconv/libcharset/include \
$(LOCAL_PATH)/../libiconv/srclib \
$(LOCAL_PATH)/../iconv
LOCAL_WHOLE_STATIC_LIBRARIES += libiconv
$(call import-module,iconv)
这样就可以了~~
#2
LZ你好,我现在也遇到了这个问题。你可以把iconv库发给我么?不是官网上面原生的那个
#3
Android NDK: jni/Android.mk: Cannot find module with tag 'iconv' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
jni/Android.mk:44: *** Android NDK: Aborting. . Stop.
照你的做,出现如此问题,求救
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
jni/Android.mk:44: *** Android NDK: Aborting. . Stop.
照你的做,出现如此问题,求救
#4
方便给个iconv库的链接吗?,遇到这个问题好头痛啊
#5
把iconv目录拷贝到cocos2dx根目录下,即可
#6
http://codingnow.cn/cocos2d-x/1038.html
#7
楼主,方便加个QQ吗? 我按照你的步骤就是编译不过
#1
问题已解决,现给出解决方案:
下一个iconv库放到跟Classes同级目录,然后在iconv库根目录下编写Android.mk文件,内容:
LOCAL_PATH:= $(call my-dir)
#libiconv.so
include $(CLEAR_VARS)
LOCAL_MODULE := libiconv
LOCAL_CFLAGS := \
-Wno-multichar \
-DAndroid \
-DLIBDIR="c" \
-DBUILDING_LIBICONV \
-DIN_LIBRARY
LOCAL_SRC_FILES := \
libcharset/lib/localcharset.c \
lib/iconv.c \
lib/relocatable.c
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/libcharset \
$(LOCAL_PATH)/lib \
$(LOCAL_PATH)/libcharset/include \
$(LOCAL_PATH)/srclib
include $(BUILD_STATIC_LIBRARY)
在Classes目录下的Android.mk文件里加入:
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/../iconv/include \
$(LOCAL_PATH)/../libiconv/libcharset \
$(LOCAL_PATH)/../libiconv/lib \
$(LOCAL_PATH)/../libiconv/libcharset/include \
$(LOCAL_PATH)/../libiconv/srclib \
$(LOCAL_PATH)/../iconv
LOCAL_WHOLE_STATIC_LIBRARIES += libiconv
$(call import-module,iconv)
这样就可以了~~
下一个iconv库放到跟Classes同级目录,然后在iconv库根目录下编写Android.mk文件,内容:
LOCAL_PATH:= $(call my-dir)
#libiconv.so
include $(CLEAR_VARS)
LOCAL_MODULE := libiconv
LOCAL_CFLAGS := \
-Wno-multichar \
-DAndroid \
-DLIBDIR="c" \
-DBUILDING_LIBICONV \
-DIN_LIBRARY
LOCAL_SRC_FILES := \
libcharset/lib/localcharset.c \
lib/iconv.c \
lib/relocatable.c
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/libcharset \
$(LOCAL_PATH)/lib \
$(LOCAL_PATH)/libcharset/include \
$(LOCAL_PATH)/srclib
include $(BUILD_STATIC_LIBRARY)
在Classes目录下的Android.mk文件里加入:
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/../iconv/include \
$(LOCAL_PATH)/../libiconv/libcharset \
$(LOCAL_PATH)/../libiconv/lib \
$(LOCAL_PATH)/../libiconv/libcharset/include \
$(LOCAL_PATH)/../libiconv/srclib \
$(LOCAL_PATH)/../iconv
LOCAL_WHOLE_STATIC_LIBRARIES += libiconv
$(call import-module,iconv)
这样就可以了~~
#2
LZ你好,我现在也遇到了这个问题。你可以把iconv库发给我么?不是官网上面原生的那个
#3
Android NDK: jni/Android.mk: Cannot find module with tag 'iconv' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
jni/Android.mk:44: *** Android NDK: Aborting. . Stop.
照你的做,出现如此问题,求救
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
jni/Android.mk:44: *** Android NDK: Aborting. . Stop.
照你的做,出现如此问题,求救
#4
方便给个iconv库的链接吗?,遇到这个问题好头痛啊
#5
把iconv目录拷贝到cocos2dx根目录下,即可
#6
http://codingnow.cn/cocos2d-x/1038.html
#7
楼主,方便加个QQ吗? 我按照你的步骤就是编译不过