Difference between revisions of "Ubuntu Build Instructions"

From Apache OpenOffice Wiki
Jump to: navigation, search
(added chdir to main and autoconf setp)
(rearrangement, rephrasing and emphasizing that this page is about the prerequisites and the building guide is the next step)
Line 4: Line 4:
 
}}
 
}}
 
{{Documentation/Note|Please add only Ubuntu-specifics here! Use the information on the [[Development/OpenOffice.org Building Guide/Building on Linux|Building Guide]] and only fall back to this document if you need help with Ubuntu-specifics (like package names).}}
 
{{Documentation/Note|Please add only Ubuntu-specifics here! Use the information on the [[Development/OpenOffice.org Building Guide/Building on Linux|Building Guide]] and only fall back to this document if you need help with Ubuntu-specifics (like package names).}}
== Ubuntu==
 
  
To build you need the following packages:
+
== Preparing to build Apache OpenOffice on Ubuntu ==
 +
 
 +
To get and build Apache OpenOffice you need some packages. You can get them with:
 
<pre>
 
<pre>
sudo apt-get install g++ gcc bison flex libarchive-zip-perl libcups2-dev libpam0g-dev \
+
sudo apt-get install svn g++ gcc bison flex libarchive-zip-perl libcups2-dev libpam0g-dev \
 
gperf libfreetype6-dev libxaw7-dev libfontconfig1-dev libxrandr-dev patch \
 
gperf libfreetype6-dev libxaw7-dev libfontconfig1-dev libxrandr-dev patch \
 
libgconf2-dev libgnomevfs2-dev ant libgtk2.0-dev junit junit4 libidl-dev liborbit2-dev</pre>
 
libgconf2-dev libgnomevfs2-dev ant libgtk2.0-dev junit junit4 libidl-dev liborbit2-dev</pre>
  
The java package depends on your Ubuntu version.
+
In case you want to use some libraries your system instead of building them yourself you should get their development packages by running:
 +
 
 +
<pre>
 +
sudo apt-get install python-dev ccache libgraphite-dev \
 +
libwpd-dev libxslt-dev libhunspell-dev libaltlinuxhyph-dev
 +
</pre>
 +
 
 +
The java package depends on your Ubuntu version:
  
 
For 9.10 Karmic Koala and Ubuntu 10.04 Lucid Lynx you must activate the "ubuntu lucid partner" archive in the software sources and run
 
For 9.10 Karmic Koala and Ubuntu 10.04 Lucid Lynx you must activate the "ubuntu lucid partner" archive in the software sources and run
Line 29: Line 37:
 
</pre>
 
</pre>
  
Then you can configure the AOO build with
+
== Testing the Prerequisites ==
 +
 
 +
The configure step will help you to find out if all is there:
 
<pre>
 
<pre>
 
cd main
 
cd main
Line 38: Line 48:
 
For other options regarding mozilla code please see [[Documentation/Building_Guide/Building_on_Linux#create_prebuilt_mozilla|here]].
 
For other options regarding mozilla code please see [[Documentation/Building_Guide/Building_on_Linux#create_prebuilt_mozilla|here]].
  
In case you want to get some libraries from the system instead of building them yourself, the following packages are candidates to be installed also:
+
== Building Apache OpenOffice ==
 
+
<pre>
+
sudo apt-get install python-dev ccache libgraphite-dev \
+
libwpd-dev libxslt-dev libhunspell-dev libaltlinuxhyph-dev
+
</pre>
+
 
+
Then follow the '''[[Documentation/Building_Guide_AOO|Building Guide]]''' to continue.
+
 
+
==See also==
+
*[[Building]]
+
*[[Debug Build Problems]]
+
  
 +
Now that the Ubuntu specific prerequisites are met please follow the general '''[[Documentation/Building_Guide_AOO|Building Guide]]''' to continue.
 +
You might find the page [[Debug Build Problems]] interesting too.
  
 
[[Category: Distribution-Specific Build Instructions]]
 
[[Category: Distribution-Specific Build Instructions]]

Revision as of 12:20, 31 January 2013

[[{{{PrevPage}}}|< Previous Page

]]

[[{{{NextPage}}}|Next Page
>]]
Template:Documentation/Note

Preparing to build Apache OpenOffice on Ubuntu

To get and build Apache OpenOffice you need some packages. You can get them with:

sudo apt-get install svn g++ gcc bison flex libarchive-zip-perl libcups2-dev libpam0g-dev \
gperf libfreetype6-dev libxaw7-dev libfontconfig1-dev libxrandr-dev patch \
libgconf2-dev libgnomevfs2-dev ant libgtk2.0-dev junit junit4 libidl-dev liborbit2-dev

In case you want to use some libraries your system instead of building them yourself you should get their development packages by running:

sudo apt-get install python-dev ccache libgraphite-dev \
libwpd-dev libxslt-dev libhunspell-dev libaltlinuxhyph-dev

The java package depends on your Ubuntu version:

For 9.10 Karmic Koala and Ubuntu 10.04 Lucid Lynx you must activate the "ubuntu lucid partner" archive in the software sources and run

sudo apt-get install sun-java6-jdk

For 11.04 run

sudo apt-get install openjdk-6-jdk

To make sure that all packages are installed you could just simply run command:

sudo apt-get build-dep openoffice.org

Testing the Prerequisites

The configure step will help you to find out if all is there:

cd main
autoconf
./configure --disable-mozilla --with-junit="/usr/share/java/junit4.jar"

For other options regarding mozilla code please see here.

Building Apache OpenOffice

Now that the Ubuntu specific prerequisites are met please follow the general Building Guide to continue. You might find the page Debug Build Problems interesting too.

Personal tools