Configure the Xephyr runtime environment of MeeGo SDK in Qt framework (1)

Source: Internet
Author: User

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

 
 
  1. $ lspci | grep VGA  

Expected output:

 
 
  1. 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.

 
 
  1. $ 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:

 
 
  1. $ wget http://download3.meego.com/meego-sdk-chroot  
  2.  

Add the executable permission for the meego-sdk-chroot script:

 
 
  1. $ chmod +x ./meego-sdk-chroot  
  2.  

Configure X on the host to allow Xephyr to access its display area (allow Xephyr to access the display)

 
 
  1. $ xhost +SI:localuser:  

Example of allowing "bob" to access the X display area:

 
 
  1. $ xhost +SI:localuser:bob  
  2.  

(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:

 
 
  1. $ mkdir   
  2.  

Mount the Meego image to the new directory:

 
 
  1. $ sudo mount -o loop,offset=512 
  2.  

Switch the root directory of the System Terminal (chroot) to the root directory of the MeeGo system:

 
 
  1. $ sudo ./meego-sdk-chroot  
  2.  

Example:

 
 
  1. $ sudo mkdir /opt/meego-handset  
  2. $ sudo mount -o loop,offset=512 ./meego-handset-ia32-1.0.80.9.20100706.1-sdk-pre0721.raw /opt/meego-handset  
  3. $ sudo ./meego-sdk-chroot /opt/meego-handset  
  4.  

After executing meego-sdk-chroot, the terminal output you see will be the following:

 
 
  1. mount –bind /proc /home/ell/meego-sdk-0524/proc  
  2. mount –bind /sys /home/ell/meego-sdk-0524/sys  
  3. mount –bind /dev /home/ell/meego-sdk-0524/dev  
  4. mount –bind /dev/pts /home/ell/meego-sdk-0524/dev/pts  
  5. mount –bind /tmp /home/ell/meego-sdk-0524/tmp  
  6. mount –bind /var/lib/dbus /home/ell/meego-sdk-0524/var/lib/dbus  
  7. mount –bind /var/run/dbus /home/ell/meego-sdk-0524/var/run/dbus  
  8. cp /etc/resolv.conf /home/ell/meego-sdk-0524/etc/resolv.conf  
  9. root@meego-handset-sdk:/#  
  10.  

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:

 
 
  1. $ alias chroot=’/usr/sbin/chroot’  


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.