Difference between revisions of "HowtoQt"
Jump to navigation
Jump to search
m |
|||
Line 5: | Line 5: | ||
This guide assumes a Linux development environment, and Qt 4.8. The process for Qt 4.7.x is identical; no idea for Qt 5. | This guide assumes a Linux development environment, and Qt 4.8. The process for Qt 4.7.x is identical; no idea for Qt 5. | ||
− | The steps include | + | The steps include: |
− | + | # Getting and setting-up the Palm PDK | |
− | + | # Optionally: completing the PDK with some missing includes | |
− | + | # Getting Qt 4.8, setting it up for cross-compilation | |
− | + | # Cross-compilation of Qt 4.8 | |
− | + | # Updated webos port of Qt | |
− | + | # Application tweaks to look for libs in the right places | |
== 1. Getting and setting up the Palm PDK == | == 1. Getting and setting up the Palm PDK == | ||
+ | |||
+ | Qt is cross-compiled with the official Palm PDK. The PDK plays nice: it can be installed alongside the webos internals WIDK without conflicts; there is no need to modify paths or environment variables. | ||
+ | |||
+ | Note that I haven't "fully" installed the PDK. In particular I haven't set-up the emulator. The basic stuff needed are: the arm gcc toolchain, and novacom to communicate with the device. | ||
+ | |||
+ | # Read about the [https://developer.palm.com/content/resources/develop/sdk_pdk_download.html#linux Palm SDK 3.05] | ||
+ | ## Download novacom from that page | ||
+ | ## Download the SDK from that page | ||
+ | ## Install novacom and the SDK following the instructions. I.e.: | ||
+ | sudo dpkg -i palm-sdk_3.0.5-svn528736-pho676_i386.deb | ||
+ | sudo dpkg -i palm-novacom_1.0.80_i386.deb | ||
+ | ## The SDK is now in /opt/PalmPDK | ||
+ | |||
+ | |||
+ | |||
+ | == 2. Optional: Getting and setting up the Palm PDK == |
Revision as of 14:18, 4 February 2012
Qt and QML on WebOS devices
This document explains how to set-up Qt 4.8 (Trolltech/Nokia's cross-platform application and UI framework) on WebOS devices, and then how to cross-compile Qt or QML apps.
This guide assumes a Linux development environment, and Qt 4.8. The process for Qt 4.7.x is identical; no idea for Qt 5.
The steps include:
- Getting and setting-up the Palm PDK
- Optionally: completing the PDK with some missing includes
- Getting Qt 4.8, setting it up for cross-compilation
- Cross-compilation of Qt 4.8
- Updated webos port of Qt
- Application tweaks to look for libs in the right places
1. Getting and setting up the Palm PDK
Qt is cross-compiled with the official Palm PDK. The PDK plays nice: it can be installed alongside the webos internals WIDK without conflicts; there is no need to modify paths or environment variables.
Note that I haven't "fully" installed the PDK. In particular I haven't set-up the emulator. The basic stuff needed are: the arm gcc toolchain, and novacom to communicate with the device.
- Read about the Palm SDK 3.05
- Download novacom from that page
- Download the SDK from that page
- Install novacom and the SDK following the instructions. I.e.:
sudo dpkg -i palm-sdk_3.0.5-svn528736-pho676_i386.deb sudo dpkg -i palm-novacom_1.0.80_i386.deb
- The SDK is now in /opt/PalmPDK