Namespaces
Variants
Actions
Revision as of 12:47, 20 July 2012 by hamishwillee (Talk | contribs)

Compile and run Qt application for Maemo

Jump to: navigation, search
Article Metadata

Article
Created: r60600 (22 Mar 2010)
Last edited: hamishwillee (20 Jul 2012)
Warning.png
This article does not meet the wiki quality standards: Please make it more useful by adding links or additional information as discussed in the quality standards. When you have done so you can delete the {{NeedsMoreWork}} template from the article to remove this warning.

Using Creator in Qt SDK for Maemo,developers can design UI and edit engine of an application with its drag-and-drop graphical designer and auto-complete text editor easily.And the Qt project can be compiled and run via command line in real or virtual Linux system.Certainly, the Integrated Development Environment and Qt SDK for Maemo must be also installed correctly.

The way is:

Open a terminal window from Linux desktop.

maemo@maemo-desktop:~$ cp -r /home/maemo/projects/anApplication/

/scratchbox/users/maemo/home/maemo/workspace/anApplication

maemo@maemo-desktop:~$ scratchbox

.

.

.

[sbox-REEMANTLE_X86: ~] > cd workspace/anApplication/

[sbox-REEMANTLE_X86: ~/workspace/anApplication/ ] > qmake -project

[sbox-REEMANTLE_X86: ~/workspace/anApplication/ ] > qmake anApplication.pro

[sbox-REEMANTLE_X86: ~/workspace/anApplication/ ] > make

.

.

.

[sbox-REEMANTLE_X86: ~/workspace/anApplication/ ] >


And open another terminal window,

maemo@maemo-desktop:~$ Xephyr  :2 -host -cursor -screen 800*480*16 -dpi 96 -ac

then a Xephyr window displayed, and back to first window.

[sbox-REEMANTLE_X86: ~/workspace/anApplication/ ] > export DISPLAY=:2

[sbox-REEMANTLE_X86: ~/workspace/anApplication/ ] > ./anApplication

.

.

.

At last,the application compiled will run in the Xephyr window.

168 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved