• cocos2d-x在NDK r9下的编译问题


    Compile++ thumb  : cocos2dx_static <=CCCommon.cpp
    jni/../../../cocos2dx/platform/CCCommon.cpp:Infunction'void cocos2d::CCLog(char const*, ...)':
    jni/../../../cocos2dx/platform/CCCommon.cpp:177:69: error: format not a string literal andno format arguments [-Werror=format-security]
    cc1plus.exe: some warnings being treated as errors

    /cygdrive/d/Android-NDK/build/core/build-binary.mk:348: recipe for target `obj/local/armeabi/objs-debug/cocos2dx_static/platform/CCCommon.o' failed
    make: *** [obj/local/armeabi/objs-debug/cocos2dx_static/platform/CCCommon.o] Error 1
    make: Leaving directory `/cygdrive/e/client/OFF_Line/cocos2d-1.0.1-x-0.12.0/ShootArrow2_for_Renren/android'

    如果控制台输入了以上的错误信息,最好将NDK换回r8e版本
    或者
    Application.mk里面添加下面代码 APP_CPPFLAGS += -Wno-error=format-security

  • 相关阅读:
    [ext4]空间管理
    [ext4] 磁盘布局
    [ext4]磁盘布局
    [ext4]08 磁盘布局
    [ext4]07 磁盘布局
    [ext4]06 磁盘布局
    [ext4]05 磁盘布局
    jQuery之链式编程
    jQuery之排他思想
    jQuery之筛选方法
  • 原文地址:https://www.cnblogs.com/zbl3033/p/3419189.html
Copyright © 2020-2023  润新知