cocos2dx移植android
文章平均质量分 65
zerobyte0
这个作者很懒,什么都没留下…
展开
-
cocos2dx移植编译报错
1.error: format not a string literal and no format arguments[-Wrror=format-security];原因:android-ndk-r9与Eclipse版本不兼容解决方案:a. 在该项目的proj.android/jni/Application.mk文件中添加一句话:APP_CFLAGS += -Wno-error=for转载 2015-11-09 15:53:23 · 167 阅读 · 0 评论 -
C++ 调用 Java 返回String类型
java代码private static String getString(){return string;}C++代码static string getDeviceModelJNI() { string retValue = "";#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)原创 2015-12-09 16:29:16 · 479 阅读 · 0 评论