Qt for Embedded Linux: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
=Qt for Embedded Linux=
[[Category:HowTo]]<br />[[Category:HowTo::Qt_Embedded]]


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).
[toc align_right=&quot;yes&amp;quot; depth=&quot;2&amp;quot;]
 
= 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 &quot;embedded linux&amp;quot; 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.
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=
= Contents =


==[[Qt for Embedded Linux Pre-requisites|Qt for Embedded Linux Pre requisites]]==
== [[Qt_for_Embedded_Linux_Pre-requisites | 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.
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 <span class="caps">SDK</span> 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.
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]]==
== [[Building_Qt_for_Embedded_Linux | 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).
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==
== 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.
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==
== Deploying Qt for Embedded Linux ==
 
With our application built we now need to deploy it (and Qt) to our target device. Details on how to do this will vary form device to device. This article assumes that you already have a bootable Linux install on your device. We also show some ways in which you can improve the startup time of your device.
 
===Categories:===
 
* [[:Category:HowTo|HowTo]]
** [[:Category:HowTo::Qt Embedded|Qt_Embedded]]

Revision as of 14:46, 23 February 2015


[toc align_right="yes&quot; depth="2&quot;]

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&quot; 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