Run cocos2dx project with Android

I am using Cocos2dx 3.0 RC1, and during the installation I typed: ./setup.py

I entered my NDK root and my SDK root, but did not add anything to my root ANT, as described in this tutorial: here , But you know, when I use:, cocos run -s ~/MyCompany/MyGame -p androidit says that my ANT_ROOT is not defined. I installed it using Macport, but when I type ant, it says Build is missing.

I just want to create an Android game using Cocos2dx.

+4
source share
3 answers

You can continue and define ANT_ROOT in .bash_profile.

export ANT_ROOT=<where ever it is>
export PATH=$ANT_ROOT:$PATH
+2
source

, OP. .bash_profile ; , .

source ~/.bash_profile

!

+1

For macOS:

Install Homebrew . Run it brew install ant. Add the export (with the correct location) to the file .bash_profile:

export ANT_ROOT=/usr/local/bin

0
source

Source: https://habr.com/ru/post/1536468/


All Articles