Cocos2d-x v3.x and Xcode 6.x with ARM 64 Architecture
转自:http://becomingindiedev.blogspot.com.es/2014/12/cocos2d-x-v3x-and-xcode-6x-with-arm-64.html
Hi!
When I upgraded to Xcode 6, I noticed that there were lots of linking problems in Cocos2d-x projects that used to work fine with previous versions of Xcode. The problems are related to the ARM 64 architecture. After searching a while, I found hints to the solution, although I was missing a more step-by-step solution. So here it is how I solved it.
1) Add linker flags for ARM 64 architecture. In your target, select Build Settings > Linking > Other Linker Flags and set the following flags for Debug and Release for arm64 architecture:
-ljpeg_arm64
-lcurl_arm64
-lpng_arm64
-ltiff_arm64
-lwebp_arm64
-lwebsockets_arm64
-lfreetype_arm64
EDIT: this is no longer required from Cocos2d-x v3.4.
2) Add library paths. In your target, select Build Settings > Search Paths > Library Search Paths, and write the following directory for Debug and Release.
YourProjectPath/cocos2d/external
And don't forget to set "recursive".
Hope it's useful. See you!
FM
最新文章
- [LeetCode] Odd Even Linked List 奇偶链表
- OpenStack 行业正进入拓展期:行业云将成为新一轮工业革命的基础设施和引擎
- .Net Globalization and Localization
- WCF学习笔记之消息交换模式
- 用Backbone.js创建一个联系人管理系统(二)
- ubuntu的web开发环境搭建
- python 下的数据结构与算法---5:递归(Recursion)
- Codeforces Round #248 (Div. 1)——Ryouko&;#39;s Memory Note
- Nimbus<;一>;Storm系列(五)架构分析之Nimbus启动过程
- mac攻略(4) -- 使用brew配置php7开发环境(mac+php+apache+mysql+redis)
- Python中type和object
- phpstorm2018激活方法
- Java_myBatis_一对多映射
- 【Python52--爬虫1】
- Paper Reading: Perceptual Generative Adversarial Networks for Small Object Detection
- MySQL数据库order by 奇慢无比
- Ubuntu 16.04实现SSH无密码登录/免密登录/自动登录(ssh-keygen/ssh-copy-id)
- 使用google chart api生成报表图片
- java作用域public ,private ,protected 及不写时的区别
- Cocos2d-JS实现的贪吃蛇