What you have to do is exit out of the cocos2d-x directory when you type in the command.
instead of it being “Mac-mini-Alexander: cocos2d-x alexander$ cocos new …”
it should be “Mac-mini-Alexander: ~ alexander$ cocos new …” with out the cocos2d-x part.
You should try setting it up again but this time when you open the terminal don’t CD into the cocos2dx directory instead just open the terminal and type “/Users/alexander/Desktop/SDK/cocos2d-x/setup.py” and let me know what happens ? Similar to what I did here
can you try typing “echo $PATH” in your terminal and post what it shows, to see if everything is set up properly I think thats where the problem might be.
The only thing I see so far that does not seem correct is the path you set for your ANT_ROOT you have “/Users/alexander/Desktop/SDK/ANT” there should be a file in ant that looks similar to this. This is what I have
/Users/IzzyMachado/Desktop/AndroidGameDev/apache-ant-1.10.1/bin
the ANT_ROOT needs the “/bin” at the end of it. After you correct it let me know what happens when you re-install cocos2d-x and then run the cocos command
if you need help changing the environment variable to add “/bin” let me know and I will help.
That’s weird I wonder why my “cocos_x_root” worked fine pointing just to the folder cocos2dx was saved in and not the actual cocos2dx folder, and yours didn’t ? @slackmoehrle any idea why that is ?
Sorry friends, it was our mistake, after trying again to find the bug i found that we used not official mode of cocos2dx, it had the same name and version… it confused us and you
@yoman This problem is not connected at all with SBX. So you should post here. In SBX topic ask anything about SBX, but not setup of cocos.
Your problem is configuration of cocos2d-x. As simple option I’m suggesting you just replace official cocos2d-x with cocos2d-x for SBX. Then just create a project with it.