Saturday, November 17, 2012

Qt5 Beta2 on TI platforms with OpenGLES2

Qt5 Beta2 release is now available and build tested with Graphics SDK. The package can be downloaded from,

Build patches are available at below link (no change from Beta1),

Qt5 Beta2 - configure and build steps at the below blog post.

Applicable Platforms - 3730, Beagleboard, BeagleXM, Beaglebone, and other SGX530 based devices.

A good discussion of issues involved in v8 compilation using this approach is at,


  1. Prabindh,
    This blog has been extremely helpful. It's helped me get Qt 5.0/eglfs/OpenGles2 running on a ti am335x devkit. kernel 3.2.34 and Graphics_SDK_4_08_00_01.

    Ogles2 demos and Qt5 applications are working. Starting the Qt5 app with -platform eglfs.

    Only place I'm stuck is we need the application to run in portrait orientation instead of landscape. Qt4x with qws was as simple as -display transformed:Rot270.

    Your blog has screen rotation as todo :) I was hoping you may have some pointers, maybe something simple I'm missing. Before I start digging into the Qpa/kernel/driver sources.

    thanks for you work

  2. Hello, glad that you were able to get it to work. Since this is eglfs, wouldnt you be able to change the framebuffer setting and restart the graphics drivers, to get the effective rotation ?

  3. I was able to rotate the framebuffer using:
    echo "1" > /sys/class/graphics/fbcon/rotate
    The modules omaplfb and pvrsrvkm aren't loading at boot, so I usually just load them with:
    /etc/init.d/rc.pvr start

    So I had tried rotating the framebuffer and then loading the kernel modules, and Qt 5 app didn't seem to follow the framebuffer rotation. Perhaps I'm not doing it correctly.

    I will try it again on monday. I had tried so many things the other day, perhaps I'm mistaken. I'd like to verify.
    Thanks again for your help.

  4. Hi Prabindh,
    I confirmed these steps do not produce the desired results:

    echo "1" > /sys/class/graphics/fbcon/rotate
    -confirm no modules loaded with lsmod
    /etc/init.d/rc.pvr start
    -confirm modules loaded
    ./app -platform eglfs

    The framebuffer rotates as expected, but the application does not follow the rotation.

    I'm pretty much stuck, and am going to start reading through the qpa/eglfs sources in Qt5 for clues. I'll post a reply if I find anything.


  5. Hi blaroche,
    Did you managed to fix the problem back then? because Im facing the same one...
    Thanks, Aline :)