Meego Wiki
Views

MeeGo UX Components Chroot Tutorial

From MeeGo wiki
Revision as of 21:27, 11 April 2011 by Dlawlor (Talk | contribs)
Jump to: navigation, search

Overview

This tutorial will take the developer through the process of building from source the meego-ux-components package in a chroot development environment on Linux.

This tutorial is based on the MeeGo SDK 1.2 Preview (with Tablet) release.

This tutorial was created with a specific Tablet Build (04-01-2011) and has specific instructions related to that build. Specifically, a git checkout of a tag is required.

Prerequisites


Steps

Step 1. Get the latest source of the meego-ux-components cd ~/meego.gitorious git clone http://git.gitorious.org/meego-ux/meego-qml-launcher.git

Step 2. Download the 4/1 version of the QEMU image: http://download.meego.com/trunk-daily/builds/1.1.90/1.1.99.1.20110401.1/images/meego-tablet-ia32-qemu/

Step 3. Un-tar to get the .raw image

Step 4. Make a fs copy of the image: sudo mic-chroot -s ./chroot0405 -v Downloads/meego-tablet-ia32-qemu-1.1.99.1.20110405.3.img <exit the chroot>

Step 5. mount --bind your source directory to a directory in the fs chroot sudo mount -B /home/dlawlor/meego.gitorious/meego-ux-components meego-ux-components

Step 5. start the chroot sudo mic-chroot ./chroot0401

Step 6. Before building the sources, you need to git checkout a version that will work with the 4/1 tablet image: git checkout 0.2.1

Step 7. startmeego to get all the MeeGO services started: startmeego &

    1. Note - it will be helpful to edit the script

/usr/bin/startmeego-debug-tablet

    1. Change: Xephyr $DISP -screen 1024x600
    2. To: Xephyr $DISP -screen 1280x800

Step 8. Start Qt Creator (in the mic-chroot terminal) qtcreator &

Step 9: Install packages needed to build meego-ux-components zypper in libXdamage-devel zypper in libXcomposite-devel zypper in libX11-devel zypper in kcalcore-devel zypper in qt-mobility-devel zypper in libqtopengl-devel zypper in libcontentaction-devel zypper in contextkit-devel zypper in mlite zypper in libexif-devel

  1. . Install

cd ../meego-ux-components-build-desktop #If shadow build was checked make install

  1. . Run meego-ux-widgetgallery in a separate window

qmlviewer /usr/share/meego-ux-widgetgallery/main.qml

  1. . Run meego-ux-widgetgallery in the Xephyr startmeego window

export DISPLAY=:2 qmlviewer /usr/share/meego-ux-widgetgallery/main.qml

  1. . Run meego-ux-widgetgallery directly from the MeeGo environment
  2. in the Xephyr Window, hit the Home (Windows) key
  3. Choose the App Viewer
  4. Click on Terminal
  5. run this command in the terminal window:

qmlviewer /usr/share/meego-ux-widgetgallery/main.qml

  1. you can also copy an existing .desktop file and change the exec

statement to meego-ux-widgetgallery if you want to click on an icon to start it.

Personal tools