搭建cocos2d-x环境遇到的各种问题

//=================================================
updating...

//=================================================
引用
08-06 18:50:45.323: E/AndroidRuntime(413): FATAL EXCEPTION: GLThread 10
08-06 18:50:45.323: E/AndroidRuntime(413): java.lang.IllegalArgumentException: No configs match configSpec
08-06 18:50:45.323: E/AndroidRuntime(413): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:763)
08-06 18:50:45.323: E/AndroidRuntime(413): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:919)
08-06 18:50:45.323: E/AndroidRuntime(413): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1264)
08-06 18:50:45.323: E/AndroidRuntime(413): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)

需要开启模拟器的gpu加速,但mac环境下一直没有找到这个选项。。放弃模拟器,改用虚拟机。。虚拟机再不行就用真机。。。。

//=================================================
新建android项目,测试时报
引用
library game not found

原因是加载native activities必须要API9以后才支持(即2.3),而我用的是2.2的模拟器。。

//=================================================
执行build_native.sh无法编译libgame.so,提示
引用
fatal error: android/asset_manager.h: No such file or directory


修改项目jni/Application.mk,在最下面增加一行:
APP_PLATFORM := android-14

你可能感兴趣的:(cocos2d-x)