Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Compiling android player post 1070

Author
Message
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 3rd May 2012 23:49 Edited at: 3rd May 2012 23:55
Hello, I wanted to experiment with the multiplayer commands in AGK.

But to do that, I wanted to use my android phone. Sadly though TGC havn't updated the player yet I needed to compile my own.

I have been able to do that before, in 1065 without any errors. And therefore I thought that it would just be a matter of replacing the interpreter_android folder with the new one included in the update. But after trying for 2 hours I have had no luck with it.

The problem im getting is that first of all, Cygwin says something like
Quote: ""cygdrive/c/android...Build-binary.mk:241: recepie for targer 'obj/local/armeabi/objs/android_player/core.o' failed"


This is the log.txt that I get

In file included from jni/../../interpreter/AGKCommands.h:4,
from jni/../../interpreter/interpreter.h:19,
from jni/Core.cpp:3:
jni/../../interpreter/AGKCommandsTable106.h:1:38: warning: backslash-newline at end of file
In file included from jni/../../interpreter/interpreter.h:22,
from jni/Core.cpp:3:
jni/../../interpreter/AGKCommandsTable.cpp:1:31: warning: backslash-newline at end of file
In file included from jni/Core.cpp:4:
jni/CoreForApp.h: In function 'void RuntimError(const char*)':
jni/CoreForApp.h:106: warning: deprecated conversion from string constant to 'char*'
jni/CoreForApp.h:118: warning: NULL used in arithmetic
jni/Core.cpp: In function 'void resumeapp()':
jni/Core.cpp:167: error: 'Resumed' is not a member of 'AGK::agk'
make: *** [obj/local/armeabi/objs/android_player/Core.o] Error 1



And these are the warnings I get
Description Resource Path Location Type
The import android.view.View is never used AGKHelper.java /AGKPlayer/src/com/thegamecreators/agk_player line 14 Java Problem
The import android.widget.LinearLayout is never used AGKHelper.java /AGKPlayer/src/com/thegamecreators/agk_player line 9 Java Problem
The import android.widget.RelativeLayout is never used AGKHelper.java /AGKPlayer/src/com/thegamecreators/agk_player line 10 Java Problem
The value of the field AGKHelper.myActivity is not used AGKHelper.java /AGKPlayer/src/com/thegamecreators/agk_player line 71 Java Problem


EDIT: The Code tags don't seem to work, so i'll leave it like this for now

Allso, the new copy of the "apps" folder I made has got a weird artefact.

When I try to delete the "Interpreter_android" folder, it says "invaldid MS-DOS function
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 4th May 2012 02:07
you'll probably need to run the
command before the
command
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 4th May 2012 08:46
No, that didn't work.

I still get the same error in cygwin.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 4th May 2012 15:51
In that case it looks like it is not compiling against the latest libAGKAndroid.a file. Is there a newer version somewhere in the download that you can copy to \obj\local\armeabi
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 4th May 2012 19:19 Edited at: 4th May 2012 22:01
Where can I get that file?

Edit, I tried taking the files from the 1065 interpreter, and the process got a bit further but then I got the same error

Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 5th May 2012 01:53
you should be able to find them in AGK\IDE\platform\android\jni
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 5th May 2012 08:49
No, that didn't help either...
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 5th May 2012 14:52 Edited at: 5th May 2012 14:55
Quote: "When I try to delete the "Interpreter_android" folder, it says "invaldid MS-DOS function"


Check if there isn't a file named "NUL". If there is, you would have to first delete it with, say, cygwin. Navigate to your project folder and type


How is this possible you don't have libAGKAndroid.a? Maybe try downloading it again?
Or either re-installing.

Marl
12
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 5th May 2012 15:17 Edited at: 5th May 2012 15:17
I just had an issue with 1071 - not the same error, but related to libAGKAndroid.a

The problem for me was permissions.

I've had issues with this before - stupid Windows 7 - so this time took care to set the permissions of the parent folder and the AppGameKit install folder before I started.

Yet when I check the security on libAGKAndroid.a, it's all narfed up and bears no relationship to the parent folder or the original libAGKAndroid.a in the AppGameKit installation.

I don't know where it's getting it from, but resetting all the child permissions from the (still ok) parent folder security sorted it for me.
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 5th May 2012 15:50 Edited at: 5th May 2012 15:58
EDIT

Now I feel stupid, turns out the only thing I had to do was to replace all the "IDE/apps" files and not just the Interpreter folders

Thanks for the help though
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 5th May 2012 16:00
I'm looking forward to playing with a couple of the new commands, but am waiting for the new player, before I risk ruining my 1065 install folder. I had the all sorts of issues getting 1065 working :p

Marl
12
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 5th May 2012 16:03 Edited at: 5th May 2012 16:07
EDIT:
Quote: "Now I feel stupid, turns out the only thing I had to do was to replace all the "IDE/apps" files and not just the Interpreter folders"


You feel stupid?

You went and edited your post when I was replying, so now it looks like I'm answering something that nobody asked.

EDIT END
...

I can see two in the project.

:\android\AGK\IDE\apps\interpreter_android\libs\armeabi
:\android\AGK\IDE\apps\interpreter_android\libs\armeabi-v7a

I presume these are put there by the script
Quote: "SharedLibrary : libandroid_player.so
Install : libandroid_player.so => libs/armeabi/libandroid_player.so"


In the Android NDK, they are here (on mine);

:\android\android-ndk-r7b\platforms\android-9\arch-arm\usr\lib
:\android\android-ndk-r7b\platforms\android-9\arch-x86\usr\lib

(yeah I'm using NDK 7 - but it should be similar)
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 5th May 2012 16:10 Edited at: 5th May 2012 16:14
Quote: "(yeah I'm using NDK 7 - but it should be similar)"


Im using NDK 7 to

Oh and DVader, I attatched my version of the android player if you want it...

Edit, there is a "minor" bug with it though.

The player dosn't seem to be able to have animation frames. The sprites arn't animated, instead they show up the way they do in the original images.

And whe I quit the app, the player says that the last error is "Image does not ontain enough animation farmes Firescout/firescout.png

Attachments

Login to view attachments
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 6th May 2012 00:42
Oh cheers, Zoq2, that's helpful of you. It will certainly be useful. I'll try it shortly. Thanks! I'm sure a few peeps will grab it :p

The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 6th May 2012 00:55
Quote: "Oh cheers, Zoq2, that's helpful of you. It will certainly be useful. I'll try it shortly. Thanks! I'm sure a few peeps will grab it :p"


Of course, that's why I put ut up for download

Login to post a reply

Server time is: 2024-05-02 14:33:26
Your offset time is: 2024-05-02 14:33:26