Difference between revisions of "Ubuntu Build Instructions"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Caveats)
 
(85 intermediate revisions by 18 users not shown)
Line 1: Line 1:
This tutorial will assume a stock [http://www.ubuntu.com/download Ubuntu] 5.10 (Breezy) system as a starting point.  One may obtain <code>ooo-build</code> via CVS according to instructions on the [[Getting It]] page. You should then enter the <code>ooo-build</code> directory and run <code>./autogen.sh --with-distro=Ubuntu</code>. Most likely you'll also want to add the <code>--disable-kde</code> flag (unless you're using [http://www.kubuntu.org/ Kubuntu]).
+
{{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).}}
  
===Additional Required Packages===
+
__TOC__
Packages may be obtained as follows:
+
== Preparing to build Apache OpenOffice on Ubuntu ==
  
  sudo apt-get install ''package_name [additional_package(s)]''
+
To get and build Apache OpenOffice you need some packages. You can get them with:
 +
<pre>
 +
sudo apt-get install subversion 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</pre>
  
*libmono-dev
+
If you want to use the system provided libraries instead of building them for yourself you should get their development packages by running:
*''[please help populate the rest of this list!]''
+
  
===Failed patches===
+
<pre>
Some of the patches listed in <code>ooo-build/patches/apply</code> may not apply successfully.  You can try to comment them out in the <code>apply</code> file, but this is an experimental solution...
+
sudo apt-get install python-dev ccache libgraphite-dev \
 +
libwpd-dev libxslt-dev libhunspell-dev libaltlinuxhyph-dev
 +
</pre>
  
===Tips===
+
The java package depends on your Ubuntu version:
A shell script like the one below will alert your attention upon completion of the quite lengthy build process.  Run it after <code>./download</code> completes in place of <code>make</code>.
+
<code>
+
  #!/bin/bash
+
  echo "Starting 'make' wrapper..."
+
  cd ~/ooo-build
+
  make
+
  echo "\n\nCompilation finished."
+
  mplayer -really-quiet ~/Music/My_Music_File.mp3
+
</code>
+
  
===Caveats===
+
For Ubuntu 9.10 ("Karmic Koala") and 10.04 ("Lucid Lynx") you must activate the "ubuntu lucid partner" archive in the software sources and run
Don't do something silly like execute <code>udatedb</code> while <code>make</code> is in progress. This will result in locking the filesystem as read-only and cause the build to fail.
+
<pre>
 +
sudo apt-get install sun-java6-jdk
 +
</pre>
  
==See also==
+
For Ubuntu 11.04 and up please run
*[[Building]]
+
<pre>
*[[Debug Build Problems]]
+
sudo apt-get install openjdk-6-jdk
 +
</pre>
  
 +
To make sure that all packages are installed you could just simply run command:
 +
<pre>
 +
sudo apt-get build-dep openoffice.org
 +
</pre>
 +
 +
== Testing the Prerequisites ==
 +
 +
First download the source code:
 +
<pre>
 +
svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo
 +
</pre>
 +
 +
Then the configure step will help you to find out if all is there:
 +
<pre>
 +
cd aoo/main
 +
autoconf
 +
./configure --disable-mozilla --with-junit="/usr/share/java/junit4.jar"
 +
</pre>
 +
 +
For other options regarding mozilla code please see [[Documentation/Building_Guide/Building_on_Linux#create_prebuilt_mozilla|here]].
 +
 +
== Building Apache OpenOffice ==
 +
 +
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]]

Latest revision as of 20:00, 1 July 2018

Documentation note.png Please add only Ubuntu-specifics here! Use the information on the Building Guide and only fall back to this document if you need help with Ubuntu-specifics (like package names).

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 subversion 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

If you want to use the system provided libraries instead of building them for 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 Ubuntu 9.10 ("Karmic Koala") and 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 Ubuntu 11.04 and up please 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

First download the source code:

svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo

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

cd aoo/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