Mobile/Build/Maemo Build Instructions: Difference between revisions

Cleanup of the section Running the Application to make it clearer when commands are run from the host and when they're run from the target, while also allowing easy copying and pasting of the commands
(header tweak)
(Cleanup of the section Running the Application to make it clearer when commands are run from the host and when they're run from the target, while also allowing easy copying and pasting of the commands)
Line 110: Line 110:
</pre></code>
</pre></code>


==Running the Application==
==Running your Build==


To run your build in scratchbox, you'll need to install xephyr from your host machine.  Fortunately if you are on a Debian based system (such as Ubuntu), this couldn't be easier. Just run, from your host machine:
To run your build in scratchbox, you'll need to install xephyr from your host machine (i.e. outside scratchbox).  Fortunately, if you are on a Debian based system such as Ubuntu, this couldn't be easier. Just run:


<code><pre>sudo apt-get install xserver-xephyr</pre></code>
<code><pre>sudo apt-get install xserver-xephyr</pre></code>


To start the xephyr server, run the following from the host machine:
To start the xephyr server, run the following from the host machine (outside scratchbox):


<code><pre>Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite</pre></code>
<code><pre>Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite</pre></code>


once the xephyr xserver is running, you can launch your build from within scratchbox:
Once the xephyr xserver is running, it will open a window that can be used to display your build. Run your build by logging into scratchbox and then running the following commands:


<code><pre>
<code><pre>
$ scratchbox
sb-conf select CHINOOK_X86
[sbox-CHINOOK_X86:~] > sb-conf select CHINOOK_X86
export DISPLAY=:2
[sbox-CHINOOK_X86:~] > export DISPLAY=:2
af-sb-init.sh start
[sbox-CHINOOK_X86:~] > af-sb-init.sh start
cd moz1.9/mozilla/obj-dir-browser-chinook-armel/dist/bin
[sbox-CHINOOK_X86:~] > cd moz1.9/mozilla/obj-dir-browser-chinook-armel/dist/bin
GRE_HOME=. ./run-mozilla.sh ./TestGtkEmbed # this is not yet runnable  
[sbox-CHINOOK_X86:~] > GRE_HOME=. ./run-mozilla.sh ./TestGtkEmbed # this is not yet runnable  
 
or
or


[sbox-CHINOOK_X86:~] > GRE_HOME=. ./run-mozilla.sh ./firefox
GRE_HOME=. ./run-mozilla.sh ./firefox
</pre></code>
</pre></code>


Confirmed users, Bureaucrats and Sysops emeriti
969

edits