Sdl Apps From Palm Pre


meandu229

Zubeman
Joined
Mar 20, 2004
Messages
1,170
Age
37
Location
England(north east)
Website
www.zubeonline.com
Feel free to shoot me down for this
But the n900 is getting to use SDL 1.2 apps from a palm pre would we be able to do the same?
Do we have these : OpenGL ES 2.0 libs or are we running 1.1 (i think I remember this)

link
http://talk.maemo.org/showthread.php?t=39809&page=13
 
meandu229 said:
Feel free to shoot me down for this
But the n900 is getting to use SDL 1.2 apps from a palm pre would we be able to do the same?
Do we have these : OpenGL ES 2.0 libs or are we running 1.1 (i think I remember this)

link
http://talk.maemo.or...t=39809&page=13

probably would run, although there could be things that they added specific to those devices.
pandora has support for both opengles 2.0 and 1.1.
 
Last edited by a moderator:
meandu229 said:
Feel free to shoot me down for this
But the n900 is getting to use SDL 1.2 apps from a palm pre would we be able to do the same?
Do we have these : OpenGL ES 2.0 libs or are we running 1.1 (i think I remember this)

link
http://talk.maemo.or...t=39809&page=13

I'ven't seen any source link on this link (no I'm not going to read that 17pages long thread).
N900 also get some port coming from the IPhone world (I know, I've started working on one of these yesterday :p )
Porting from Iphone or meamo is way more easier than porting directly from PC : the 2 hardest part are done (openGL->openGLES and screen size)
So having links could be usefull.
The best you can do is collecting Original PC source link and MAEMO sources for each games you'll love to see happening and add this to the port request on the wiki.



EDIT:
Pickle said:
probably would run, although there could be things that they added specific to those devices.
pandora has support for both opengles 2.0 and 1.1.
Removing osso and hildon dependencies isn't hard though.
 
Last edited by a moderator:
sebt3 said:
meandu229 said:
Feel free to shoot me down for this
But the n900 is getting to use SDL 1.2 apps from a palm pre would we be able to do the same?
Do we have these : OpenGL ES 2.0 libs or are we running 1.1 (i think I remember this)

link
http://talk.maemo.or...t=39809&page=13

I'ven't seen any source link on this link (no I'm not going to read that 17pages long thread).
N900 also get some port coming from the IPhone world (I know, I've started working on one of these yesterday :p )
Porting from Iphone or meamo is way more easier than porting directly from PC : the 2 hardest part are done (openGL->openGLES and screen size)
So having links could be usefull.
The best you can do is collecting Original PC source link and MAEMO sources for each games you'll love to see happening and add this to the port request on the wiki.

it appears they are doing this to run commercial apps, thus a reason for no game source.
 
Last edited by a moderator:
[quote sebt3]Porting from Iphone or meamo is way more easier than porting directly from PC : the 2 hardest part are done (openGL->openGLES and screen size)[/quote]
That's why i started to make a port for the Frogatto game from maemo source ..the only sad thing is that i don't have a Pandora yet to test it :eek: .
This project is really interesting because there is implemented a SDL-->GLES library that do most of the work to interface the 2 worlds.

see my thread about it...http://www.gp32x.de/board/index.php?/topic/56731-pandora-frogatto/
 
Last edited by a moderator:
Farox said:
This project is really interesting because there is implemented a SDL-->GLES library that do most of the work to interface the 2 worlds
I made that library because on Maemo, touching the SDL package is a long & bureaucratic process (reason is that some of the builtin games use it), so we needed something external to it.
Ideally, SDL itself should be modified with GLES in mind, like they did on the Pre (and the Pandora afaik).


About Pre stuff, I'm quite sure most of it would run on the Pandora. There are a few specific calls that would need to be stubbed out or rewritten to Pandora conventions (for example on Maemo "Device name" == Bluetooth Device Name, etc).
 
Last edited by a moderator:
http://maemo.org/packages/source/view/fremantle_extras-devel_free_source/preenv/0.1/ source to Preenv which makes it possible and here is an endgadet link
http://www.engadget.com/2010/10/26/n900-can-run-unmodified-webos-games-what-can-your-linux-based-p/

(links from http://boards.openpandora.org/index.php?/topic/538-unmodified-webos-games-on-linux/page__pid__8904#entry8904)
 
javispedro said:
I made that library because on Maemo, touching the SDL package is a long & bureaucratic process (reason is that some of the builtin games use it), so we needed something external to it.
Ideally, SDL itself should be modified with GLES in mind, like they did on the Pre (and the Pandora afaik).

About Pre stuff, I'm quite sure most of it would run on the Pandora. There are a few specific calls that would need to be stubbed out or rewritten to Pandora conventions (for example on Maemo "Device name" == Bluetooth Device Name, etc).
Hey you are the original author of this lib ? great :) i didn't know also that you are a gp32x forum member .....And you have a Pandora ?
 
Last edited by a moderator:
meandu229 said:
ource to Preenv which makes it possible
Upstream is here http://gitorious.org/preenv/preenv

Farox said:
Hey you are the original author of this lib ? great :) i didn't know also that you are a gp32x forum member .....And you have a Pandora ?
No, I do not have a Pandora, but I'm considering one (with new nubs, ofc).
 
Last edited by a moderator:
NamX said:
It would be great if you could port preenv to pandora
Have you tried? It should be deadly easy -- in fact at the moment the modificacions that would need to be done are
0) Ensure you have glib, SDL, ...
1) Replace SDL_GLES_* calls with SDL_GL_*
2) Stub out the PDL calls that use "Maemo" API (device name, notifications on/off, ...)
 
