Here is the android_template file structure unmodified.
.:
total 23
drwx------+ 1 Administrators None 0 Jun 14 13:59 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
-rwx------+ 1 Administrators None 364 Nov 14 2011 .classpath
-rwx------+ 1 Administrators None 844 Nov 14 2011 .project
-rwx------+ 1 Administrators None 1342 Nov 14 2011 AndroidManifest.xml
drwx------+ 1 Administrators None 0 Jun 13 18:25 assets
-rwx------+ 1 Administrators None 364 Oct 11 2011 default.properties
drwx------+ 1 Administrators None 0 Jun 14 13:57 jni
drwx------+ 1 Administrators None 0 Jun 14 13:57 libs
-rw-r--r--+ 1 gehrig None 0 Jun 14 14:00 log.txt
drwx------+ 1 Administrators None 0 Jun 14 13:57 obj
-rwx------+ 1 Administrators None 360 Nov 14 2011 project.properties
drwx------+ 1 Administrators None 0 Jun 14 13:57 res
drwx------+ 1 Administrators None 0 Jun 14 13:57 src
./assets:
total 4
drwx------+ 1 Administrators None 0 Jun 13 18:25 .
drwx------+ 1 Administrators None 0 Jun 14 13:59 ..
./jni:
total 48
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:59 ..
-rwx------+ 1 Administrators None 1760 Nov 14 2011 Android.mk
-rwx------+ 1 Administrators None 175 Nov 14 2011 Application.mk
drwx------+ 1 Administrators None 0 Jun 14 13:57 armeabi
drwx------+ 1 Administrators None 0 Jun 14 13:57 armeabi-v7a
-rwx------+ 1 Administrators None 14843 Nov 14 2011 Core.cpp
-rwx------+ 1 Administrators None 305 Nov 14 2011 CoreForApp.h
-rwx------+ 1 Administrators None 14758 Nov 7 2011 main.c
-rwx------+ 1 Administrators None 327 Nov 14 2011 template.cpp
-rwx------+ 1 Administrators None 455 Nov 14 2011 template.h
./jni/armeabi:
total 15096
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
-rwx------+ 1 Administrators None 15452500 Jun 6 09:23 libAGKAndroid.a
./jni/armeabi-v7a:
total 14924
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
-rwx------+ 1 Administrators None 15277752 Jun 6 09:26 libAGKAndroid.a
./libs:
total 4
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:59 ..
drwx------+ 1 Administrators None 0 Jun 13 18:25 armeabi
drwx------+ 1 Administrators None 0 Jun 13 18:25 armeabi-v7a
./libs/armeabi:
total 0
drwx------+ 1 Administrators None 0 Jun 13 18:25 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
./libs/armeabi-v7a:
total 0
drwx------+ 1 Administrators None 0 Jun 13 18:25 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
./obj:
total 4
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:59 ..
drwx------+ 1 Administrators None 0 Jun 14 13:57 local
./obj/local:
total 0
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
drwx------+ 1 Administrators None 0 Jun 13 18:25 armeabi
drwx------+ 1 Administrators None 0 Jun 13 18:25 armeabi-v7a
./obj/local/armeabi:
total 0
drwx------+ 1 Administrators None 0 Jun 13 18:25 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
./obj/local/armeabi-v7a:
total 0
drwx------+ 1 Administrators None 0 Jun 13 18:25 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
./res:
total 8
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:59 ..
drwx------+ 1 Administrators None 0 Jun 14 13:57 drawable-hdpi
drwx------+ 1 Administrators None 0 Jun 14 13:57 drawable-ldpi
drwx------+ 1 Administrators None 0 Jun 14 13:57 drawable-mdpi
drwx------+ 1 Administrators None 0 Jun 13 18:25 layout
drwx------+ 1 Administrators None 0 Jun 14 13:57 values
./res/drawable-hdpi:
total 12
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
-rwx------+ 1 Administrators None 7612 Nov 7 2011 icon.png
./res/drawable-ldpi:
total 12
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
-rwx------+ 1 Administrators None 5984 Nov 7 2011 icon.png
./res/drawable-mdpi:
total 12
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
-rwx------+ 1 Administrators None 5984 Nov 7 2011 icon.png
./res/layout:
total 4
drwx------+ 1 Administrators None 0 Jun 13 18:25 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
./res/values:
total 5
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:57 ..
-rwx------+ 1 Administrators None 112 Oct 11 2011 strings.xml
./src:
total 5
drwx------+ 1 Administrators None 0 Jun 14 13:57 .
drwx------+ 1 Administrators None 0 Jun 14 13:59 ..
-rwx------+ 1 Administrators None 99 Oct 11 2011 Dummy.java
Compile execution in Cygwin:
gehrig@gehrig-PC /cygdrive/c/android/templates/template_android
$ /cygdrive/c/android/ndk-r8/ndk-build 2> log.txt
Compile++ arm : template <= Core.cpp
/cygdrive/c/android/ndk-r8/build/core/build-binary.mk:243: recipe for target `obj/local/armeabi/objs/template/Core.o' failed
Log.txt
jni/Core.cpp:1:17: error: agk.h: No such file or directory
In file included from jni/Core.cpp:3:
jni/template.h: In constructor 'app::app()':
jni/template.h:17: error: 'memset' was not declared in this scope
In file included from jni/Core.cpp:4:
jni/CoreForApp.h: In function 'void AppForceExit()':
jni/CoreForApp.h:17: error: 'agk' has not been declared
jni/CoreForApp.h:18: error: 'exit' was not declared in this scope
jni/Core.cpp: In function 'int checkformat(ANativeActivity*)':
jni/Core.cpp:30: error: 'agk' has not been declared
jni/Core.cpp:34: error: 'agk' has not been declared
jni/Core.cpp:62: error: 'agk' has not been declared
jni/Core.cpp:81: error: 'agk' has not been declared
jni/Core.cpp:90: error: 'agk' has not been declared
jni/Core.cpp:92: error: 'strcmp' was not declared in this scope
jni/Core.cpp: In function 'void init(void*)':
jni/Core.cpp:99: error: 'agk' has not been declared
jni/Core.cpp: In function 'void updateptr(void*)':
jni/Core.cpp:104: error: 'agk' has not been declared
jni/Core.cpp: In function 'void cleanup()':
jni/Core.cpp:110: error: 'agk' has not been declared
jni/Core.cpp: In function 'void begin()':
jni/Core.cpp:123: error: 'FILE' was not declared in this scope
jni/Core.cpp:123: error: 'pFile' was not declared in this scope
jni/Core.cpp:123: error: 'fopen' was not declared in this scope
jni/Core.cpp:126: error: 'fread' was not declared in this scope
jni/Core.cpp:131: error: 'fclose' was not declared in this scope
jni/Core.cpp:136: error: 'agk' has not been declared
jni/Core.cpp:137: error: 'agk' has not been declared
jni/Core.cpp:137: error: 'agk' has not been declared
jni/Core.cpp:137: error: 'agk' has not been declared
jni/Core.cpp:139: error: 'agk' has not been declared
jni/Core.cpp:141: error: 'agk' has not been declared
jni/Core.cpp:142: error: 'agk' has not been declared
jni/Core.cpp:143: error: 'agk' has not been declared
jni/Core.cpp:144: error: 'agk' has not been declared
jni/Core.cpp:145: error: 'agk' has not been declared
jni/Core.cpp:147: error: 'agk' has not been declared
jni/Core.cpp:148: error: 'agk' has not been declared
jni/Core.cpp:161: error: 'agk' has not been declared
jni/Core.cpp:163: error: 'agk' has not been declared
jni/Core.cpp:164: error: 'agk' has not been declared
jni/Core.cpp:166: error: 'agk' has not been declared
jni/Core.cpp:166: error: 'agk' has not been declared
jni/Core.cpp:179: error: 'agk' has not been declared
jni/Core.cpp:180: error: 'agk' has not been declared
jni/Core.cpp:180: error: 'agk' has not been declared
jni/Core.cpp:180: error: 'agk' has not been declared
jni/Core.cpp:181: error: 'agk' has not been declared
jni/Core.cpp:182: error: 'agk' has not been declared
jni/Core.cpp:189: error: 'agk' has not been declared
jni/Core.cpp:191: error: 'agk' has not been declared
jni/Core.cpp:192: error: 'agk' has not been declared
jni/Core.cpp:194: error: 'agk' has not been declared
jni/Core.cpp:194: error: 'agk' has not been declared
jni/Core.cpp:207: error: 'FILE' was not declared in this scope
jni/Core.cpp:207: error: 'pFile' was not declared in this scope
jni/Core.cpp:207: error: 'fopen' was not declared in this scope
jni/Core.cpp:210: error: 'fwrite' was not declared in this scope
jni/Core.cpp:215: error: 'fclose' was not declared in this scope
jni/Core.cpp:219: error: 'agk' has not been declared
jni/Core.cpp:222: error: 'agk' has not been declared
jni/Core.cpp:223: error: 'agk' has not been declared
jni/Core.cpp:224: error: 'agk' has not been declared
jni/Core.cpp:225: error: 'agk' has not been declared
jni/Core.cpp:227: error: 'agk' has not been declared
jni/Core.cpp:234: error: 'agk' has not been declared
jni/Core.cpp: In function 'void updatesize()':
jni/Core.cpp:252: error: 'agk' has not been declared
jni/Core.cpp: In function 'void setaccel(float, float, float)':
jni/Core.cpp:279: error: 'agk' has not been declared
jni/Core.cpp:279: error: 'agk' has not been declared
jni/Core.cpp:284: error: 'agk' has not been declared
jni/Core.cpp:284: error: 'agk' has not been declared
jni/Core.cpp:290: error: 'agk' has not been declared
jni/Core.cpp:293: error: 'agk' has not been declared
jni/Core.cpp: In function 'void touchdown(int, float, float)':
jni/Core.cpp:301: error: 'agk' has not been declared
jni/Core.cpp: In function 'void touchmoved(int, float, float)':
jni/Core.cpp:306: error: 'agk' has not been declared
jni/Core.cpp: In function 'void touchup(int, float, float)':
jni/Core.cpp:311: error: 'agk' has not been declared
jni/Core.cpp: In function 'int TranslateKey(int)':
jni/Core.cpp:318: error: 'AGK_KEY_BACK' was not declared in this scope
jni/Core.cpp:319: error: 'AGK_KEY_TAB' was not declared in this scope
jni/Core.cpp:320: error: 'AGK_KEY_ENTER' was not declared in this scope
jni/Core.cpp:321: error: 'AGK_KEY_SHIFT' was not declared in this scope
jni/Core.cpp:324: error: 'AGK_KEY_ESCAPE' was not declared in this scope
jni/Core.cpp:325: error: 'AGK_KEY_SPACE' was not declared in this scope
jni/Core.cpp:326: error: 'AGK_KEY_PAGEUP' was not declared in this scope
jni/Core.cpp:327: error: 'AGK_KEY_PAGEDOWN' was not declared in this scope
jni/Core.cpp:330: error: 'AGK_KEY_LEFT' was not declared in this scope
jni/Core.cpp:331: error: 'AGK_KEY_UP' was not declared in this scope
jni/Core.cpp:332: error: 'AGK_KEY_RIGHT' was not declared in this scope
jni/Core.cpp:333: error: 'AGK_KEY_DOWN' was not declared in this scope
jni/Core.cpp:337: error: 'AGK_KEY_0' was not declared in this scope
jni/Core.cpp:338: error: 'AGK_KEY_1' was not declared in this scope
jni/Core.cpp:339: error: 'AGK_KEY_2' was not declared in this scope
jni/Core.cpp:340: error: 'AGK_KEY_3' was not declared in this scope
jni/Core.cpp:341: error: 'AGK_KEY_4' was not declared in this scope
jni/Core.cpp:342: error: 'AGK_KEY_5' was not declared in this scope
jni/Core.cpp:343: error: 'AGK_KEY_6' was not declared in this scope
jni/Core.cpp:344: error: 'AGK_KEY_7' was not declared in this scope
jni/Core.cpp:345: error: 'AGK_KEY_8' was not declared in this scope
jni/Core.cpp:346: error: 'AGK_KEY_9' was not declared in this scope
jni/Core.cpp:348: error: 'AGK_KEY_A' was not declared in this scope
jni/Core.cpp:349: error: 'AGK_KEY_B' was not declared in this scope
jni/Core.cpp:350: error: 'AGK_KEY_C' was not declared in this scope
jni/Core.cpp:351: error: 'AGK_KEY_D' was not declared in this scope
jni/Core.cpp:352: error: 'AGK_KEY_E' was not declared in this scope
jni/Core.cpp:353: error: 'AGK_KEY_F' was not declared in this scope
jni/Core.cpp:354: error: 'AGK_KEY_G' was not declared in this scope
jni/Core.cpp:355: error: 'AGK_KEY_H' was not declared in this scope
jni/Core.cpp:356: error: 'AGK_KEY_I' was not declared in this scope
jni/Core.cpp:357: error: 'AGK_KEY_J' was not declared in this scope
jni/Core.cpp:358: error: 'AGK_KEY_K' was not declared in this scope
jni/Core.cpp:359: error: 'AGK_KEY_L' was not declared in this scope
jni/Core.cpp:360: error: 'AGK_KEY_M' was not declared in this scope
jni/Core.cpp:361: error: 'AGK_KEY_N' was not declared in this scope
jni/Core.cpp:362: error: 'AGK_KEY_O' was not declared in this scope
jni/Core.cpp:363: error: 'AGK_KEY_P' was not declared in this scope
jni/Core.cpp:364: error: 'AGK_KEY_Q' was not declared in this scope
jni/Core.cpp:365: error: 'AGK_KEY_R' was not declared in this scope
jni/Core.cpp:366: error: 'AGK_KEY_S' was not declared in this scope
jni/Core.cpp:367: error: 'AGK_KEY_T' was not declared in this scope
jni/Core.cpp:368: error: 'AGK_KEY_U' was not declared in this scope
jni/Core.cpp:369: error: 'AGK_KEY_V' was not declared in this scope
jni/Core.cpp:370: error: 'AGK_KEY_W' was not declared in this scope
jni/Core.cpp:371: error: 'AGK_KEY_X' was not declared in this scope
jni/Core.cpp:372: error: 'AGK_KEY_Y' was not declared in this scope
jni/Core.cpp:373: error: 'AGK_KEY_Z' was not declared in this scope
jni/Core.cpp: In function 'int AsciiKey(int)':
jni/Core.cpp:395: error: 'agk' has not been declared
jni/Core.cpp:395: error: 'AGK_KEY_SHIFT' was not declared in this scope
jni/Core.cpp: In function 'void keydown(int)':
jni/Core.cpp:521: error: 'agk' has not been declared
jni/Core.cpp:525: error: 'agk' has not been declared
jni/Core.cpp: In function 'void keyup(int)':
jni/Core.cpp:531: error: 'agk' has not been declared
make: *** [obj/local/armeabi/objs/template/Core.o] Error 1