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 / Problems building v1085 Android Player

Author
Message
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 11th Dec 2012 16:48
As requested, I am trying to build a clean Android Player for v1085.

It appears there is a new directory in the interpreter area, facebook.

And that it needs to be built so that the Player can include the facebooksdk.jar file.

So, I tried to build the facebook project and it failed. The project is missing the jni directory with the make and source files.

So, no v1085 Android Player until the missing directory (at a minimum) is provided.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 11th Dec 2012 17:37 Edited at: 11th Dec 2012 17:38
The player 1085b is here :
http://forum.thegamecreators.com/?m=forum_view&t=200598&b=41&msg=2416725#m2416725

I achieved to build it including the whole facebook project in build path and changing java compiler in project properties to 1.6 (instead of 1.5) for the fb project and the player.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 11th Dec 2012 18:55
Thank you MikeMax, but I like to compile my own players.

That is the first step to being able to create a Tier 2 template, the next project to be done for v1085.

How did you resolve the missing jni files for the facebook project?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 11th Dec 2012 19:05 Edited at: 11th Dec 2012 19:06
you have the whole error message ? i haven't had any problems with jni files i guess ...
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 11th Dec 2012 19:41
In the original v1085 installation, in the IDE/apps/facebook directory, there is jni directory at all. So, when copied to the Android setup and I attempt to build in cygwin, I get the following error messages:

(I put my android ndk in 'android-ndk' without the build version, this has been working fine throughout v1076 and v1082, the last 108 Android build I did.)

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 11th Dec 2012 23:43
The facebook project doesn't need compiling with NDK, you just import it into eclipse and it acts as a library project for AGK. I tried simplifying it by turning it into a single .jar file but got loads of errors so figured it was more trouble than it's worth.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 12th Dec 2012 02:03
I get the following error in Eclipse after cleaning and building interpreter_android in cygwin:


Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 12th Dec 2012 03:07
That was probably from my attempt to simplify it into a jar file. The next beta reinstates the facebook project method of compiling so you may have to wait for that.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 12th Dec 2012 04:13
Thank you. I guess I'll wait for the next 108 beta.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 12th Dec 2012 13:00


For me, After adding the facebook project in the agk project's build path it was ok after dlean&rebuild for each project (you have to keep the two projects (fb + agk) opened in eclipse before building !!! otherwise it won't find the facebook jar).
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 12th Dec 2012 16:01
MikeMax, I cannot build the facebook project because there was no jni directory with the source in the delivered v1085 installation and, therefore, no jni with source files in my Android project.

And I have both projects in my Eclipse and Eclipse complains about both of them.

Did you get the facebook project from somewhere else?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 12th Dec 2012 16:36 Edited at: 12th Dec 2012 16:37
No. I have it from the AppGameKit Build 1085b.

And yes .. there is no jni source files in the facebook eclipse project ... So .. are you using jre6 or jre7 ? are you using the java compiler 1.6 in both projects ?

The problem seems to be in your java building environment

(if i was able to compile it .. anyone can lol)
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 12th Dec 2012 17:36
I believe it is jre6 (based on my install file 'jdk-6u30-windows-i586.exe').

It figures. My setup may be a bit old. I have to go run errands (Xmas stamps, ship out my Holiday Curry, get cat food, etc.). When I get back I'll grab some screen shots and maybe we can figure out what I need to change.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 12th Dec 2012 17:40
yes. i'm using jre7 and i have updated the complete android sdk and eclipse recently. we will see that

Login to post a reply

Server time is: 2024-04-27 16:27:48
Your offset time is: 2024-04-27 16:27:48