Collabora Notes: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Line 5: Line 5:
Collaborans are interested in building E10s on a machine on which Scratchbox is also installed, on which the Maemo SDK can be installed, and on which one can cross-compile to the ARM architecture.  
Collaborans are interested in building E10s on a machine on which Scratchbox is also installed, on which the Maemo SDK can be installed, and on which one can cross-compile to the ARM architecture.  


== Xen Image  ==
= XEN IMAGE =


One way to obtain the desired build environment is to obtain a virtual machine image that is properly configured. I (robin_bb) have created such an image. It was current in August 2009.  
One way to obtain the desired build environment is to obtain a virtual machine image that is properly configured. I (robin_bb) have created such an image. It was current in August 2009.  
Line 13: Line 13:
<br>  
<br>  


In order to use that image, you'll need the [http://www.xen.org/ Xen virtual machine] correctly installed and setup on your box.
In order to use that image, you'll need the [http://www.xen.org/ Xen virtual machine] correctly installed and setup on your box.  


== Installing Scratchbox  ==
= MANUAL&nbsp;SETUP<br> =


In order to build [https://developer.mozilla.org/en/Build_Documentation firefox], [https://wiki.mozilla.org/Mobile/Build fennec] or [https://wiki.mozilla.org/Content_Processes/Build e10s] (electrolysis) for the maemo platform on the N810, N900 (rover) or Devlon-2, you have to cross-compile the mozilla codebase for the ARM processor.
== Installing Scratchbox Apophis  ==


For that, you need [http://www.scratchbox.org/download/ Scratchbox Apophis]
''NOTE: There are actually two scratchbox versions supported by Nokia, namely Scratchbox 1.0 (Apophis) and Scratchbox2. Both allow electrolysis to build under maemo for ARM processors, but this document will only pertain to version 1.0.''<br>


==== Install from repositories<br> ====


If you're running DEBIAN or UBUNTU, there's good chances that your distro's repositories keep an up-to-date version of Scratchbox Apophis. If so, install it throught the package manager.


Once you have scratchbox installed, you can clone the mozilla codebase repository.
==== Install manually<br> ====
 
In any cases, you can also manually install Scratchbox 1.0. In order to build [https://developer.mozilla.org/en/Build_Documentation firefox], [https://wiki.mozilla.org/Mobile/Build fennec] or [https://wiki.mozilla.org/Content_Processes/Build e10s] (electrolysis) for the maemo platform on the N810, N900 (rover) or Devlon-2, you have to cross-compile the mozilla codebase for the ARM processor.
 
For that, you need [http://www.scratchbox.org/download/ Scratchbox Apophis].
 
 
 
 
 
Once you have scratchbox installed, you can clone the mozilla codebase repository.  


If you want to build the code for different platforms and different processors, we really recommend that you put the codebase somewhere *UNDER* the /scratchbox directory, because scratchbox console is chroot'ed to the /scratchbox.  
If you want to build the code for different platforms and different processors, we really recommend that you put the codebase somewhere *UNDER* the /scratchbox directory, because scratchbox console is chroot'ed to the /scratchbox.  


Best location is /scratchbox/users/&lt;username&gt;/home/&lt;username&gt;/mozilla/
Best location is /scratchbox/users/&lt;username&gt;/home/&lt;username&gt;/mozilla/  


<br>


<br>


Note:


The scratchbox '_X86' targets don't add extra value to the build and since your SB build environment might not be as complete&nbsp; So there's really little need for the XXX_X86 targets in Scratchbox. When you want to build for X86 processors, do it directly from your preferred linux console.


Note:
== Installing Maemo SDK<br>  ==


The scratchbox '_X86' targets don't add extra value to the build and since your SB build environment might not be as complete&nbsp; So there's really little need for the XXX_X86 targets in Scratchbox. When you want to build for X86 processors, do it directly from your preferred linux console.
As a Collabora developer, you might be targetting a specific maemo platform version.  


== Installing Maemo SDK<br> ==
== Pulling the mozilla codebase<br> ==


As a Collabora developer, you might be targetting a specific maemo platform version.
== Building<br> ==


== Running/Testing your build<br> ==


<br>


== Building E10s  ==
== Building E10s  ==
= BUILDING&nbsp;UNDER&nbsp;WIN32<br> =
== Installing dev. environment<br> ==
== Installing ext3 fileSystem<br> ==
== Setting MSVC up<br> ==
== Building<br> ==

Navigation menu