NDK Environmental issues in COCOS2DX

Source: Internet
Author: User

A few days ago, the project will be on-line, but the day before the launch, the sudden problem is always a fatal blow, the project team has not been equipped with Android 5.0 system mobile phone, has a buddy son installed a bit after the discovery as long as the HTTP request, there is no return. So see Cocos in HttpClient Source, step by step log in (Eclipse has Java and C + + code, breakpoint debugging only advisable one, really egg pain), the result is baffled, why did not enter the HTTP sub-thread it? After a half-day analysis, I think it should be a libcurl problem. and Libcurl exists in the form of a static library, Why in the android4.x, there is no problem on the 5.x, the first thought is that Libcurl for Android 4.x support is not in place, so download cocos2dx3.5 version, will libcurl the library to replace, and then compile and run, excited to see half a day, the result is still no return value.

So the Internet Lookup Forum was mentioned is the NDK compiler environment problem, ah, the compilation environment of the different compiled static library will certainly have a slightly different. So decisively download the NDK r10c version, compiled ... Wipe, compile error, after query cocos2dx3.5 found that the compiler is the NDK r10d, download an NDK and then unzip after the compilation run took nearly one hours, if the change to r10d is not another one hours, And my entire engine is using 3.2 version, will not be the other compile error, this is a sad thing, the open Source engine is not so much an engine, rather a code base to calculate, there is no mature solution, basically rely on third-party tools. This time I deeply realized that open source free things in the process of doing the project is heartbreaking.

Take a deep breath and tell yourself that this will definitely find a way out. Then began to analyze:

1 cocos2dx3.2 corresponds to NDK r9c

2, cocos2dx3.5 corresponding to the NDK r10d

Just tried to find the NDK r10c compile time on 3.2 and 3.5 have a problem, what to do, compromise, go to COCOS2DX 3.3 libcurl Replace, compile run, success!!

Mom, this moment of the mood is really million head grass mud horse Pentium, with open-Source engine cross-platform to do project pit too much, find a time to the project encountered a variety of pits listed, some pits have been filled, some pits with a wretched way to deal with, anyway the final project appearance on the OK, but the process really let brothers heart.

NDK Environmental issues in COCOS2DX

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.