Android NDK: WARNING: APP_PLATFORM android-18 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml "
"Android NDK: WARNING:/Users/linyou/Documents/cocos2d-x/F10Attack/proj.android/../../cocos2dx""/Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static libraries
"Compile++ thumb : cocosdenshion_static <= SimpleAudioEngine.cpp"
"/Users/linyou/Documents/cocos2d-x/F10Attack/proj.android/../../CocosDenshion/android/SimpleAudioEngine.cpp: In constructor 'CocosDenshion::SimpleAudioEngine::SimpleAudioEngine()':
/Users/linyou/Documents/cocos2d-x/F10Attack/proj.android/../../CocosDenshion/android/SimpleAudioEngine.cpp:77:2: error: format not a string literal and no format arguments [-Werror=format-security]"
"cc1plus: some warnings being treated as errors"
"make: *** [obj/local/armeabi/objs/cocosdenshion_static/SimpleAudioEngine.o] Error 1
Can you help me? thanks!
Solution:
NDK r9 is the builder,the makelog code will be ERRORs. Maybe the cocos2dx team don't take notice of it.Want to fix it, Just delete it.
通过定位,发现所有报错的行都含有LOGD语句,可能是字符串格式导致的问题。可能还会有更多类似的报错,将对应的行注释掉即可。
from Stack Overflow http://stackoverflow.com/questions/18278932/cocosdenshion-android-simpleaudioengine-make-error