Meego Wiki
Views

MeeGo UX Components

From MeeGo wiki
Revision as of 01:06, 30 March 2011 by Dlawlor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Build the application in Qt Creator

Build only. No deployment as of yet.

Get the source code to the otc-components

 git clone ssh://git@git.meego.com/otc-components 

Patch for examples/meego-ux-widgetgallery/meego-ux-widgetgallery.pro

diff --git a/examples/meego-ux-widgetgallery/meego-ux-widgetgallery.pro b/examples/meego-ux-widgetgallery/meego-ux-widgetgallery.pro
index cf05e7d..7c4a5ef 100644
--- a/examples/meego-ux-widgetgallery/meego-ux-widgetgallery.pro
+++ b/examples/meego-ux-widgetgallery/meego-ux-widgetgallery.pro
@@ -3,7 +3,10 @@ TEMPLATE = subdirs
 TARGET = meego-ux-widgetgallery
 
 qmlfiles.files += *.qml images/
-qmlfiles.path += $$INSTALL_ROOT/usr/share/$$TARGET
+#qmlfiles.path += $$INSTALL_ROOT/usr/share/$$TARGET
+
+# workaround for INSTALL_ROOT not finding my sysroot
+qmlfiles.path += $$[QT_INSTALL_IMPORTS]/../../../../usr/share/$$TARGET
 
 INSTALLS += qmlfiles

Patch for src/src.pro

diff --git a/src/src.pro b/src/src.pro
index 45b3e33..550402f 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -57,4 +57,8 @@ HEADERS += \
 
 qmldir.files += $$QML_SOURCES
 qmldir.path  += $$[QT_INSTALL_IMPORTS]/MeeGo/Components
-INSTALLS += target qmldir
+
+debug_source.files += $$SOURCES $$HEADERS
+debug_source.path  += $$[QT_INSTALL_IMPORTS]/MeeGo/Components/src
+
+INSTALLS += target qmldir debug_source

Open this project with Qt Creator and choose the Tablet build from 3/26/11 for the build environment

Please un-check shadow build

Build -> Build All

Now you have to drop out of the SDK to complete the task...

In the otc-components source directory

sudo make install

this copies the files that need to be on your device or emulator to the sysroot

Now you have to get these files to your device.

(Here are the non-network instructions) mic-chroot to the Tablet 3/25 sysroot

 Ex. sudo mic-chroot -v /usr/lib/madde/linux-i686/sysroots/meego-tablet-ia32-oss-madde-sysroot-1.1.90.8.20110323.1-fs

cd to root of the sysroot

cd / 
tar cvfz widget-gallerly.tgz usr/lib/qt4/imports/MeeGo/Components/ usr/share/meego-ux-widgetgallery


Copy this tar file to your device and cd to / on your device and untar

cd /
tar xvfz <some-dir-on-device>/widget-gallerly.tgz

Now run the widget gallery

  make sure you're logged in as user meego, NOT root
 
meego-qml-launcher --opengl --fullscreen --app meego-ux-widgetgallery
Personal tools