Last edited by a moderator:
javispedro said:
NamX said:
It would be great if you could port preenv to pandora
Have you tried? It should be deadly easy -- in fact at the moment the modificacions that would need to be done are
0) Ensure you have glib, SDL, ...
1) Replace SDL_GLES_* calls with SDL_GL_*
2) Stub out the PDL calls that use "Maemo" API (device name, notifications on/off, ...)

did you mean : 1) Replace SDL_GL_* calls with SDL_GLES_*?
SDL_GL_* are not going to work on pandora's SDL.
 
Last edited by a moderator:
Pickle said:
did you mean : 1) Replace SDL_GL_* calls with SDL_GLES_*?
SDL_GL_* are not going to work on pandora's SDL.
Sorry, I thought the Pandora used a webos-like GL ES patch to SDL 1.2.. Then this is the same situation we have on Maemo then :). So replace that with "you will need to either port SDL_gles or replace the SDL_GLES calls with your own EGL stuff".
 
Last edited by a moderator:
javispedro said:
Pickle said:
did you mean : 1) Replace SDL_GL_* calls with SDL_GLES_*?
SDL_GL_* are not going to work on pandora's SDL.
Sorry, I thought the Pandora used a webos-like GL ES patch to SDL 1.2.. Then this is the same situation we have on Maemo then :) . So replace that with "you will need to either port SDL_gles or replace the SDL_GLES calls with your own EGL stuff".

the firmware SDL is standard, so yes EGL has to be used. Athough i believe there is a maemo based SDL that can use the SDL_GLES calls.
 
Last edited by a moderator:
Well, on Maemo we have two alternatives basically
A ) Stock firmware SDL 1.2 + a small library called SDL_gles (by me)
B ) SDL 1.3 with GLES support (by Cpasjuste iirc)

Preenv uses A. A should also be easily packaged for the Pandora (its only assumptions are X11, SDL1.2 and Imgtec's EGL implementation). Feel free to hit me if you accept the challenge and any problems arise :) .
 
javispedro said:
Well, on Maemo we have two alternatives basically
A ) Stock firmware SDL 1.2 + a small library called SDL_gles (by me)
B ) SDL 1.3 with GLES support (by Cpasjuste iirc)

Preenv uses A. A should also be easily packaged for the Pandora (its only assumptions are X11, SDL1.2 and Imgtec's EGL implementation). Feel free to hit me if you accept the challenge and any problems arise :) .
SDL_gles build fine on pandora (used here).
Preenv problem is not SDL_gles but the libc ;)
 
Last edited by a moderator:
Back
Top