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 / Still trying to get a viable v1088 Android Template

Author
Message
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 13th Feb 2013 19:40 Edited at: 14th Feb 2013 22:06
EDIT: THIS HAS BEEN RESOLVED. See this post for further information.

I'm still stuck on making a functional v1088 Android template.

The project compiles and links and 'runs' on the devices.

However 'running' means that I only get a blank screen.

I ran this test on my Samsung Galaxy S III phone:
Android 4.1.1
OpenGL Version: OpenGL ES 2.0 2184622
Shading Language: OpenGL ES GLSL ES 1.00
Renderer: Adreno (TM) 255

The log entries produced by the app look like this (I sent the app to the background and brought it back again during the test):


Based on the logs, the first failure ("<s3dReadConfigFile:75>: Can't open file for reading") occurs somewhere in this code in jni/main.c:


Since neither of the warnings in the two if statements appear, and the error occurs twice, I suspect it is being triggered by the two eglQuerySurface commands.

But it is probably whatever is causing the "called unimplemented OpenGL ES API" and, maybe, the "Vertex shader failed to compile" errors that might be keeping the app from actually running.

I ran the same app on two more devices.

For the Nexus 7:
Android 4.2.1
OpenGL Version: OpenGL ES 2.0 14.01002
Shading Language: OpenGL ES GLSL ES 1.00
Renderer: NVIDIA Tegra 3

The log was similar, only missing the "<s3dReadConfigFile:75>: Can't open file for reading" error:


For both of the devices above, the log is from the debug window in Eclipse. For my Toshiba 7" Thrive, the log is from aLogCat on the device itself (edited to include only lines related to the app running).

Toshiba 7" Thrive:
Android 4.0.4
OpenGL Version: OpenGL ES 2.0 14.1002
Shading Language: OpenGL ES GLSL ES 1.00
Renderer: NVIDIA Tegra

The log showed some additional information regarding facebook:


I've attached the Core.cpp file from my template jni directory.

Has anyone else gotten a Tier 2 template or app running for Android for v1088?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 14th Feb 2013 12:04
I tapped out of this wrestling match. I kept getting error after error. Some class is missing something or APP_PLATFORM 14 is greater than miniSdkVersion in ./Android manifest. I fixed the latter error for v1076 but it's back again in v1088 and eveything I've tried has failed.

I will give your compiling template a try and report back.

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 14th Feb 2013 14:46 Edited at: 14th Feb 2013 22:05
I've attached the entire Android project directory (without the built and genned bits).

It assumes that it is in IDE/templates/template_android and that the facebook project is in IDE/apps/facebook.

Everyone is welcome to try and make it work on an actual device.

EDIT: The attachment has been deleted because I now have a working template.

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: 14th Feb 2013 19:27
Two changes should fix this. In main.c add the EGL_RENDERABLE_TYPE to the attributes list


and change the eglCreateContext call to request OpenGL 2
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 14th Feb 2013 19:29
I always wondered why TGC can't release working templates. Im guessing they must have some working for each new version to be able to test the commands on all platforms, and releasing them to us shouldn't be that difficult.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 14th Feb 2013 19:32
We don't do any work in tier 2, only compiling the interpreter with tier 1 bytecode so I admit the tier 2 templates are lacking. I want to address this at some point, probably once 108 has gone out so I don't have to keep updating a template we never use.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 14th Feb 2013 19:45
Paul, you guys might not use the Tier 2 templates, but a lot of us do want and need them.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 14th Feb 2013 19:45
Oh that makes sense, thanks for clearing that up.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 14th Feb 2013 20:46
I just got the template to work!!!

Thank you very much for your help, Paul. They were just the changes I needed.

I'll be posting the working templates on the AGK Wiki Templates page sometime later today.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 14th Feb 2013 22:01
Awesome, great work AL!

Login to post a reply

Server time is: 2024-05-07 16:30:57
Your offset time is: 2024-05-07 16:30:57