How to run OpenMoko Apps on PC

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Run the examples)
(Run the examples)
Line 26: Line 26:
  
 
===Run the examples===
 
===Run the examples===
 +
 +
==== Naked ====
  
 
   bin/openmoko-stylus-demo
 
   bin/openmoko-stylus-demo
 
   bin/openmoko-finger-demo
 
   bin/openmoko-finger-demo
 
   bin/openmoko-chordmaster
 
   bin/openmoko-chordmaster
 +
 +
==== In Xoo ===
 +
 +
Adjust svn://src/target/OM-2007/devel/scripts/launch-xoo to your needs (you may need to build some dependencies forehand)
 +
Then set DISPLAY=:1 and run the examples

Revision as of 12:17, 16 February 2007

Contents

Install dependencies

  • use aptitude, apt-get, urpmi, or whatever your distro supports
    • Under ubuntu: apt-get install libgtk2.0-dev pulls in everything necessary
  • you will probably need
    • gtk-dev
    • pango-dev
    • atk-dev
    • qmake from Qt4 (libqt4-dev on Debian)

Build everything in one run using Qmake

NOTE: qmake is Mickey's preferred build tool, you can use autotools as well...


 cd <svn-checkout>/src/target/OM-2007
 . ./makevars.sh
 qmake
 make

Now the applications should be found in ./bin.

Set your theme to OpenMoko

Edit $HOME/.gtkrc-2.0 to something like that:

 include "<PATH-to-svn-checkout>/src/target/OM-2007/artwork/themes/openmoko-standard/gtk-2.0/gtkrc"

Run the examples

Naked

 bin/openmoko-stylus-demo
 bin/openmoko-finger-demo
 bin/openmoko-chordmaster

= In Xoo

Adjust svn://src/target/OM-2007/devel/scripts/launch-xoo to your needs (you may need to build some dependencies forehand) Then set DISPLAY=:1 and run the examples

Personal tools

Install dependencies

  • use aptitude, apt-get, urpmi, or whatever your distro supports
    • Under ubuntu: apt-get install libgtk2.0-dev pulls in everything necessary
  • you will probably need
    • gtk-dev
    • pango-dev
    • atk-dev
    • qmake from Qt4 (libqt4-dev on Debian)

Build everything in one run using Qmake

NOTE: qmake is Mickey's preferred build tool, you can use autotools as well...


 cd <svn-checkout>/src/target/OM-2007
 . ./makevars.sh
 qmake
 make

Now the applications should be found in ./bin.

Set your theme to OpenMoko

Edit $HOME/.gtkrc-2.0 to something like that:

 include "<PATH-to-svn-checkout>/src/target/OM-2007/artwork/themes/openmoko-standard/gtk-2.0/gtkrc"

Run the examples

Naked

 bin/openmoko-stylus-demo
 bin/openmoko-finger-demo
 bin/openmoko-chordmaster

= In Xoo

Adjust svn://src/target/OM-2007/devel/scripts/launch-xoo to your needs (you may need to build some dependencies forehand) Then set DISPLAY=:1 and run the examples