Difference between revisions of "Ubuntu Build Instructions"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Ubuntu 9.10 Karmic Koala)
 
(23 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Documentation/Caution|The information on this page is likely outdated. 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).}}
+
{{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 9.10 Karmic Koala ==
+
  
You probably need the following packages:
+
__TOC__
 +
== Preparing to build Apache OpenOffice on Ubuntu ==
 +
 
 +
To get and build Apache OpenOffice you need some packages. You can get them with:
 
<pre>
 
<pre>
apt-get install g++ gcc bison flex libarchive-zip-perl libcups2-dev libpam0g-dev subversion \
+
sudo apt-get install subversion g++ gcc bison flex libarchive-zip-perl libcups2-dev libpam0g-dev \
sun-java6-jdk 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 python-dev libgtk2.0-dev ccache libgraphite-dev
+
libgconf2-dev libgnomevfs2-dev ant libgtk2.0-dev junit junit4 libidl-dev liborbit2-dev</pre>
</pre>
+
 
or use this url:
+
If you want to use the system provided libraries instead of building them for yourself you should get their development packages by running:
 +
 
 
<pre>
 
<pre>
apt:g++,gcc,bison,flex,libarchive-zip-perl,libcups2-dev,libpam0g-dev,subversion,sun-java6-jdk,gperf,libfreetype6-dev,libxaw7-dev,libfontconfig1-dev,libxrandr-dev,patch,libgconf2-dev,libgnomevfs2-dev,ant,python-dev,libgtk2.0-dev,ccache,libgraphite-dev
+
sudo apt-get install python-dev ccache libgraphite-dev \
 +
libwpd-dev libxslt-dev libhunspell-dev libaltlinuxhyph-dev
 
</pre>
 
</pre>
  
then follow the '''[[Documentation/Building Guide|Building Guide]]''' to continue.
+
The java package depends on your Ubuntu version:
  
== Ubuntu 8.04 (LTS) Hardy ==
+
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
 
+
For Hardy, the list of recommended packages is different. Here's the command that
+
got one first-timer through the many configure errors:
+
 
<pre>
 
<pre>
aptitude install \
+
sudo apt-get install sun-java6-jdk
ant ant-optional automake1.9 bison build-essential cvs \
+
flex gcj gperf java-gcj-compat-dev kdebase-dev \
+
libagg-dev libaltlinuxhyph-dev libarchive-zip-perl \
+
libaudio-dev libboost-dev libcupsys2-dev \
+
libcurl4-openssl-dev libdb4.6-dev libdb4.6-java libgcj7-dev libgconf2-dev \
+
libgnomevfs2-dev libgstreamer-plugins-base0.10-dev \
+
libgstreamer0.10-dev libgtk2.0-dev libhunspell-dev \
+
libjpeg62-dev libldap2-dev libmono-dev libneon26-dev \
+
libnss3-dev libpam0g-dev libpam-dev libpng12-dev \
+
libportaudio-dev libpq-dev libsablot0-dev \
+
libsane-dev libsndfile1-dev libsoap-lite-perl \
+
libstartup-notification0-dev libstlport5.1-dev libwpd8-dev \
+
libxaw-headers libxml2-dev libxrandr-dev libxul-dev mingw32 mozilla-dev \
+
myspell-tools python-dev tcsh unixodbc-dev
+
 
</pre>
 
</pre>
  
=== First trial ===
+
For Ubuntu 11.04 and up please run
 
+
You don't have to install all necessary packages at once, you can go through trial and error to gain more knowledge about the Ubuntu packaging:
+
 
+
 
<pre>
 
<pre>
./configure
+
sudo apt-get install openjdk-6-jdk
 
</pre>
 
</pre>
  
Configure without any parameters gives you some errors probably. You can disable some parts, e.g. --disable-mozilla.
+
To make sure that all packages are installed you could just simply run command:
If configure requests for a file you can use the [http://packages.ubuntu.com/ Ubuntu package content search] to get to know which
+
package provides such file.
+
 
+
The following configure switches are known to work:
+
 
+
 
<pre>
 
<pre>
./configure --enable-werror --disable-mozilla --disable-cups --disable-gnome-vfs --disable-gtk  --with-system-lpsolve=no --enable-werror with_jdk_home=/usr/lib/jvm/java-6-sun --with-package-format=deb
+
sudo apt-get build-dep openoffice.org
 
</pre>
 
</pre>
  
=== With Mozilla ===
+
== Testing the Prerequisites ==
  
The commandline to configure is also a bit different, e.g.
+
First download the source code:
 
<pre>
 
<pre>
./configure --with-distro=UbuntuHardy --with-system-mozilla=xulrunner
+
svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo
 
</pre>
 
</pre>
The --with-system-mozilla=xulrunner option seems to fix the configure error
 
<pre>
 
checking for libxul-xpcom ... Package libxul-xpcom was not found in the pkg-config search path.
 
</pre>
 
This may be related to https://bugs.launchpad.net/ubuntu/hardy/+source/openoffice.org-l10n/+bug/194551
 
 
=== Patches ===
 
  
Recent developer builds may need additional patches to build properly. You should have a look at the Subversion repository at
+
Then the configure step will help you to find out if all is there:
 
<pre>
 
<pre>
svn://svn.services.openoffice.org/ooo/patches/buildbot
+
cd aoo/main
 +
autoconf
 +
./configure --disable-mozilla --with-junit="/usr/share/java/junit4.jar"
 
</pre>
 
</pre>
  
where patches of the OOo Buildbots can be found.
+
For other options regarding mozilla code please see [[Documentation/Building_Guide/Building_on_Linux#create_prebuilt_mozilla|here]].
  
==See also==
+
== Building Apache OpenOffice ==
*[[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:Build_System]]
+
[[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