并且在Android.mk加入了
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
$(LOCAL_PATH)/../../cocos2dx \
$(LOCAL_PATH)/../../platform \
$(LOCAL_PATH)/../../include \
$(LOCAL_PATH)/../../CocosDenshion/include \
$(LOCAL_PATH)/../../cocos2dx/layers_scenes_transitions_nodes \
$(LOCAL_PATH)/../../../iconv \
$(LOCAL_PATH)/../../../iconv/include \
$(LOCAL_PATH)/../../../iconv/libcharset \
$(LOCAL_PATH)/../../../iconv/libcharset/lib \
$(LOCAL_PATH)/../../../iconv/libcharset/include
LOCAL_WHOLE_STATIC_LIBRARIES := iconv cocos2dx_static cocosdenshion_static cocos_extension_static
include $(BUILD_SHARED_LIBRARY)
$(call import-module,CocosDenshion/android) \
$(call import-module,cocos2dx) \
$(call import-module,extensions) \
$(call import-module,iconv)
但是使用cygwin sh的时候,报错
iconv/lib/iconv_open1.h:167: error: undefined reference to 'locale_charset'
请问是为什么啊?谢谢大家了。谢谢
1 个解决方案
#1
LOCAL_WHOLE_STATIC_LIBRARIES := iconv cocos2dx_static cocosdenshion_static cocos_extension_static
这段代码中的iconv 是多余的
这段代码中的iconv 是多余的
#1
LOCAL_WHOLE_STATIC_LIBRARIES := iconv cocos2dx_static cocosdenshion_static cocos_extension_static
这段代码中的iconv 是多余的
这段代码中的iconv 是多余的