We once talked about "Building MeeGo Touch development environment under qt sdk". This article will introduce the Qt applications of MeeGo handset, including table manager and window manager, and various applications, you will see that Qt is everywhere. This article briefly introduces how to build a MeeGo Handset environment in Linux.
Download preparation SDK
Only two files are to be downloaded. One is the MeeGo image file and the other is the script file. You can refer to the following command
- zhu@CuteQt:~$ cd meego/
- zhu@CuteQt:~/meego$ wget http://download3.meego.com/meego-sdk-chroot
- zhu@CuteQt:~/meego$ chmod +x meego-sdk-chroot
- zhu@CuteQt:~/meego$ wget http://download3.meego.com/meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0729.tar.bz2
- zhu@CuteQt:~/meego$ tar xjf meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0729.tar.bz2
- zhu@CuteQt:~/meego$ mkdir rootfs
-
Execute to start the MeeGo Environment
In linux, MeeGo uses the chroot environment to run the ui on the Xephyr server. The command is as follows:
- zhu@CuteQt:~/meego$ sudo mount -o loop,offset=512 meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0729/meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0729.raw rootfs
- zhu@CuteQt:~/meego$ sudo ./meego-sdk-chroot rootfs/
- root@meego-handset-sdk:/# startmeego
-
Note the prompt before the command. startmeego runs in the chroot environment and is a script file. If you are interested, you can open it directly using vi. Now you can see the MeeGo running in Xephyr and perform operations.
Look at the source code
Since all the code is written by Qt, let's look at the source code. However, the package management tool in the downloaded MeeGo image file only contains Zypper and does not have Yum. You can run the following command to install the yum tool.
- root@meego-handset-sdk:/# zypper install yum
- root@meego-handset-sdk:/# zypper install yum-utils
-
Use yumdowloader-source packagename to download the source code. For example, if you want to view fennec-qt code, use the following command:
- root@meego-handset-sdk:/# yumdownloader –source fennec-qt
-
Unzip the rpm package by running the installation command. The source code is installed in the $ HOME/rpmbuild/SOURCES directory.
- root@meego-handset-sdk:/# rpm -i filename.rpm
-
Description
This article is the most basic introduction of Xephyr-based Development. MeeGo can also be developed in QEMU. I will write out my learning experience and communicate with you one after another.