您的位置:首页 > 移动开发 > Cocos引擎

Cocos2dx Cygwin编译-格式问题“CocosDenshion/android/SimpleAudioEngine” make error解决方法

2014-02-11 13:53 691 查看
Problem:

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