(→Use Qt Creator to develop MeeGo Applications) |
|||
| Line 131: | Line 131: | ||
[[File:Qemu-handset-debug.png|800px]] | [[File:Qemu-handset-debug.png|800px]] | ||
</ol> | </ol> | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
=== Configure Qt Creator to work with real devices === | === Configure Qt Creator to work with real devices === | ||
| - | |||
<ol> | <ol> | ||
<li> Go to Tools -> Options -> Projects -> MeeGo Device Configurations and click "Add" button. Select "Remote Device" for "Device type", input other information and give a name for this configuration</li> | <li> Go to Tools -> Options -> Projects -> MeeGo Device Configurations and click "Add" button. Select "Remote Device" for "Device type", input other information and give a name for this configuration</li> | ||
| Line 164: | Line 154: | ||
4, unmount the image | 4, unmount the image | ||
sudo umount /mnt | sudo umount /mnt | ||
| + | |||
| + | == How to SSH into QEMU Image == | ||
| + | Anytime MeeGo is running in QEMU, you can use SSH to connect to the image from another terminal on the host system. | ||
| + | <ol><li>Launch QEMU with MeeGo image (step #5 above)</li> | ||
| + | <li>From a terminal on the host, connect to the running image</li> | ||
| + | $ ssh meego@127.0.0.1 -p 6666 | ||
| + | </ol> | ||
| + | Two user accounts are available in the MeeGo images:<br> | ||
| + | User: meego Password: meego<br> | ||
| + | User: root Password: meego<br> | ||
Note: This page contains instructions on install MeeGo SDK for Windows, and use it to build/deploy/debug apps.
Contents |
Maxayu 01:33, 30 November 2010 (UTC)
Check SDK/History Status of MeeGo SDK for Windows for more history status.
| File | Description | Size | MD5SUM |
|---|---|---|---|
| http://download3.meego.com/MeeGoSDK/1.1/meego-1.1-sdk-beta-online-installer.exe | MeeGo SDK Windows online installer | 14MB | 0d1f92c90232641f8b638727886e6874 |
| http://download3.meego.com/MeeGoSDK/1.1/meego-1.1-sdk-beta-offline-installer.exe | MeeGo SDK Windows offline installer | 54MB | be824c3e19e849aa69582689f65eaafa |
.exe file and follow the prompts to install the SDK.C:\MeeGoSDK_1.1; replace <target_name> with the name of the target (for example, meego-handset-ia32-w32-1.1).Go to the menu: File -> New File or Project -> Qt Application Project -> Meego Touch Framework Application.
In "Project setup" dialog, choose "meego-handset".
Notice: The kqemu could only be used on 32-bit Windows. 64-bit Windows could not work with kqemu. You can not use emulator on 64-bit Windows. Use real device instead.
Download package from http://wiki.qemu.org/download/kqemu-1.4.0pre1.tar.gz
Get the kqemu.inf and kqemu.sys files from above package
For Windows XP system, right click the kqemu.inf file and select "install".
For Windows 7 or Windows Vista system, edit the kqemu.inf file to do below changes, and then right click the kqemu.inf, select "install".
[DefaultInstall.NT] --> [DefaultInstall] [DefaultInstall.NT.Services] --> [DefaultInstall.Services] [Uninstall.NT] --> [Uninstall] [Uninstall.NT.Services] --> [Uninstall.Services]
Start the kqemu manually. Select Start > All Programs > Accessories, click right mouse button over Command Prompt, and select "Run as administrator". In Command Prompt, run the following command:
net start kqemu
You need to start kqemu again after you reboot the system.
Get to the menu: Tools -> Options -> Projects -> MeeGo Device Configurations. Click "Add" button to add a runtime for emulator. Set "Device type" to "MeeGo emulator"; set "Authentication type" to "Password"; set "Username" to "root"; set "Password" to "meego".
Click "Projects" again on the left side. Select "Run" in the MeeGo Build/Run box at the top. Make sure that the "Device configuration" is set to "MeeGo Emulator". This will ensure that QEMU is started when you run your application. You can now launch the QEMU MeeGo emulator. Click the "Start Meego emulator" icon near the bottom left corner of Qt Creator (circled in red in the screenshot below).
After QEMU starts, click the "Run" icon to run your application. Qt Creator will package and deploy your application to QEMU and start it on the target. You can see the window of your application in QEMU.
You can also debug the application by clicking the "Debug" icon. Setting breakpoints and stepping are the same as local applications.
The QEMU images for SDK on Linux could be built from the kick start file by using mic-image-creator tool (command to run the mic-image-creator could be found in each ks file). Ideally the images are host platform independent. However, due to the booting time and some other issues with kqemu, minor changes were done on the images obtained from ks file so that they could boot up successfully on Windows. Suppose you have had a raw image, say abc.raw, built from kick start file in hand, below are the changes needed:
1, mount into the image
sudo mount -o loop,offset=512 abc.raw /mnt
2, edit /mnt/usr/sbin/meego-dm to add "sleep 1" to solve bug #10412: mouse udev not ready ...
sleep 1 # new added line shopt -s execfail
3, edit /mnt/boot/extlinux/extlinux.conf to add kernel option "intel_idle.max-cstate=0" to solve bug #10149: Home screen can't show up ...
append ro root=/dev/sda1 vga=current intel_idle.max-cstate=0 quiet
4, unmount the image
sudo umount /mnt
Anytime MeeGo is running in QEMU, you can use SSH to connect to the image from another terminal on the host system.
$ ssh meego@127.0.0.1 -p 6666
Two user accounts are available in the MeeGo images:
User: meego Password: meego
User: root Password: meego