Qt and framebuffer

This tutorial aims to show how to compile the buildroot and kernel to boot a Qt Application. It also explains how to compile your Qt application for ARM and how to run it boot. You need to have :

- Qtcreator (http://qt-project.org/)
- Toolchain (http://www.electronsonradio.com/2011/04/intro-to-basic-cross-
- Buildroot (http://blog.galemin.com/2011/06/buildroot-2011-05-all-in-one-for-
- Kernel (http://kernel.org/)
- Beagelboard (http://beagleboard.org/)
- SD card

    1\ Kernel :

In compiling your kernel it is important to configure the frame buffer before. To do this go to "Device Drivers=>Graphics suppor". After export:

$ make menuconfig

The ideal is to select the minimum config for the rest.

$ make uImage

    2\ Build root :


In compiling your build root it is important to configure the frame buffer before and "Qt=> graphics drivers=> select linux framebuffer". After export:

$ make menuconfig

Select mouse driver, freetype2 et png support if you want use mouse, picture, ...

$ make

    3\ QT:

Configuring Qt toolchain for ARM Cortex A8 (tool => option => add), Qt version and Qt project.

Qt code:

main.cpp. you can download the code here :

#include "mainwindow.h"
int main(int argc, char *argv[])
    QApplication a(argc, argv);
    MainWindow w;
    return a.exec();

Copy MLO, u-boot , kernel, buildroot and Qt applcation on your SD card. Start the Qt application in the framebuffer from buildroot.

$ ./testQt -qws







Sujet: Qt and frameBuffer

Aucun message nʼ a été trouvé.

Nouvel avis