Contents
Setting Up Development Environment for MaemoMaemo is a software platform developed by Nokia for smartphones and Internet Tablets. The Maemo SDK provides an open development environment for different applications on top of the Maemo platform. The necessary tools from the Maemo SDK are also included in the Nokia Qt SDK. The whole tool chain that you need to create, build, debug, run, and deploy Maemo applictions is installed and configured when you install the Nokia Qt SDK. Maemo 5 is based on the Linux 2.6 operating system. For more information about the Maemo platform, see Software Platform on the Maemo web site. For more information about developing applications for the Maemo 5 platform, select Help > Index and look for Platform Notes, or see Platform Notes - Maemo 5. Hardware and Software RequirementsTo build and run Qt applications for Maemo, you need the following:
The Qt Creator/MADDE integration is supported on the following platforms:
Note: The only supported build system for Maemo in Qt Creator is qmake. Setting Up the Nokia N900You can connect your device to your development PC using either a USB or WLAN connection. For the device, you need to use a tool called Mad Developer to create the device-side end point for USB and WLAN connections. It provides no diagnostics functions but is essential for creating connections between the device and your development PC. To use a WLAN connection, you must activate WLAN on the device and connect it to the same WLAN as the development PC. The network address is displayed in the Mad Developer. To use an USB connection, you need to set up the Nokia N900 as a network device on the development PC. Note: If you plan to connect your development PC to the Nokia N900 only over WLAN, you can ignore the USB-specific parts in the following sections. Installing and Configuring Mad DeveloperInstall Mad Developer on a device and configure a connection between the development PC and the device. To install and configure Mad Developer:
Installing Qt Mobility APIsTo develop applications that use the Qt Mobility APIs, you must install the APIs on the devices. The APIs are not available in the Nokia N900 package manager, and therefore, you must install them from the command line as the root user. To become the root user you must first install rootsh from the application manager.
Setting Up Network Connectivity on Development PCUse the network configuration tools on your platform to specify the connection to the device on the development PC. You need to do this only if you use an USB connection. LinuxThe device uses the IP address 192.168.2.15 with the subnet 255.255.255.0 for its USB connection by default, so you can create the network interface with a different address inside the same subnet too. Note: If you have changed the IP address of the device when configuring Mad Developer, you need to reflect those changes in your development PC USB network settings. Run the following command in a shell as root user: ifconfig usb0 192.168.2.14 up WindowsWhen you connect the device to your Windows PC, Windows tries to install a driver for the Linux USB Ethernet connection. In the Found New Hardware Wizard, select No, not this time in the first dialog and Install the software automatically in the second dialog. To specify a network connection:
Depending on your version of Microsoft Windows you may have to unplug and re-plug the Nokia N900 to reload the driver with its configuration accordingly. Setting Up MADDEIf you install Nokia Qt SDK, the MADDE package is installed and configured automatically on your development PC and you can omit this task.
When you have installed the target, you have a toolchain and a sysroot environment for cross-compiling. Configuring Connections in Qt CreatorTo be able to run and debug applications on the Maemo emulator and devices, you must set up a connection to the emulator and the device in the Qt Creator build and run settings. If you install Nokia Qt SDK, the necessary software is installed and configured automatically and you only need to configure a connection to the device. By default, you create the connection as the developer user. This protects real user data on the device from getting corrupted during testing. If you write applications that use Mobility APIs, you might want to test them with real user data. To create a connection as a user, specify the Username and Password in Qt Creator. For more information, see Testing with User Data. You can protect the connections between Qt Creator and the Maemo emulator or a device by using either a password or an SSH key. You must always use a password for the initial connection, but can then deploy an SSH key and use it for subsequent connections. If you use a password, you must generate it in Mad Developer and enter it in Qt Creator every time you connect to the Maemo emulator or to a device. If you do not have an SSH key, you can create it in Qt Creator. Encrypted keys are not supported. For more information, see Generating SSH Keys. To configure connections between Qt Creator and the Maemo emulator or device:
Testing with User DataTo run your application as the default user, you must first assign a password for the user account and then create the connection to the device as the user:
Generating SSH KeysIf you do not have an SSH public and private key pair, you can generate it in Qt Creator. You can specify key length and the key algorithm, RSA or DSA. If you only use the keys to protect connections to the Maemo emulator or device, you can use the default values.
TroubleshootingThe addresses used in this example might be reserved by some other application in your network. If you cannot establish a connection, try the following optional configurations:
Note: VPN connections might block the device connection. [Previous: Setting Up a Generic Project] [Next: Setting Up Development Environment for Symbian] X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |