Qt Reference Documentation

Platform Notes - INTEGRITY

This page contains information about the Qt for INTEGRITY port. More information about the combinations of platforms and compilers supported by Qt can be found on the Supported Platforms page.

Note that Qt for INTEGRITY is currently based on Qt for Embedded Linux, which contains its own windowing system (QWS).

Qt for INTEGRITY contains experimental screen driver based on the gh_FB Framebuffer API and experimental connection-based mouse and keyboard input drivers. For information about these drivers, please refer to Green Hills Software standard support.

Supported Versions

Qt has been tested on INTEGRITY 10 on various ARM and x86 targets. On some platforms a native graphics FrameBuffer driver is available and has been used for testing. On all other platforms, the default FrameBuffer VNC driver is used.

Qt 4.8.2 has been tested also on INTEGRITY 5.2.2 on x86 target and is proven to be functional. To get third party module libpng compiling for INTEGRITY 5.2.2 one modification is needed, definition of _POSIX_SOURCE must be removed. This can be done manually by just commenting code lines from libpng library that define the flag in question or if you prefer you can request a patch from Qt Commercial standard support via customer portal. If libpng is not needed then better solution is to remove whole libpng from Qt by configuring Qt with extra parameter -no-libpng.

Module Status

Modules for general software developmentStatus
QtCoreCore non-graphical classes used by other modulesSupported
QtGuiGraphical user interface (GUI) componentsSupported
QtMultimediaClasses for low-level multimedia functionalityNot available
QtNetworkClasses for network programmingSupported
QtOpenGLOpenGL support classesNot available
QtOpenVGOpenVG support classesNot available
QtScriptClasses for evaluating Qt ScriptsNot available
QtScriptToolsAdditional Qt Script componentsNot available
QtSqlClasses for database integration using SQLSupported
QtSvgClasses for displaying the contents of SVG filesSupported
QtWebKitClasses for displaying and editing Web contentNot available
QtXmlClasses for handling XMLSupported
QtXmlPatternsAn XQuery & XPath engine for XML and custom data modelsNot available
QtDeclarativeAn engine for declaratively building fluid user interfaces.Not available
PhononMultimedia framework classesNot available
Qt3SupportQt 3 compatibility classesNot available
Modules for working with Qt's tools
QtDesignerClasses for extending Qt DesignerNot available
QtUiToolsClasses for handling Qt Designer forms in applicationsNot available
QtHelpClasses for online helpNot available
QtTestTool classes for unit testingSupported
Modules for Windows developers
QAxContainerExtension for accessing ActiveX controlsNot available
QAxServerExtension for writing ActiveX serversNot available
Modules for Unix developers
QtDBusClasses for Inter-Process Communication using the D-BusNot available

Disabled Features

FeatureNotes
PCH supportPrecompiled headersNot available
IPv6 supportNot available
IPv6 ifname supportNot available
getaddrinfo supportNot available
getifaddrs supportNot available
AccessibilityAccessibilityNot available
NIS supportNetwork Information ServiceNot available
Iconv supportNot available
Glib supportNot available
GStreamer supportNot available
Audio supportNot available
Large File supportNot available
GIF supportNot available
TIFF supportNot available
Session managementSession managementNot available
OpenSSL supportOpenSSL toolkitNot available
ICD supportInternet Connectivity DaemonNot available
libICU supportInternational Components for UnicodeNot available
Process suportQProcessNot available
Printer supportPrintingNot available
Monotonic clock supportNot available
Exception supportNot available
Semaphore supportNot available
System semaphore supportNot available
Shared memory supportShared memoryNot available
SXE supportSafe Execution EnvironmentNot available
QWS QPF2 supportQPF2 fontNot available
QWS multiprocess supportNot available
QWS multiscreen supportNot available
QWS shared fonts supportNot available
QWS transformed supportQt for Embedded Linux Display ManagementNot available

Other Limitations

  • Only static linking is supported.

Development environment setup

  • Qt side: Download Qt Commercial source code package and extract it to your development directory.
  • INTEGRITY side: Acquire suitable BSP for your target hardware from Green Hills Software and apply the needed patches to get FrameBuffer driver working on your target. For detailed instructions please contact Green Hills Software standard support. Building Qt for INTEGRITY requires a standard installation of INTEGRITY, with the addition of the FrameBuffer API.

Build Instructions

Configuration

Example configure line for cross-compiling Qt for ARM INTEGRITY target on Linux host:

 ./configure --hostprefix=`cd .; pwd` -embedded integrity -xplatform qws/integrity-arm-cxarm -little-endian -prefix / -qt-sql-sqlite
  • --hostprefix=`cd .; pwd` - specifies the current directory as the base source for Qt
  • -embedded integrity - builds the embedded version of Qt and sets the architecture to INTEGRITY
  • -xplatform qws/integrity-arm-cxarm - selects the arm-cxarm mkspec for INTEGRITY
  • -qt-sql-sqlite - links sqlite directly into the Qt library

Example configure line for cross-compiling Qt for ARM INTEGRITY target on Windows host:

Note! MSVC 2008 (Express) or newer is required to build Qt host tools on Windows. You should run following example commands in MSVC Command Prompt.

 configure.exe -embedded -xplatform qws/integrity-x86-cx86 -prefix / -qt-sql-sqlite
  • -embedded - builds the embedded version of Qt
  • -xplatform qws/integrity-arm-cxarm - selects the arm-cxarm mkspec for INTEGRITY
  • -qt-sql-sqlite - links sqlite directly into the Qt library

The above command will generate MULTI .gpj Project files, not Makefiles. The main benefit of using these project files is automatic dependency checking, but this also provides an organization known to INTEGRITY customers. For Qt libraries, the top-level file is projects.gpj.

After configuration you need to edit two lines from the generated projects.gpj file:

On Linux host:

  • Edit the "macro __OS_DIR=/enter/your/path/to/INTEGRITY" line to point to directory where INTEGRITY is istalled. e.g. /usr/ghs/int1002
  • Edit the "-bsp enter_your_bsp_name_here" line to tell which bsp you are using. e.g. simarm

On Windows host:

  • Edit the "macro __OS_DIR=/enter/your/path/to/INTEGRITY" line to point to directory where INTEGRITY is istalled. e.g. c:\usr\ghs\int1002
  • Edit the "-bsp enter_your_bsp_name_here" line to tell which bsp you are using. e.g. simarm

Building Host Tools

Before you can build Qt you must first build the needed host tools. This can be done by typing the following command from your Qt source root directory.

On Linux host:

    cd src/tools/bootstrap && make && cd ../rcc && make && cd ../moc && make && cd ../uic && make clean && make && cd ../../..

On Windows host:

    cd src\tools\bootstrap && make && cd ..\rcc && make && cd ..\moc && make && cd ..\uic && make clean && make && cd ..\..\..

Building Qt

You are now ready to build Qt for INTEGRITY. To build Qt you have two options, you can either use MULTI IDE or you can compile Qt directly from terminal by using GHS gbuild compiler.

  • To build Qt with MULTI IDE open the generated projects.gpj in MULTI project manager and click build.
  • To build Qt in terminal type following command (note: make sure that gbuild is in the PATH)
        gbuild -top projects.gpj

General Notes

  • When you run qmake on your project the default .int files are generated. You may want to modify the amount of heap assigned to each example by modifying the HeapSize declaration in the specific example .int file.
  • Some of the tools, examples and demos do not compile due to dependencies on QProcess or other classes that are not available on INTEGRITY.