Building Moon Warriors or TestJavascript

Building Moon Warriors or TestJavascript
0.0 0


I’m trying to build Moon Warriors or TestJavascript for Android and hitting an error. Is there something I’m missing in the process:

$ git clone
$ cd cocos2d-x
$ git submodule update --init
$ cd samples/MoonWarriors/
$ ./
make: *** No rule to make target `/Users/ngs/cocos2d-x/samples/MoonWarriors/', needed by `obj/local/armeabi/objs-debug/scriptingcore-spidermonkey/CCPhysicsSprite.o'.  Stop.
make: Leaving directory `/Users/ngs/cocos2d-x/samples/MoonWarriors/'

I can build and run other samples like HelloCpp but I get this error for the JS projects.

Thanks for any pointers.



I had the same error when compiling the projects. CCPhysicsSprite.cpp has moved to ${COCOS2DX_ROOT}/extensions/physics_nodes so make sure you have the extensions module in MoonWarriors and TestJavascript make files set