Building on Linux

From Apache OpenOffice Wiki
Jump to: navigation, search

Template:Documentation/Building Guide AOO TOC


Overview

For general information on how to build Apache OpenOffice from source code, see the platform independent building guide.

Template:Documentation/Linux

Build requirements

Additionally to the general build requirements you need

What Where to get How to install
C/C++ Compiler gcc >= 3.3

gcc 4.2.3 is the current reference compiler

X11 development libraries and header files They should be in place on most Linux distributions with development support (eg have compilers installed).
PAM PAM should be installed by default on most linux distributions. You may still have to add the development package.
gtk2 and libtiff (including the development headers). The gtk2, jpeg and tiff libraries are not required if you disable the crash-reporter when running ./configure.

The installation of required packages, mostly tools and development versions of libraries, depends on the distribution:

Fedora
   yum install GConf2-devel ant autoconf automake bison boost-devel    \
           cups-devel curl-devel db4-devel expat-devel firefox-devel   \
           flex freetype-devel gcc gcc-c++ gconf2-devel gnome-vfs2-devel gperf      \
           gstreamer-devel gstreamer-plugins-base-devel gtk2-devel     \
           java-1.6.0-openjdk-devel libIDL-devel libXaw-devel          \
           libxslt-devel make mono-devel openldap-devel openssl-devel pam-devel     \
           patch perl-Archive-Zip python-devel qt-devel rpm-build      \
           subversion tcsh unixODBC-devel xalan-j2                     \
           xml-commons-jaxp-1.3-apis xorg-x11-devel
Gentoo
Usable gentoo packages:
   app-arch/rpm
   app-arch/dpkg 
   dev-lang/python
   dev-libs/icu
   dev-java/lucene-analyzers
   dev-java/saxon
   dev-java/sun-jdk
   dev-perl/Archive-Zip
   dev-util/ccache
   media-gfx/xsane
   media-libs/vigra
OpenSUSE
You can use this information as a starting point for opensuse. One way to determine needed packages is to use the information provided by "configure". After running autoconf (see Apache OpenOffice Building Guide ), run:
   configure --help

to see what possible packages you may need.

You can try this full list, but it may be out of date:

  zypper install arts-devel avahi-lang brp-check-suse build-compare \
      dbus-1-qt3-devel dbus-1-qt3 flac-devel gconf2-lang glib2-branding-upstream \
      gnome-vfs2-lang gstreamer-0_10-lang gstreamer-0_10-plugins-base-lang \
      hunspell-devel icu kdelibs3-arts kdelibs3-devel kdelibs3-doc kdelibs4-branding-upstream \
      libbonobo-lang libicu-devel libjack-devel libogg-devel libsamplerate-devel libvorbis-devel \
      libwpd-devel libwpg-devel libwps-devel lpsolve-devel pcre-tools post-build-checks \
      postgresql-devel qt3-devel rpmlint-Factory rpmlint-mini sablot-devel unixODBC-devel \
      unsermake xmlbeans-mini
Ubuntu
Install packages with apt-get:
   sudo apt-get install 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

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
Personal tools