标签:
1.导入一个新项目步奏:
解决方案:右键->添加->添加现有项目->
添加依赖项目libCocoStudio
D:\work\CannonDefender\cocos2d\cocos\editor-support\cocostudio\proj.win32
添加依赖项目libExtensions
D:\work\CannonDefender\cocos2d\extensions\proj.win32
添加依赖项目libGUI
D:\work\CannonDefender\cocos2d\cocos\ui\proj.win32
2.项目右键选择引用 添加需要的引用
3.解决方案->添加项目依赖项->选择新加的依赖项
4.某项目右键->引用->添加新引用->选择新加的依赖项
5.往vs2012安装文件E:\vs2012\VC\include添加两个文件jni.h jni_md.h
6.调试->项目属性->配置属性->c/c++->附加包含目录->$(EngineRoot)cocos\audio\include;$(EngineRoot)external;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;..\Classes;..;$(EngineRoot)cocos\editor-support;$(EngineRoot);%(AdditionalIncludeDirectories)
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
return glSurfaceView;
}
标签:
原文地址:http://www.cnblogs.com/xyida/p/4326080.html