Linux EGL+GLES on ARM-powered device

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
ramin
Gnoblar
Posts: 8
Joined: Thu May 12, 2011 3:30 pm

Linux EGL+GLES on ARM-powered device

Post by ramin »

Hi guys,

Can I build and run Ogre3D for Linux/Ubuntu/Linaro on an ARM powered device similar to Raspberry Pi with OpenGLES 2.0 ?

I do have X but of course EGL without X would be nice too.

I have built Ogre3D for desktop Ubuntu with OpenGL but this is now a different target.

Any suggestions - is this possible?
User avatar
Herb
Orc
Posts: 412
Joined: Thu Jun 04, 2009 3:21 am
Location: Kalamazoo,MI
x 38

Re: Linux EGL+GLES on ARM-powered device

Post by Herb »

Yes, it's possible. I've had ogre running on a Freescale I.MX53 QSB dev kit (cortex a8 ARM chip). I used a Linaro build of Ubuntu I had on running on the dev board and compiled ogre right on the board. So, it was running in X. The trouble is the opengles render system has calls to grab a x11 window, so you would need to modify the render system code to do it without X.
ramin
Gnoblar
Posts: 8
Joined: Thu May 12, 2011 3:30 pm

Re: Linux EGL+GLES on ARM-powered device

Post by ramin »

Thanks very much.

So with X11, it is only a matter of having the deps and the toolchain.

Is there any special tricks involved or would it build out of box?
User avatar
Herb
Orc
Posts: 412
Joined: Thu Jun 04, 2009 3:21 am
Location: Kalamazoo,MI
x 38

Re: Linux EGL+GLES on ARM-powered device

Post by Herb »

I can't remember now if I did any modification to get it to build....I don't think so.... It's handy to run ccmake (which you can get via apt-get install cmake-curses-gui) to toggle your build settings. You'll want to turn off a bunch of stuff and enable the GLES1 and / or GLES2 render systems.
ramin
Gnoblar
Posts: 8
Joined: Thu May 12, 2011 3:30 pm

Re: Linux EGL+GLES on ARM-powered device

Post by ramin »

Great thanks.

I wish there was a blog about it. I might endup writing one myself!
ramin
Gnoblar
Posts: 8
Joined: Thu May 12, 2011 3:30 pm

Re: Linux EGL+GLES on ARM-powered device

Post by ramin »

Finally managd to run it.

The hardware uses a good GPU (it is an iMX6 chipset).

But the renderings are super slow - like 0.5 FPS!

Is it because Ogre3D uses mesa drivers that are not hardware accelerated?
Post Reply