1. David Boddie
  2. PyQt4 for Embedded Linux


Clone wiki

PyQt4 for Embedded Linux / Home

PyQt4 for Embedded Linux

This Wiki describes a set of patches for Python, Qt, SIP and PyQt4 that enable PyQt4 to be built for use with Qt for Embedded Linux, a version of Qt that uses the Linux framebuffer instead of an X server for rendering graphical user interfaces.

Use cases

The main use case for this package is cross-compiling PyQt to run on Embedded Linux devices. This requires that you have already installed a cross-compiler or build environment.

Qt can be extensively customized by removing classes and features in order to cut down the library size. Since PyQt is usually built with support for a fully-featured Qt library, it won't build against such custom Qt libraries. This package enables custom builds of PyQt to be built that correspond with a limited range of custom builds of Qt.

Qt for Embedded Linux includes support for a screen driver that works as a Virtual Network Computing (VNC) server. This can be useful in certain circumstances.

Getting the sources

The easiest way to get the sources is to clone the Mercurial repository using the following command line (as shown at the top of this page):

hg clone http://bitbucket.org/dboddie/pyqt4-for-embedded-linux/

This will create a `pyqt4-for-embedded-linux` directory containing the sources. You can update this to get the latest version by entering the directory and entering the following command:

hg pull

Note that if you modify the sources in your working directory, you may need to resolve any conflicts between changes made by others and those that you made yourself.

Building and Installing

The `README.txt` and `README.html` files provided describe the process of building and installing PyQt for the platform or configuration of Qt that you are using.

Prebuilt Libraries

Following an enquiry about libraries for a COM EXM32 development board, I have produced a set of pre-built libraries for the Freescale i.MX31 CPU. The sources for most of the dependencies are also included in this archive. Please see the `README.txt` file inside the archive for more information.