Coco2d-x linux编译
来源:互联网 发布:c语言实战演练 编辑:程序博客网 时间:2024/05/20 19:28
Linux Environment Setup
Linux development can be done either with Eclipse (and its managed make system) or with regular Makefiles. This pages describes the Makefile approach.
The Linux build of cocos2dx is mostly used unser Debian/Ubuntu-based systems. Use on other distributions will probably work fine but YMMV.
To build cocos2dx you need the following packages intalled:
The top level script "make-all-linux-project.sh" will check for these and attempt to install them for you.
Building
make-all-linux-project.sh will then do a clean build of all projects in both Debug and Release configuration. To build just one configurations you can just use 'make'. e.g.:
This will build all cocos2dx libraries and examples in debug mode. Libraries are build into the 'lib/linux/Debug' folder.
If you just want to build a single library or a single example just run 'make' from the proj.linux folder for that library or example. e.g:
Remember to add the -j argument when you run make to dramatically speed up your build time.
Running
The makefiles provided include a 'run' target which can be used to run the build executable. e.g.:
Creating a new project
One simple way to create a new project is to copy the 'samples/Cpp/HelloCpp/proj.linux' folder into your project. Once here you will need to edit parts of the Makefile accordingly (at the very least the SOURCES). If you are building outside the cocos2dx tree then you will need to set $COCOS2DX_ROOT either within your Makefile or in your environment.
- Coco2d-x linux编译
- coco2d-x-Win下配置编译ANDROID详细步骤
- MAC下的android环境编译coco2d-x,运行成功!
- coco2d-x环境搭建及编译(一)
- Coco2d-x-2.x和3.x创建工程以及编译安卓注意事项
- Coco2d-x-2.x和3.x创建工程以及编译android注意事项
- coco2d-x手记
- coco2d-x使用备忘录
- coco2d-x 动作类
- coco2d-x xuexi
- coco2d-x 纹理研究
- coco2d-x touch事件
- 安装coco2d-x
- coco2d-x内存优化
- coco2d-x坐标转换
- coco2d-x 纹理研究
- coco2d-x 纹理研究
- coco2d-x 纹理研究
- 远程登录linux 系统进入图形化界面
- SVN-Attempted to lock an already-locked dir错误
- 大学——能不能让自己成才
- 最长回文子串
- C++ 一些不容忽视的基础
- Coco2d-x linux编译
- 微信公众平台你的服务器没有正确响应Token验证的解决方法
- NoSQL学习之路(三):MongoDB Shell的使用
- 【UNIX】僵尸进程的处理
- SQL2005附加数据库出错 数据库版本为 655,无法打开。此服务器支持 611 版及更低版本。不支持降级路径。
- SAMBA SERVER 的搭建
- 遍历hashmap的键值一,通过 keySet()方法
- 电脑小问题搜集
- java中的对象和垃圾回收