I do not know Python. So any of my suggested code should be suspicious.
Install python newest and greatest
could not be found by bash even if it is in the path change the 1st line of the program to
now running but problems
————— first problem\$ ./android-build.py testlua
File “./android-build.py”, line 22
print “NDK_ROOT not defined. Please define NDK_ROOT in your environment”
in version 3 of python print is a function must add parenthesis around argument
better late then never
————— second problem\$ ./android-build.py
File “./android-build.py”, line 199
sdk_root = check_environment_variables_sdk()
TabError: inconsistent use of tabs and spaces in indentation
change tabs to spaces seems to work better WOW
language is tab sensitive I am impressed
————— third problem ./android-build.py testlua
Couldn’t find the gcc toolchain.
does not look good
NDK_ROOT = re.sub(‘/cygdrive/./’,‘/’, NDK_ROOT)+ ‘/’
————— problem 4TCC: Unknown command “/android”
Build dynamic library for project [ E:2d-x-3.0beta\build/Lua/TestLua/proj.android ] fails!
TCC is my shell think of it as command.com
add this line just before os.system()
OK it should be conditional on win32 but do not look a gift horse in the mouth.
command = re.sub(‘/’, r“”, command)
if os.system(command) != 0:
Great it is working now lets try Eclipse
added my version as an attachment