Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Qt for Embedded Linux: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:HowTo]]
[[Category:HowTo]]
[[Category:HowTo::Qt_Embedded]]
[[Category:HowTo::Qt_Embedded]]


[toc align_right="yes" depth="2"]


= Qt for Embedded Linux =


In addition to the more common usage of Qt on the desktop, Qt is also great for developing apps to run on embedded linux devices. The term "embedded linux" here basically just refers to a device running Linux without an X11 server. Instead of painting via X11, Qt when built for embedded Linux draw directly onto the framebuffer (or somewhere else as directed - more on this later).
In addition to the more common usage of Qt on the desktop, Qt is also great for developing apps to run on embedded linux devices. The term "embedded linux" here basically just refers to a device running Linux without an X11 server. Instead of painting via X11, Qt when built for embedded Linux draw directly onto the framebuffer (or somewhere else as directed - more on this later).

Latest revision as of 06:37, 1 April 2015



In addition to the more common usage of Qt on the desktop, Qt is also great for developing apps to run on embedded linux devices. The term "embedded linux" here basically just refers to a device running Linux without an X11 server. Instead of painting via X11, Qt when built for embedded Linux draw directly onto the framebuffer (or somewhere else as directed - more on this later).

This tutorial is intended to give you some tips for getting up and running so that you too can be productive with Qt for Embedded Linux.

Contents

Qt for Embedded Linux Pre-requisites

Before we can build and use Qt for Embedded Linux we need some tools to help us along our way. This article helps you on the way to getting a cross-compiling tool chain set up. Although not directly relevant to using Qt it is an essential part of being able to build and deploy Qt and your application onto your device.

If your device already provides you with an SDK that contains a working cross-compiling tool chain then you can skip this article. However, it will still give you some insight into how to create such a tool chain should you ever find yourself in need of one.

Building Qt for Embedded Linux

With a working cross-compiling toolchain in place we are now ready to build Qt itself. We will need 2 builds of Qt for Embedded Linux. The first will allow us to develop and run embedded applications on your development machine (host build). The second will be cross-compiled to run natively on your device (target build).

Using Qt for Embedded Linux

Now that we have a working tool chain and Qt ready, it is time to use it to make our awesome embedded application! This article will show you how to write and test your app locally and then how to build it for your target device.

Deploying Qt for Embedded Linux