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 (https://qt-project.org/) - Toolchain (https://www.electronsonradio.com/2011/04/intro-to-basic-cross- compiling-for-the-beagleboard/) - Buildroot (https://blog.galemin.com/2011/06/buildroot-2011-05-all-in-one-for- beagleboard-xm/) - Kernel (https://kernel.org/) - Beagelboard (https://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.
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:
Select mouse driver, freetype2 et png support if you want use mouse, picture, ...
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; w.showFullScreen(); 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.
Aucun message nʼ a été trouvé.
Merci de copier ce texte: 4f9c4c2f2dab