Ensure you have all necessary environment variables in place:
export COCOS2DX_ROOT="/usr/local/lib/cocos2d-x"
export ANDROID_SDK_ROOT="/usr/local/lib/adt/sdk"
export NDK_ROOT="/usr/local/lib/ndk"
export NDK_TOOLCHAIN_VERSION="4.8"
Then build native libraries:
./build_native.py
Finally the project:
ant debug -Dsdk.dir=$ANDROID_SDK_ROOT
Run it against your emulator with:
emulator -avd nexus-19
adb install bin/Copong-debug.apk
Build the project with xcodebuild
:
xcodebuild -target 'Copong iOS'
Build the project with xcodebuild
:
xcodebuild -target 'Copong Mac'
First install dependencies:
cd cocos2d/build
./install-deps-linux.sh
Then build the project:
mkdir build
cd build
cmake ..
make -j4