cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.16k stars 7.05k forks source link

[QUESTION] 3.11 Why we got these "may crash " and "Unsupported source file extensions" warnings, when compile android project with build_native.py #15643

Open liuyi opened 8 years ago

liuyi commented 8 years ago

yiliudeMac-mini:proj.android yiliu$ python build_native.py -b debug /Volumes/data/work/git/play2math/dev/frameworks/runtime-src/proj.android/../../cocos2d-x Parse NDK version from file /Volumes/data/dev_programs/android-ndk-r10e/RELEASE.TXT failed. NDK_TOOLCHAIN_VERSION: 4.9 Your application may crash when using c++ 11 regular expression with NDK_TOOLCHAIN_VERSION 4.9 /Volumes/data/dev_programs/android-ndk-r10e/ndk-build -j1 -C /Volumes/data/work/git/play2math/dev/frameworks/runtime-src/proj.android NDK_DEBUG=1 NDK_MODULE_PATH=/Volumes/data/work/git/play2math/dev/frameworks/runtime-src/proj.android/../../cocos2d-x/..:/Volumes/data/work/git/play2math/dev/frameworks/runtime-src/proj.android/../../cocos2d-x:/Volumes/data/work/git/play2math/dev/frameworks/runtime-src/proj.android/../../cocos2d-x/external:/Volumes/data/work/git/play2math/dev/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos NDK_TOOLCHAIN_VERSION=4.9 Android NDK: WARNING: Unsupported source file extensions in /Volumes/data/work/git/play2math/dev/frameworks/runtime-src/proj.android/../../cocos2d-x/cocos/scripting/js-bindings/proj.android/Android.mk for module cocos2d_js_static

My questions: 1,Which version of NDK we should choices? 2, How to fix "Unsupported source file extensions"?

cmzx3444 commented 8 years ago

Android.mk in your LOCAL_SRC_FILES?

minggo commented 8 years ago

We recommend to use NDK r10c. What's your Android.mk?

minggo commented 8 years ago

How to reproduce it?