|
|
(242 intermediate revisions by 26 users not shown) |
Line 1: |
Line 1: |
− | This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].
| + | #REDIRECT [[Documentation/Building Guide AOO#Step-by-Step Building Guide for Different Platforms]] |
− | | |
− | ==Ubuntu 12.04==
| |
− | | |
− | *Setup VirtualBox with Ubuntu 12.04 64 bit on Windows7 64bit host. A native installation is of course fine, too.
| |
− | *Let updater update ca. 380 packages. Restart.
| |
− | *Get the source. You can start with the source release or by checking out from SVN:
| |
− | {| class="prettytable"
| |
− | |-
| |
− | ! Source release
| |
− | ! SVN
| |
− | |- valign="top"
| |
− | |
| |
− | * Build from source release if you want to build OpenOffice once but don't want to do any development.
| |
− | * Download AOO 3.4.1 source tarball from
| |
− | http://people.apache.org/~jsc/developer-snapshots/r1372282/src/aoo-3.4.1-incubating-src.tar.bz2
| |
− | | |
− | * Optional: Download signature from
| |
− | http://people.apache.org/~jsc/developer-snapshots/r1372282/src/aoo-3.4.1-incubating-src.tar.bz2.asc
| |
− | | |
− | and verify the source tarball with
| |
− | gpg --verify aoo-3.4.1-incubating-src.tar.bz2.asc \
| |
− | aoo-3.4.1-incubating-src.tar.bz2
| |
− | Note that you have to have the keys already imported to your key chain.
| |
− | The keys can be found on the download page:
| |
− | | |
− | http://www.apache.org/dist/incubator/ooo/KEYS
| |
− | | |
− | * Unpack source:
| |
− | cd /tmp
| |
− | tar -xjf ~/Downloads/aoo-3.4.1-incubating-src.tar.bz2
| |
− | cd aoo-3.4.1/main
| |
− | |
| |
− | * Build from SVN if you want to development work with OpenOffice.
| |
− | * Start with creating a parent directory for the source code. Don't use <code>/tmp</code> because that is deleted on every boot:
| |
− | sudo mkdir /source
| |
− | sudo chown <your-user-name> /source
| |
− | cd /source
| |
− | * Install subversion and checkout the source:
| |
− | sudo apt-get install subversion
| |
− | svn co https://svn.apache.org/repos/asf/incubator/ooo/trunk aoo-trunk
| |
− | cd aoo-trunk/main
| |
− | |}
| |
− | | |
− | * Install requirements (this will also install packages that are not listed):
| |
− | 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 openjdk-6-jdk libwww-perl \
| |
− | libxml-parser-perl autoconf libssl-dev
| |
− | | |
− | * Run autoconf to generate configure script:
| |
− | autoconf
| |
− | | |
− | * Configure (see the building guide section on [[Documentation/Building_Guide_AOO#Configuration_and_bootstrapping|configuration]] for further options):
| |
− | ./configure \
| |
− | --with-dmake-url=http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2 \
| |
− | --with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz \
| |
− | --disable-odk \
| |
− | --disable-binfilter
| |
− | | |
− | * Finish configuration and download missing tarballs and extensions:
| |
− | ./bootstrap
| |
− | | |
− | * Include the configured environment:
| |
− | source LinuxX86-64Env.Set.sh
| |
− | | |
− | * Build:
| |
− | cd instsetoo_native/
| |
− | build --all
| |
− | This may take a while to complete. Several hours are not uncommong. To speed things up you may want to run 'build' like this
| |
− | build --all -P<n> -- -P<n>
| |
− | to start a parallel build. Replace <n> with the number of CPU cores.
| |
− | | |
− | * Install:
| |
− | sudo dpkg -i unxlngx6.pro/OpenOffice/deb/install/en-US/DEBS/*.deb
| |
− | sudo dpkg -i unxlngx6.pro/OpenOffice/deb/install/en-US/DEBS/desktop-integration/openoffice.org3.4-debian-menus_3.4-9593_all.deb
| |
− | | |
− | * Start Apache OpenOffice:
| |
− | /opt/openoffice.org3/program/soffice
| |