Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

Building OpenOffice.org with the MinGW compiler

Disclaimer! The build of OpenOffice.org with the MinGW compiler is not supported and fully experimental at this moment!

The following page is a short summary of the required actions to build OpenOffice.org with this compiler.

The only branch with applied MinGW patches is cws_srx645_mingw. You have to checkout the source with cvs, no source archiv is available as this document is written.

Requirements

The build has the same requirements as the W32-tcsh build, but you don't need any Microsoft compiler. (Only the compiler, you need all the rest, e.g. MASM and PSDK.)

A lot of memory

Experiments show that with only 256MB real memory ld is using virtual memory to link the libraries, this takes very long. 512MB real memory and 1.5GB virtual memory are suficient.

A patched MinGW compiler

You can either use the MinGW compiler that comes with Cygwin (gcc -mno-cygwin, alias cygming) or install a MinGW system in addition to you already needed cygwin installation. Choose one of the following two possibilities: cygming or

Build

It is recommended to use an as short as possible path, but the path must include the Platform SDK Bin directory, e.g.:

$ export PATH=/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/psdk02_2003/Bin

Now configure, e.g.:

For cygming:
$ ./configure --with-mingwin=yes --with-jdk-home=/cygdrive/c/j2sdk1.4.1_02 \
    --with-ant-home=/cygdrive/c/ant-1.5.3-1 --with-psdk-home=/cygdrive/d/psdk02_2003

or for MinGW:
$ ./configure --with-mingwin=/cygdrive/c/MinGW --with-jdk-home=/cygdrive/c/j2sdk1.4.1_02 \
    --with-ant-home=/cygdrive/c/ant-1.5.3-1 --with-psdk-home=/cygdrive/d/psdk02_2003


Start a tcsh
$ tcsh

Set your environment variables:
$ source winmingw.set

Build dmake
$ ./bootstrap

Rehash your path
$ rehash

Build OOo
$ dmake

And now wait. ...

Comments and updates

This document is a work in progress, any comments to Volker Quetschke.

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.