I am quite new to cocos2dx and I am trying to set the engine up for both iPhone and Android development as a hybrid, however I am trying to setup the android project and keep getting the “Error! Please run in cocos2dx root.” which makes no sense as I am assuming the root folder is the cocos2dx folder in which create-android-project currently resides. I am also fairly new to mac as well however I feel it might be a lot cleaner developing both on mac.
I am using the terminal command bash and then entering the files directory for example,
“bash /Users/myname/Desktop/Android_Development/cocos2d-2.0-x-2.0.4/cocos2dx/create-android-project.sh” however run into the error.
Can someone please point out where I am going wrong?
Thanks in advance.
Hi have solved this issue by renaming the .sh file to a .command file hence making it run on double clicking the file. Had tried fruitlessly for hours with different paths, even though create-android-project.sh was in the root folder however this did the trick.
My apologies this turned out to be false as I made the change on create-project-blackberry.sh instead of the create-project-android.sh….
Currently I still have the error.