Take the 2-minute tour ×

I'm looking for a birds-eye view on porting a small app1 that uses some OpenGL functions from it's home on Xorg to run in a more stand-alone fashion using DirectFB. I am unfamiliar with both C and OpenGL in general.

My motivation is that the embedded platform I want to run this app on (Raspberry Pi) doesn't have accelerated drivers for Xorg yet. I can only get about .5 fps running on Xorg. On the other hand, much heavier weight DirectFB apps seem to run with quite a bit of pep in their step.

What modifications would likely need to be done to the code base and compile process to make a DirectFB port? What sort of dependencies / includes would need to be adapted? Should I be starting from the ground up with a blank slate and implementing each function or working backwards trying to compile/run the original?

1 I only want to run the display portion of Lyricue. Sources are lyricue_display.c and lyricue_display.h, but I'd like to see the question answered in a generic way that would be helpful for somebody else wishing to port their favorite app.

share|improve this question
Have you tried XDirectFB? Keep in mind that openGL code and openGL ES code are not the same, so if the application was written for the former, there may not be any possibility of getting it to run using hardware acceleration on the Pi. –  goldilocks Jan 21 '13 at 15:26
See also related question on Raspberry Pi. –  Caleb Jan 22 '13 at 12:41
This sounds promising but sadly is dead now directfb.org/index.php?path=Projects%2FDirectFBGL –  Braiam Apr 26 at 20:32

Your Answer



Browse other questions tagged or ask your own question.