{{{#!html
Qt for Embedded Linux is a C++ framework for GUI and application development for embedded devices.
Note these instructions were made using Yocto 1.7 which may no longer be the latest
Download the following files here:
The steps below first require building Yocto from source documented here
Then, after building, to include QTE 4.8.6, we have modified a base Gateworks recipe file.
Below are the lines we have added:
inherit qt4e IMAGE_INSTALL += "${QT4EDEPENDS}" IMAGE_INSTALL += "\ qt-in-industrial-embedded-smarthome-e \ "
#include <QApplication> #include <QPushButton> #include <QWidget> int main(int argc, char **argv) { QApplication app (argc, argv); QPushButton button ("Hello world !"); button.showFullScreen(); return app.exec(); }
#CC = arm-none-linux-gnueabi-gcc #CXX = arm-none-linux-gnueabi-g++ #STRIP = arm-none-linux-gnueabi-strip AR = arm-poky-linux-gnueabi-ar cqs LINK = $(CXX)
ryan@ryan-Inspiron-660:~/Downloads/helloworld$ file helloworld helloworld: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=34e0476f18f251ac85b72131957382f0bd00faeb, not stripped