码迷,mamicode.com
首页 > 其他好文 > 详细

Cocos2d-x v3.x and Xcode 6.x with ARM 64 Architecture

时间:2015-03-14 13:39:11      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:

转自: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

 

Cocos2d-x v3.x and Xcode 6.x with ARM 64 Architecture

标签:

原文地址:http://www.cnblogs.com/sevenyuan/p/4337365.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!