Need help getting started with Cocos2d-x to build for iOS & android

Need help getting started with Cocos2d-x to build for iOS & android
0.0 0

#61

The Android equivalent to Game Center would be Google Play Games:
https://developers.google.com/games/services/downloads/sdks

Sorry for the misunderstanding. The option is only for cocos compile, so you can specify which build system to use.

cocos new should create all eight project folders for you by default.

The versions I’m currently using:
cocos2d-x-3.12
Cocos Console 2.1

Which version do you have? Can you create a new project and check, which project folders are created?


#62

Latest. And I have a lot of problems already as its really buggy and almost nothing just compiles and work. Info here - Prebuilt generation not working in 3.13.1 and 3.11.1 :slight_smile:

Sure, I’m doing this many times already.


#63

Pleas post the commands you entered in both cases.


#64

Ah, sure :slight_smile: :

1st

cocos new UseLibs -p projectname.com.name -l cpp -t binary

and 2nd

cocos new UseFullSourceCode -p projectname.com.name -l cpp


#65

Firstly you can’t use game center on android platform. You may use google play service.

Sorry.I just had read your last post.

You always need to use official native plugin to add some services. SDKBOX Game Center solution(or smilar solutions) is just wrapper of official Game Center plugin. But ok, I understood you.

@iQD Thanks. Actually my mainly language option is c++ for game development. But I will try it for my future project. @slackmoehrle the discussion ended right now, sorry :smiley:


#66

It seems that the binary templates is not supporting every build system yet.


#67

You mean Android Studio and Eclipse? I don’t know, but libs can’t be used in Android studio or smth?


#68

I was only referring to Android Studio, as there is a binary template for Eclipse but not for the former.
Every build system needs special configuration files for using prebuild libraries. Maybe these files are not ready yet for Android Studio.

It’s the only reason I could imagine, why there is no binary template for Android Studio.

I’m sure @slackmoehrle can answer that question.


#69

I believe the Android Studio build is NOT fully working just yet.


#70

@stevetranby It’s a bit problematic to setup, but IT IS WORKING. I can confirm that :slight_smile: Now I’m struggling to use precompiled libs to decrease compilation time, which is pretty slow on my iMac with goddamn 5400mbr hard drive. Feel free to help me fighting with gradle and ndk-build.