Contents
- 1 Introduction
- 2. Environment Configuration
- 3. Create a project
- 4. Connect to the real machine
- 5 Running Effect
- 6. Download the source code and sample programs.
- 7 related links
Introduction
This article demonstrates how to develop a basic ghost program.
Environment Configuration
First download the latest qt sdk 1.1.2. Do not use the default installation during installation. Select custom installation. Remember to check the installation before Harmattan, in this way, the installation program installs the environment used to develop the meego platform on the machine.
Create a project
Create a Harmattan project as follows:
The name here is hellomeego. Follow the default settings in the following steps and click Finish at the last step. Now we have created a simple program on the meego platform.
Connect to a real machine
In order to see the running effect of our new program on the real machine, we need to configure our testing mobile phone and QT creator. First, switch to the project View:
Click "manage device configurations"
Click "add" in the pop-up window"
In the pop-up window, set a name for the new configuration. Here we call it meego device. Then click Next. You can follow the default settings for subsequent steps. Next we will go to the step of setting the key:
Select a path and click "create keys.
Next, we need to deploy the private key on the mobile phone. In this case, follow the prompts in the window.
Open SDK connectivity on the meego mobile phone. If you are using a USB connection, select USB, and then you will see the password in:
Enter the above password in the previous interface and click "deploy. As shown in, the deployment is successful.
Then we came to the last step:
Finally, test whether the computer and the mobile phone are connected. The following interface indicates that the connection is successful.
Here, we have set the new "meego device" configuration.
Next we will use this new configuration. Switch the device configuration to "meego device", as shown in:
Finally, click "run" to see the effect on the meego mobile phone:
Running Effect
The following shows the running effect of the Program on meego: