Tuesday, July 21, 2015

cocos2d-x + eclipse

Although android studio 1.3 rc claims support ndk natively, cocos2d-x does not support it yet. Or I did not find the right doc. I decided to fall back to eclipse+adt.

The official doc is not completed here
http://www.cocos2d-x.org/wiki/Android_with_Eclipse_Installation_and_Setup

After doing so, I got errors in eclipse. I googled, and found out I need to add libcocos2dx from "cocos2d/cocos/platform/android/java" to get rid those errors.  Go to project properties->builders, and check CDT builder.

Leave everything else default.

I do not know how to change target SDK level, e.g. to 22(lollipop) or abi. But I can do that with cmd, e.g., "cocos compile -p android -ap android-22 --app-abi armeabi-v7a".

No comments:

Post a Comment