TIPandaBoard

From Qt Wiki
Revision as of 17:57, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Qt on the PandaBoard

It should be possible to run Qt 5.1 (along with Qt Quick 2) on the Panda using Linux or Android. These instructions only cover running Qt in a single-window, fullscreen fashion without X11.

Linux

Let’s use Linux… and by Linux, I really mean Ubuntu.

Acquire an image

There are many ways to build or get an Ubuntu disk image – you can install Ubuntu server, for example. Or, you might download a pre-built image from Linaro (or write one with linaro-media-create). For this wiki, we will use Ubuntu Core and walk you through the process. For more details and other fun PandaBoard stuff, please visit omapedia [omappedia.com], from which much of this information was borrowed.

Get qemu-utils:

And create an image

Let’s create a few partitions. We need a small partition (32mb in the example) for the bootloader, and the rest of the card can be ext4:

And now it’s time to put some files on our image. Let’s start with the Ubuntu core rootfs, available from here [cdimage.ubuntu.com].

Now’s a good time to tweak the file system. Let’s start by installing the packages that we need in order to compile Qt.

Here are a few other things which may be handy for development:

When we are done with the rootfs, unmount it:

Now it’s time to deal with the boot partition. There are other bootloaders out there, but U-boot is popular and easy to get working.

Ok, now you’ve got an image. As long as it’s been properly unmounted and you should be able to dd it to an SD card.

Build Qt

Make sure you have your native and cross-compilers installed. Ubuntu provides one (so does Linaro):

You will want to mount that rootfs from the previous section to make life easier when building Qt. From above:

Now configure (note the last 3 include arguments; these are required due to funky placement of the GBM/DRM headers in the TI repository):

Android

More to come…

Categories: