Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry pi egl fails #21

Closed
clienthax opened this issue Jun 8, 2013 · 14 comments
Closed

Raspberry pi egl fails #21

clienthax opened this issue Jun 8, 2013 · 14 comments

Comments

@clienthax
Copy link

Is it possible to get a platform file for the raspberry pi, i have managed to get libsdl-gles to compile and install, if it works is another matter..

Since there wasn't a platform file and the n9xx code wouldn't compile (references to sdl1.3 ?) i tryed pandora=1
Currently getting a egl surface on screen but the program kicks out the following
http://i.imgur.com/C1qEb1D.png

@notaz
Copy link
Contributor

notaz commented Jun 8, 2013

R-Pi requires non-standard egl init code (needs calls to proprietary APIs before stadard egl init), so somebody has to write platform file first with all that proprietary crap or use some helper library that does it.

@clienthax
Copy link
Author

@notaz I was half asleep last night, actualy have trg running nicely atm, working on a platform file for rpi and fixing up the makefile
, will submit a pull request when ive cleaned it up

@clienthax
Copy link
Author

@notaz
When using this sdl library http://www.raspberrypi.org/phpBB3/viewtopic.php?t=25146 (much better then normal sdl for the pi)
it is possible to run apkenv with the following compile command
GLES=1 PANDORA=1 make

the following flags need to be added
LDFLAGS += -L/usr/lib -L/opt/vc/lib
CFLAGS += -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads

Also the gles v1 library on the pi is GLESv1_CM instead of GLES_CM

and
imagelib/loadjpeg.c:33:13: error: conflicting types for âjpeg_mem_srcâ
/usr/include/jpeglib.h:961:14: note: previous declaration of âjpeg_mem_srcâ was here

Easily fixed by appending a _ after the method and the method call in imagelib

I have been unsuccessful at getting gles2 to compile (complains about gles_init_extensions)

@thp
Copy link
Owner

thp commented Jun 11, 2013

@clienthax - have you got any other applications beside trg running? I've tried once, and some (most?) Android games only target ARMv7, which the RPi doesn't have (it only has ARMv6) - that's why I really didn't pursue getting apkenv running on the Pi any further.

@clienthax
Copy link
Author

Tryed angry birds but it needs gles2 which complains of errors while
compiling
On Jun 11, 2013 12:36 PM, "Thomas Perl" notifications@github.com wrote:

@clienthax https://github.com/clienthax - have you got any other
applications beside trg running? I've tried once, and some (most?) Android
games only target ARMv7, which the RPi doesn't have (it only has ARMv6) -
that's why I really didn't pursue getting apkenv running on the Pi any
further.


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-19256149
.

@thp
Copy link
Owner

thp commented Jun 11, 2013

All supported AB versions/variants require only GLES1. Which version did you try?

@clienthax
Copy link
Author

Original, it was saying a shader hook was missing, I'll grab the log from
my pi
On Jun 11, 2013 12:52 PM, "Thomas Perl" notifications@github.com wrote:

All supported AB versions/variants require only GLES1. Which version did
you try?


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-19256856
.

@clienthax
Copy link
Author

@thp

pi@raspberrypi ~/pushthis/apkenv/libs/raspberrypi $ sudo ../../apkenv ~/apkenv/Angry-birds-star-wars-apk-armv6-7-andropalace.net.apk
apkenv 42.3.15 - http://thp.io/2012/apkenv/
Copyright (c) 2012 Thomas Perl m@thp.io

linker/linker.c:1382| ERROR: 0 cannot locate 'glAttachShader'...

linker/linker.c:2057| ERROR: failed to link libangrybirdsstarwars.so
Missing library dependencies.
pi@raspberrypi ~/pushthis/apkenv/libs/raspberrypi $ ../../apkenv ../../AngryBirdsSpace_v1.3.0.apk
apkenv 42.3.15 - http://thp.io/2012/apkenv/
Copyright (c) 2012 Thomas Perl m@thp.io

Illegal instruction
pi@raspberrypi ~/pushthis/apkenv/libs/raspberrypi $ ../../apkenv ../../com.rovio.angrybirdsspace.ads.apk
apkenv 42.3.15 - http://thp.io/2012/apkenv/
Copyright (c) 2012 Thomas Perl m@thp.io

linker/linker.c:1382| ERROR: 0 cannot locate 'glBindFramebuffer'...

linker/linker.c:2057| ERROR: failed to link libAngryBirdsSpace.so
Missing library dependencies.

@mittorn
Copy link

mittorn commented Mar 1, 2014

Try rpi platform from my fork. I've not tested it, but after some changes it may work.
https://github.com/mittorn/apkenv/blob/linux-x11/platform/raspberrypi.c

@thp
Copy link
Owner

thp commented Mar 2, 2014

@mittorn interesting, want to do a pull request for your changes? Some of these seem really interesting (especially the evdev stuff and native EGL).

@mittorn
Copy link

mittorn commented Mar 2, 2014

I want to make pull request, but i removed some blobs from all repository history and moved it to mittorn/apkenv-libs., so it may cause conflicts I have slow internet connection, so it's very dificult to work with 20MB repository.
The second problem is maemo/pandora compatibility. I don't have that devices and cannot test them before pull (i've maked changes in image lib to make it compatible with redent png/jpeg libs, but it may not to compile on old versions.
EGL native driver is only for mali, but can be easily adapted for other drivers.
P.S Repos are incompatible, so i cannot make direct pull request. Now i'm reading how to fix it.

@mittorn
Copy link

mittorn commented Apr 17, 2014

There is an x11 egl implementation for RPi, that would be availiable soon: ssvb/xf86-video-fbturbo#24 (comment)

@kika123
Copy link

kika123 commented May 4, 2014

That X11 EGL implementation already works for OpenGL ES 2.0 using apkenv!

I've written it myself.
But it doesn't work using some applications like Chromium.

@kika123
Copy link

kika123 commented Jan 21, 2015

This bug should be closed.

@thp thp closed this as completed Jan 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants