Difference between revisions of "Documentation/Building Guide AOO/Step by step"
m ((checkpoint save)) |
m |
||
Line 10: | Line 10: | ||
! Source release | ! Source release | ||
! SVN | ! SVN | ||
+ | |- valign="top" | ||
+ | | Build from source release if you want to build OpenOffice once but don't want to do any development. | ||
+ | | Build from SVN if you want to development work with OpenOffice. | ||
|- valign="top" | |- valign="top" | ||
| | | | ||
− | |||
* Download AOO 3.4.1 source tarball from | * 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 | http://people.apache.org/~jsc/developer-snapshots/r1372282/src/aoo-3.4.1-incubating-src.tar.bz2 | ||
Line 32: | Line 34: | ||
cd aoo-3.4.1/main | cd aoo-3.4.1/main | ||
| | | | ||
− | |||
* Start with creating a parent directory for the source code. Don't use <code>/tmp</code> because that is deleted on every boot: | * 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 mkdir /source |
Revision as of 08:20, 5 October 2012
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 building guide.
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:
Source release | SVN |
---|---|
Build from source release if you want to build OpenOffice once but don't want to do any development. | Build from SVN if you want to development work with OpenOffice. |
http://people.apache.org/~jsc/developer-snapshots/r1372282/src/aoo-3.4.1-incubating-src.tar.bz2
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
cd /tmp tar -xjf ~/Downloads/aoo-3.4.1-incubating-src.tar.bz2 cd aoo-3.4.1/main |
sudo mkdir /source sudo chown <your-user-name> /source cd /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 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