Hi all! I’m trying to build an apk from command line (Cygwin) through a makefile but I can’t make it work. This is the makefile:
all:
./build_native.py
ant -Dsdk.dir=...\sdk debug
run:
adb -d uninstall com.mangoprotocol.testgame
adb -d install bin/TestGame-debug.apk
adb -d logcat | grep cocos2d
clean:
rm -rf libs/
rm -rf obj/
rm -rf bin/*
rm -rf gen/
rm -rf assets/*
The output in Cygwin is:
$ make
./build_native.py
make: execvp: ./build_native.py: Permission denied
makefile:2: recipe for target 'all' failed
make: *** [all] Error 127
And if I try to launch the python script from Windows command line (cmd) I get this error:
File “…e\proj.android\build_native.py”, line 25
print “Can’t know cpuinfo, use default 1 cpu”
^
SyntaxError: invalid syntax
Any idea on how to solve this? Thanks in advance!