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

Source: Internet
Author: User

Transferred from: 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 then there were lots of linking problems in Cocos2d-x projects The used to work fin E with previous versions of Xcode. The problems is related to the ARM of the architecture. After searching a while, I found hints to the solution, although I were missing a more step-by-step solution. So here it's how I solved it.

1) ADD linker flags for ARM architecture. In your target, select Build Settings > Linking > More Linker flags and set the following flags for Debug and Relea SE 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 D Ebug 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 Architecture

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.