Quote: "Core.cpp:1:17: error: agk.h: No such file or directory"
Did you copy the AGK/IDE directory into your Android setup? (I would guess a yes, since you are trying to do a template.)
Assuming you did copy the directory and didn't delete the wrong subdirs, you are probably experiencing a permissions issue.
Also, the TGC posted Tier 2 Android template is not quite right. The one on the
AGK Wiki Template page definitely works.
To avoid or fix some of the permissions issues that might appear, once you copied the AGK/IDE directory into your Android directory, you need to determine the user and group that exist in your cygwin window like this:
1. Open a fresh cygwin window
2. Execute the command 'pwd' to show your current directory. Your cygwin user name is the last directory in the path.
3. execute the command 'cd ..' (moves up one directory) followed by 'ls -l' (all letter el, no ones)
4. You should see something like (<user> is your cygwin user name, <group> is your cygwin group):
total 4
drwx------+ <user> <group> 0 <date> <user>
5. Navigate to the AGK directory in your Android path. The command on my setup would be 'cd /cygdrive/c/Android/AGK107/IDE'.
6. Execute the following commands (substitute the correct user and group for <user> and <group>):
chown -R <user>:<group> *
chmod -R 777 *
The last two commands make sure that you have the proper permissions for everything else that gets done (cleans, compiles, etc.).
If you use Windows File Explorer to copy files from your Windows AppGameKit project to the Android one (when you actually start your own projects in Android), you will want to execute those last two commands in the project directory, just to make sure that Eclipse and cygwin both are able to read and write where necessary.
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master