This is an article translated from the MeeGo website. It is also a supplement to MeeGo mobile application development entry. It describes in detail how to use Xephyr to build the MeeGo SDK development environment.
Configure the Xephyr runtime environment of MeeGo SDK
Check whether the host contains an Intel Graphics chipset
- $ lspci | grep VGA
Expected output:
- 00:02.0 VGA compatible controller: ”’Intel Corporation”’ …
(Your system should preferably contain Intel Graphics chipset).
Download the MeeGo SDK corresponding to your target platform
Decompress the downloaded image file to the working directory.
- $ tar xvjf
Install meego-sdk-chroot script
The "meego-sdk-chroot" script sets the mount point of the chroot environment and correctly starts chroot. when the script exits, it will unmount all content mounted at startup and clear all processes loaded at startup. run the following command to download the script:
- $ wget http://download3.meego.com/meego-sdk-chroot
-
Add the executable permission for the meego-sdk-chroot script:
- $ chmod +x ./meego-sdk-chroot
-
Configure X on the host to allow Xephyr to access its display area (allow Xephyr to access the display)
- $ xhost +SI:localuser:
Example of allowing "bob" to access the X display area:
- $ xhost +SI:localuser:bob
-
(If your host restarts, run the xhost command again before running Xephyr or Qt Creator)
Mount and switch the root directory (chroot) to the MeeGo Image
Create a directory to mount the MeeGo image:
- $ mkdir
-
Mount the Meego image to the new directory:
- $ sudo mount -o loop,offset=512
-
Switch the root directory of the System Terminal (chroot) to the root directory of the MeeGo system:
- $ sudo ./meego-sdk-chroot
-
Example:
- $ sudo mkdir /opt/meego-handset
- $ sudo mount -o loop,offset=512 ./meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0721.raw /opt/meego-handset
- $ sudo ./meego-sdk-chroot /opt/meego-handset
-
After executing meego-sdk-chroot, the terminal output you see will be the following:
- mount –bind /proc /home/ell/meego-sdk-0524/proc
- mount –bind /sys /home/ell/meego-sdk-0524/sys
- mount –bind /dev /home/ell/meego-sdk-0524/dev
- mount –bind /dev/pts /home/ell/meego-sdk-0524/dev/pts
- mount –bind /tmp /home/ell/meego-sdk-0524/tmp
- mount –bind /var/lib/dbus /home/ell/meego-sdk-0524/var/lib/dbus
- mount –bind /var/run/dbus /home/ell/meego-sdk-0524/var/run/dbus
- cp /etc/resolv.conf /home/ell/meego-sdk-0524/etc/resolv.conf
- root@meego-handset-sdk:/#
-
Now you have entered the MeeGo terminal ". it is similar to running in the real MeeGo operating system, and the path, program, library, and environment are exactly the same as what you see on the MeeGo netbook or mobile phone.
Tip: "meego-sdk-chroot" will use the "chroot" command. Make sure that your PATH contains the "chroot" command:
- $ alias chroot=’/usr/sbin/chroot’