Sorry, it’s my mistake at the last weekend. You must using the edge version from github.
Please modify the cocos2dx/android.mk, drag to read the end of this file. My fault is make ndk-r5 as the default config here. Change to
#it is used for ndk-r4
LOCAL_LDLIBS := -L$(LOCAL_PATH)/platform/third_party/android/libraries \
-lGLESv1_CM -llog -lz \
-lpng \
-lxml2 \
-ljpeg \
-lskia
# it is used for ndk-r5
# because the new Windows toolchain doesn't support Cygwin's drive
# mapping (i.e /cygdrive/c/ instead of C:/)
# LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/platform/third_party/android/libraries) \
# -lGLESv1_CM -llog -lz \
# -lpng \
# -lxml2 \
# -ljpeg \
# -lskia
And then, you can compile it successfully on ndk r4 crystax version.
A better choice is to use our stable version, 0.8.1
The settings for R4 work perfectly out of the box with the MingW patch, please don’t get rid of ’em
(the patch makes it easy to use the NDK without Cygwin / MSys - see http://code.google.com/p/mingw-and-ndk/ )