cocos2d-x is an open source, cross-platform game engine. It allows developers to code in C++, Lua and Javascript deployment into iOS, Android, Windows Phone, Mac OS X, Windows Desktop and Linux.
Build Requirements
Runtime Requirements
Download everything below:
After downloading everything above,
Inside your Cocos2d-x directory run:
python setup.py
caution: You must not use the ~ sign. Use the full path to your home directory. Otherwise, the scripts will fail due to error path value.
~/android-ndk-r10e
~/android-sdk-macosx
~/apache-ant-1.9.6/bin
After setting the above environment variables,run:
source ~/.bash_profile
Vola, the cocos2d-x has been successfully setup on your system.