<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dyrcona</id>
	<title>Apache OpenOffice Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dyrcona"/>
	<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/wiki/Special:Contributions/Dyrcona"/>
	<updated>2026-06-04T01:01:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101972</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101972"/>
		<updated>2008-12-09T21:39:21Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Hacking OO.o */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== svn ====&lt;br /&gt;
&lt;br /&gt;
Since OpenOffice.org has switched to using subversion (svn) for source code control, you will need to use svn rather than cvs to get code.&lt;br /&gt;
&lt;br /&gt;
The version (1.4.4) that ships with Xcode 3.x is sufficient for doing simple checkouts. However, if you wish to switch revisions on a working copy or you have checkin access to the repository, then you will need to install a more recent version (1.5.4) from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The [http://flex.sourceforge.net/ flex] that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functional Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
If you install flex from MacPorts, you will want to make sure that &amp;lt;code&amp;gt;/opt/local/bin&amp;lt;/code&amp;gt; is in your path before &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; or you will end up using the flex that came with Leopard. You could achieve this on a temporary basis by adding &amp;lt;code&amp;gt;export PATH=/opt/local/bin:$PATH&amp;lt;/code&amp;gt; to the env.sh file (described below).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via read-only svn, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Doing update instead of checkout&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                svn update&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    svn checkout svn://svn.services.openoffice.org/ooo/tags/${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
    # Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
    # Link the pre-existing build script&lt;br /&gt;
    cd config_office/&lt;br /&gt;
    ln -s ../../bin/build.sh&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page, but it also builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no \&lt;br /&gt;
--disable-vba&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffice.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
./bootstrap&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
If, like me, you use GNU Emacs to edit your source code files, then you might want to add the following line to your .emacs file so that .mm files will be treated as Objective-C++ source code and not nroff code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
(add-to-list &amp;#039;auto-mode-alist &amp;#039;(&amp;quot;\\.mm&amp;quot; . objc-mode))&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101541</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101541"/>
		<updated>2008-12-06T01:25:53Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* build.sh */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== svn ====&lt;br /&gt;
&lt;br /&gt;
Since OpenOffice.org has switched to using subversion (svn) for source code control, you will need to use svn rather than cvs to get code.&lt;br /&gt;
&lt;br /&gt;
The version (1.4.4) that ships with Xcode 3.x is sufficient for doing simple checkouts. However, if you wish to switch revisions on a working copy or you have checkin access to the repository, then you will need to install a more recent version (1.5.4) from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The [http://flex.sourceforge.net/ flex] that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functional Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
If you install flex from MacPorts, you will want to make sure that &amp;lt;code&amp;gt;/opt/local/bin&amp;lt;/code&amp;gt; is in your path before &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; or you will end up using the flex that came with Leopard. You could achieve this on a temporary basis by adding &amp;lt;code&amp;gt;export PATH=/opt/local/bin:$PATH&amp;lt;/code&amp;gt; to the env.sh file (described below).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via read-only svn, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Doing update instead of checkout&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                svn update&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    svn checkout svn://svn.services.openoffice.org/ooo/tags/${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
    # Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
    # Link the pre-existing build script&lt;br /&gt;
    cd config_office/&lt;br /&gt;
    ln -s ../../bin/build.sh&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page, but it also builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no \&lt;br /&gt;
--disable-vba&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffice.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
./bootstrap&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101534</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101534"/>
		<updated>2008-12-06T00:48:49Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* build.sh */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== svn ====&lt;br /&gt;
&lt;br /&gt;
Since OpenOffice.org has switched to using subversion (svn) for source code control, you will need to use svn rather than cvs to get code.&lt;br /&gt;
&lt;br /&gt;
The version (1.4.4) that ships with Xcode 3.x is sufficient for doing simple checkouts. However, if you wish to switch revisions on a working copy or you have checkin access to the repository, then you will need to install a more recent version (1.5.4) from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The [http://flex.sourceforge.net/ flex] that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functional Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
If you install flex from MacPorts, you will want to make sure that &amp;lt;code&amp;gt;/opt/local/bin&amp;lt;/code&amp;gt; is in your path before &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; or you will end up using the flex that came with Leopard. You could achieve this on a temporary basis by adding &amp;lt;code&amp;gt;export PATH=/opt/local/bin:$PATH&amp;lt;/code&amp;gt; to the env.sh file (described below).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
export MACOSX_DEPLOYMENT_TARGET=10.4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via read-only svn, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Doing update instead of checkout&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                svn update&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    svn checkout svn://svn.services.openoffice.org/ooo/tags/${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
    # Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
    # Link the pre-existing build script&lt;br /&gt;
    cd config_office/&lt;br /&gt;
    ln -s ../../bin/build.sh&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page, but it also builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no \&lt;br /&gt;
--disable-vba&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffice.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
./bootstrap&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101533</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101533"/>
		<updated>2008-12-05T23:46:46Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* The Build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== svn ====&lt;br /&gt;
&lt;br /&gt;
Since OpenOffice.org has switched to using subversion (svn) for source code control, you will need to use svn rather than cvs to get code.&lt;br /&gt;
&lt;br /&gt;
The version (1.4.4) that ships with Xcode 3.x is sufficient for doing simple checkouts. However, if you wish to switch revisions on a working copy or you have checkin access to the repository, then you will need to install a more recent version (1.5.4) from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The [http://flex.sourceforge.net/ flex] that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functional Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
If you install flex from MacPorts, you will want to make sure that &amp;lt;code&amp;gt;/opt/local/bin&amp;lt;/code&amp;gt; is in your path before &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; or you will end up using the flex that came with Leopard. You could achieve this on a temporary basis by adding &amp;lt;code&amp;gt;export PATH=/opt/local/bin:$PATH&amp;lt;/code&amp;gt; to the env.sh file (described below).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
export MACOSX_DEPLOYMENT_TARGET=10.4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via read-only svn, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Doing update instead of checkout&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                svn update&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    svn checkout svn://svn.services.openoffice.org/ooo/tags/${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
    # Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
    # Link the pre-existing build script&lt;br /&gt;
    cd config_office/&lt;br /&gt;
    ln -s ../../bin/build.sh&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffice.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
./bootstrap&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101532</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101532"/>
		<updated>2008-12-05T23:45:39Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* env.sh */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== svn ====&lt;br /&gt;
&lt;br /&gt;
Since OpenOffice.org has switched to using subversion (svn) for source code control, you will need to use svn rather than cvs to get code.&lt;br /&gt;
&lt;br /&gt;
The version (1.4.4) that ships with Xcode 3.x is sufficient for doing simple checkouts. However, if you wish to switch revisions on a working copy or you have checkin access to the repository, then you will need to install a more recent version (1.5.4) from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The [http://flex.sourceforge.net/ flex] that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functional Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
If you install flex from MacPorts, you will want to make sure that &amp;lt;code&amp;gt;/opt/local/bin&amp;lt;/code&amp;gt; is in your path before &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; or you will end up using the flex that came with Leopard. You could achieve this on a temporary basis by adding &amp;lt;code&amp;gt;export PATH=/opt/local/bin:$PATH&amp;lt;/code&amp;gt; to the env.sh file (described below).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
export MACOSX_DEPLOYMENT_TARGET=10.4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via read-only svn, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Doing update instead of checkout&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                svn update&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    svn checkout svn://svn.services.openoffice.org/ooo/tags/${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
    # Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
    # Link the pre-existing build script&lt;br /&gt;
    cd config_office/&lt;br /&gt;
    ln -s ../../bin/build.sh&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffice.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101519</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101519"/>
		<updated>2008-12-05T18:04:59Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* mkBuildDir.sh */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== svn ====&lt;br /&gt;
&lt;br /&gt;
Since OpenOffice.org has switched to using subversion (svn) for source code control, you will need to use svn rather than cvs to get code.&lt;br /&gt;
&lt;br /&gt;
The version (1.4.4) that ships with Xcode 3.x is sufficient for doing simple checkouts. However, if you wish to switch revisions on a working copy or you have checkin access to the repository, then you will need to install a more recent version (1.5.4) from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The [http://flex.sourceforge.net/ flex] that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functional Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
If you install flex from MacPorts, you will want to make sure that &amp;lt;code&amp;gt;/opt/local/bin&amp;lt;/code&amp;gt; is in your path before &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; or you will end up using the flex that came with Leopard. You could achieve this on a temporary basis by adding &amp;lt;code&amp;gt;export PATH=/opt/local/bin:$PATH&amp;lt;/code&amp;gt; to the env.sh file (described below).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via read-only svn, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Doing update instead of checkout&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                svn update&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    svn checkout svn://svn.services.openoffice.org/ooo/tags/${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
    # Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
    # Link the pre-existing build script&lt;br /&gt;
    cd config_office/&lt;br /&gt;
    ln -s ../../bin/build.sh&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffice.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101518</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101518"/>
		<updated>2008-12-05T18:04:19Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* mkBuildDir.sh */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== svn ====&lt;br /&gt;
&lt;br /&gt;
Since OpenOffice.org has switched to using subversion (svn) for source code control, you will need to use svn rather than cvs to get code.&lt;br /&gt;
&lt;br /&gt;
The version (1.4.4) that ships with Xcode 3.x is sufficient for doing simple checkouts. However, if you wish to switch revisions on a working copy or you have checkin access to the repository, then you will need to install a more recent version (1.5.4) from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The [http://flex.sourceforge.net/ flex] that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functional Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
If you install flex from MacPorts, you will want to make sure that &amp;lt;code&amp;gt;/opt/local/bin&amp;lt;/code&amp;gt; is in your path before &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; or you will end up using the flex that came with Leopard. You could achieve this on a temporary basis by adding &amp;lt;code&amp;gt;export PATH=/opt/local/bin:$PATH&amp;lt;/code&amp;gt; to the env.sh file (described below).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via anonymous CVS, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Doing update instead of checkout&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                svn update&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    svn checkout svn://svn.services.openoffice.org/ooo/tags/${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
    # Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
    cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
    # Link the pre-existing build script&lt;br /&gt;
    cd config_office/&lt;br /&gt;
    ln -s ../../bin/build.sh&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffice.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101517</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101517"/>
		<updated>2008-12-05T18:00:59Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* mkBuildDir.sh */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== svn ====&lt;br /&gt;
&lt;br /&gt;
Since OpenOffice.org has switched to using subversion (svn) for source code control, you will need to use svn rather than cvs to get code.&lt;br /&gt;
&lt;br /&gt;
The version (1.4.4) that ships with Xcode 3.x is sufficient for doing simple checkouts. However, if you wish to switch revisions on a working copy or you have checkin access to the repository, then you will need to install a more recent version (1.5.4) from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The [http://flex.sourceforge.net/ flex] that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functional Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
If you install flex from MacPorts, you will want to make sure that &amp;lt;code&amp;gt;/opt/local/bin&amp;lt;/code&amp;gt; is in your path before &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; or you will end up using the flex that came with Leopard. You could achieve this on a temporary basis by adding &amp;lt;code&amp;gt;export PATH=/opt/local/bin:$PATH&amp;lt;/code&amp;gt; to the env.sh file (described below).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via anonymous CVS, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Doing update instead of checkout&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                svn update&lt;br /&gt;
                exit 0&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    svn checkout svn://svn.services.openoffice.org/ooo/tags/${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./${cvsTag}/moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./${cvsTag}/external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffice.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101516</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=101516"/>
		<updated>2008-12-05T17:00:54Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== svn ====&lt;br /&gt;
&lt;br /&gt;
Since OpenOffice.org has switched to using subversion (svn) for source code control, you will need to use svn rather than cvs to get code.&lt;br /&gt;
&lt;br /&gt;
The version (1.4.4) that ships with Xcode 3.x is sufficient for doing simple checkouts. However, if you wish to switch revisions on a working copy or you have checkin access to the repository, then you will need to install a more recent version (1.5.4) from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The [http://flex.sourceforge.net/ flex] that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functional Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
If you install flex from MacPorts, you will want to make sure that &amp;lt;code&amp;gt;/opt/local/bin&amp;lt;/code&amp;gt; is in your path before &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; or you will end up using the flex that came with Leopard. You could achieve this on a temporary basis by adding &amp;lt;code&amp;gt;export PATH=/opt/local/bin:$PATH&amp;lt;/code&amp;gt; to the env.sh file (described below).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via anonymous CVS, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Doing update instead of checkout&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                svn update&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    svn checkout svn://svn.services.openoffice.org/ooo/tags/${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffice.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona_-_OpenOffice.org_Wiki&amp;diff=99328</id>
		<title>User:Dyrcona - OpenOffice.org Wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona_-_OpenOffice.org_Wiki&amp;diff=99328"/>
		<updated>2008-11-20T15:33:23Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: Removing all content from page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona_-_OpenOffice.org_Wiki&amp;diff=99156</id>
		<title>User:Dyrcona - OpenOffice.org Wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona_-_OpenOffice.org_Wiki&amp;diff=99156"/>
		<updated>2008-11-18T21:30:08Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: New page: &amp;lt;nowiki&amp;gt;&amp;lt;!--[if lt IE 5.5000]&amp;gt;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;@import &amp;quot;/w/skins/oooskin/IE50Fixes.css?97&amp;quot;;&amp;lt;/style&amp;gt;&amp;lt;![endif]--&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;!--[if IE 5.5000]&amp;gt;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;@import &amp;quot;/w/...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;nowiki&amp;gt;&amp;lt;!--[if lt IE 5.5000]&amp;gt;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;@import &amp;quot;/w/skins/oooskin/IE50Fixes.css?97&amp;quot;;&amp;lt;/style&amp;gt;&amp;lt;![endif]--&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;!--[if IE 5.5000]&amp;gt;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;@import &amp;quot;/w/skins/oooskin/IE55Fixes.css?97&amp;quot;;&amp;lt;/style&amp;gt;&amp;lt;![endif]--&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;!--[if IE 6]&amp;gt;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;@import &amp;quot;/w/skins/oooskin/IE60Fixes.css?97&amp;quot;;&amp;lt;/style&amp;gt;&amp;lt;![endif]--&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;!--[if IE 7]&amp;gt;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;@import &amp;quot;/w/skins/oooskin/IE70Fixes.css?97&amp;quot;;&amp;lt;/style&amp;gt;&amp;lt;![endif]--&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;!--[if lt IE 7]&amp;gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;/w/skins/common/IEFixes.js?97&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;meta http-equiv=&amp;quot;imagetoolbar&amp;quot; content=&amp;quot;no&amp;quot; /&amp;gt;&amp;lt;![endif]--&amp;gt;&amp;lt;/nowiki&amp;gt;Head Scripts= User:Dyrcona =&lt;br /&gt;
=== From OpenOffice.org Wiki ===&lt;br /&gt;
Jump to: [#column-one navigation], [#searchInput search]start contentHi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port. &lt;br /&gt;
&lt;br /&gt;
I have started a [http://dyrcona-ooo.blogspot.com/ blog] where I&amp;#039;ll post updates about my progress on working with OO.o and the Mac OS X native port. &lt;br /&gt;
&lt;br /&gt;
I have added a page, called [http://wiki.services.openoffice.org/wiki/User:Dyrcona/LeopardBuild /LeopardBuild], with my procedures for building the native Aqua OO.o on Mac OS X Leopard. The instructions on that page are meant to supplement the [http://wiki.services.openoffice.org/wiki/AquaBuild AquaBuild] instructions and not to serve as a replacement for them. I assume that you have already the AquaBuild instructions and understand them. &lt;br /&gt;
&lt;br /&gt;
For those using Colloquy in IRC, I have a modified version of the plaintext.xsl to convert Colloquy transcripts to plaintext. This one addresses the problem that the &amp;quot;official&amp;quot; one has when the same person says more than one thing in a row. [http://wiki.services.openoffice.org/wiki/User:Dyrcona/Colloquy /Colloquy] &lt;br /&gt;
&lt;br /&gt;
Blah, blah, blah.&lt;br /&gt;
&lt;br /&gt;
Saved in parser cache with key wikidb:pcache:idhash:12790-0!1!0!!en!2!edit=0 and timestamp 20081118210740Retrieved from &amp;quot;[http://wiki.services.openoffice.org/wiki/User:Dyrcona http://wiki.services.openoffice.org/wiki/User:Dyrcona]&amp;quot;[http://wiki.services.openoffice.org/wiki/Special:Categories Categories]: [http://wiki.services.openoffice.org/wiki/Category:Porting Porting] | [http://wiki.services.openoffice.org/wiki/Category:MacOSX MacOSX] | [http://wiki.services.openoffice.org/wiki/Category:Aqua Aqua]===== Views =====&lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/User:Dyrcona User page] &lt;br /&gt;
* [http://wiki.services.openoffice.org/w/index.php?title=User_talk:Dyrcona&amp;amp;action=edit Discussion] &lt;br /&gt;
* [http://wiki.services.openoffice.org/w/index.php?title=User:Dyrcona&amp;amp;action=edit View source] &lt;br /&gt;
* [http://wiki.services.openoffice.org/w/index.php?title=User:Dyrcona&amp;amp;action=history History] &lt;br /&gt;
&lt;br /&gt;
===== Personal tools =====&lt;br /&gt;
* [http://wiki.services.openoffice.org/w/index.php?title=Special:Userlogin&amp;amp;returnto=User:Dyrcona Log in / create account] &lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;!--&amp;lt;div class=&amp;quot;portlet&amp;quot; id=&amp;quot;p-logo&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;a style=&amp;quot;background-image: url(/w/OOoWiki_Logo_07.png);&amp;quot; href=&amp;quot;/wiki/Main_Page&amp;quot; title=&amp;quot;Visit the Main Page [z]&amp;quot; accesskey=&amp;quot;z&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/div&amp;gt;--&amp;gt;&amp;lt;/nowiki&amp;gt;===== Navigation =====&lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/Main_Page Main Page] &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/Special:Recentchanges Recent changes] &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/Special:Random Random page] &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/Help:Contents Help] &lt;br /&gt;
&lt;br /&gt;
===== Search =====&lt;br /&gt;
 &amp;amp;nbsp;  ===== Toolbox =====&lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/Special:Whatlinkshere/User:Dyrcona What links here] &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/Special:Recentchangeslinked/User:Dyrcona Related changes] &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/Special:Contributions/Dyrcona User contributions] &lt;br /&gt;
* [http://wiki.services.openoffice.org/w/index.php?title=Special:Log&amp;amp;user=Dyrcona Logs] &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/Special:Upload Upload file] &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/Special:Specialpages Special pages] &lt;br /&gt;
* [http://wiki.services.openoffice.org/w/index.php?title=User:Dyrcona&amp;amp;printable=yes Printable version] &lt;br /&gt;
* [http://wiki.services.openoffice.org/w/index.php?title=User:Dyrcona&amp;amp;oldid=71759 Permanent link]&lt;br /&gt;
* [http://wiki.services.openoffice.org/w/index.php?title=Special:Collection/render_article/&amp;amp;arttitle=User:Dyrcona&amp;amp;writer=rl Download as PDF]&lt;br /&gt;
* [http://wiki.services.openoffice.org/w/index.php?title=Special:Collection/render_article/&amp;amp;arttitle=User:Dyrcona&amp;amp;writer=odf Download as ODF] &lt;br /&gt;
&lt;br /&gt;
===== Create a book =====&lt;br /&gt;
* [http://wiki.services.openoffice.org/w/index.php?title=Special:Collection/add_article/&amp;amp;arttitle=User:Dyrcona&amp;amp;oldid=0 Add wiki page] &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/Help:Collections Collections help] &lt;br /&gt;
&lt;br /&gt;
The category contains more than %PARAM% pages, only the first %PARAM% pages can be added to your collection. Do you want to add them?end of the left (by default at least) column[[Image:poweredby_mediawiki_88x31.png]][[Image:mysql_sun_logo.gif]]* This page was last modified 16:57, 26 March 2008. &lt;br /&gt;
* This page has been accessed 255 times. &lt;br /&gt;
* Content is available under [http://wiki.services.openoffice.org/wiki/OpenOffice.org_Wiki:Copyrights OpenOffice.org Wiki:Copyrights]. &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/OpenOffice.org_Wiki:Privacy_policy Privacy policy] &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/OpenOffice.org_Wiki:About About OpenOffice.org Wiki] &lt;br /&gt;
* [http://wiki.services.openoffice.org/wiki/OpenOffice.org_Wiki:General_disclaimer Disclaimers] &lt;br /&gt;
&lt;br /&gt;
Served in 0.258 secs.&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Pending_SCAs&amp;diff=81598</id>
		<title>Pending SCAs</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Pending_SCAs&amp;diff=81598"/>
		<updated>2008-06-05T10:56:06Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: Remove myself from the list and state that the list has been updated.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following [[Joint Copyright Assignment]]s are not yet [http://www.openoffice.org/copyright/copyrightapproved.html listed]:&lt;br /&gt;
This is not necessarily the contributors fault. &lt;br /&gt;
Please list your name below, if it doesn&amp;#039;t appear after a week or so.&lt;br /&gt;
&lt;br /&gt;
* Sharif FarsiWeb, Inc. &amp;lt;br&amp;gt; emailed on 2006-02-02. &amp;lt;br&amp;gt; Sent again on 2007-07-22.&lt;br /&gt;
* Toshie Abe &amp;lt;br&amp;gt; emailed on 2007-10-02.&lt;br /&gt;
* Michel Renon &amp;lt;br&amp;gt; emailed on 2007-12-16&lt;br /&gt;
* Goran Rakic &amp;lt;br&amp;gt;SCA emailed on 2008-04-01.&lt;br /&gt;
* &amp;amp;nbsp; &amp;lt;missing JCAs go here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The list was updated on 2008-06-03.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will help to track down where the JCA got stuck. The following information helps us to find your JCA.&lt;br /&gt;
&lt;br /&gt;
* Has the JCA been sent via email, fax or postal mail?&lt;br /&gt;
* At which date has the email / fax / letter has been sent?&lt;br /&gt;
&lt;br /&gt;
If all fails you might want to resend the JCA.&lt;br /&gt;
&lt;br /&gt;
--[[User:St|stx12]] 22:20, 15 November 2005 (CET)&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Pending_SCAs&amp;diff=78596</id>
		<title>Pending SCAs</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Pending_SCAs&amp;diff=78596"/>
		<updated>2008-05-24T13:00:45Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following [[Joint Copyright Assignment]]s are not yet [http://www.openoffice.org/copyright/copyrightapproved.html listed]:&lt;br /&gt;
This is not necessarily the contributors fault. &lt;br /&gt;
Please list your name below, if it doesn&amp;#039;t appear after a week or so.&lt;br /&gt;
&lt;br /&gt;
* Sharif FarsiWeb, Inc. &amp;lt;br&amp;gt; emailed on 2006-02-02. &amp;lt;br&amp;gt; Sent again on 2007-07-22.&lt;br /&gt;
* Marcin Miłkowski &amp;lt;br&amp;gt;emailed on 2007-01-10. &amp;lt;br&amp;gt; Sent again on 2007-10-04.&lt;br /&gt;
* Toshie Abe &amp;lt;br&amp;gt; emailed on 2007-10-02.&lt;br /&gt;
* Michel Renon &amp;lt;br&amp;gt; emailed on 2007-12-16&lt;br /&gt;
* Jason Stephenson &amp;lt;br&amp;gt; JCA sent in February 2008 &amp;lt;br&amp;gt; SCA emailed on 2008-03-07&lt;br /&gt;
* &amp;amp;nbsp; &amp;lt;missing JCAs go here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will help to track down where the JCA got stuck. The following information helps us to find your JCA.&lt;br /&gt;
&lt;br /&gt;
* Has the JCA been sent via email, fax or postal mail?&lt;br /&gt;
* At which date has the email / fax / letter has been sent?&lt;br /&gt;
&lt;br /&gt;
If all fails you might want to resend the JCA.&lt;br /&gt;
&lt;br /&gt;
--[[User:St|stx12]] 22:20, 15 November 2005 (CET)&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/Colloquy&amp;diff=72092</id>
		<title>User:Dyrcona/Colloquy</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/Colloquy&amp;diff=72092"/>
		<updated>2008-03-31T00:39:01Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is the script, just copy and paste and run it like the official one with xsltproc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:output method=&amp;quot;text&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;/log/event | /log/envelope&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:when test=&amp;quot;local-name() = &amp;#039;event&amp;#039;&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:call-template name=&amp;quot;timestamp&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;xsl:with-param name=&amp;quot;date&amp;quot; select=&amp;quot;@occurred&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/xsl:call-template&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;» &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;normalize-space(message)&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:when test=&amp;quot;local-name() = &amp;#039;envelope&amp;#039;&amp;quot;&amp;gt;&lt;br /&gt;
              &amp;lt;xsl:for-each select=&amp;quot;message&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:call-template name=&amp;quot;timestamp&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;xsl:with-param name=&amp;quot;date&amp;quot; select=&amp;quot;@received&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/xsl:call-template&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;../sender&amp;quot; /&amp;gt;&amp;lt;xsl:text&amp;gt;: &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;normalize-space()&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;ERROR: can&amp;#039;t handle &amp;quot;&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;local-name()&amp;quot; /&amp;gt;&amp;lt;xsl:text&amp;gt;&amp;quot;&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;xsl:template name=&amp;quot;timestamp&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:param name=&amp;quot;date&amp;quot; /&amp;gt; &amp;lt;!-- YYYY-MM-DD HH:MM:SS +/-HHMM --&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;[&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:variable name=&amp;#039;hour&amp;#039; select=&amp;#039;substring($date, 1, 14)&amp;#039; /&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:variable name=&amp;#039;minute&amp;#039; select=&amp;#039;substring($date, 15, 5)&amp;#039; /&amp;gt;&lt;br /&gt;
        &amp;lt;!-- 24hr format --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of select=&amp;quot;concat($hour,&amp;#039;:&amp;#039;,$minute)&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;] &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71801</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71801"/>
		<updated>2008-03-27T00:32:54Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* flex */ Add some more information.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The [http://flex.sourceforge.net/ flex] that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functional Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
If you install flex from MacPorts, you will want to make sure that &amp;lt;code&amp;gt;/opt/local/bin&amp;lt;/code&amp;gt; is in your path before &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; or you will end up using the flex that came with Leopard. You could achieve this on a temporary basis by adding &amp;lt;code&amp;gt;export PATH=/opt/local/bin:$PATH&amp;lt;/code&amp;gt; to the env.sh file (described below).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via anonymous CVS, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffic.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide/Building_on_MacOSX&amp;diff=71798</id>
		<title>Documentation/Building Guide/Building on MacOSX</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide/Building_on_MacOSX&amp;diff=71798"/>
		<updated>2008-03-26T23:07:08Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Mac OS X version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:blue; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Cocoa migration is in progress &amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:red; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Please note the new Master Work space (MWS) is now DEV300, means DO  NO LONGER USE SRC680 &amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;This document tries to wrap-up the build process for [[OpenOffice.org]] on Mac OS X using the native windowing-toolkit of the platform named Aqua.&amp;#039;&amp;#039;&amp;#039; &amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Important links for Cocoa development ===&lt;br /&gt;
&lt;br /&gt;
[http://www.cocoadev.com Cocoadev ]&lt;br /&gt;
&lt;br /&gt;
[http://ktd.club.fr/programmation/objective-c.php Pierre Chatelier page about C++ to Cocoa conversion ]&lt;br /&gt;
&lt;br /&gt;
Note: .pdf available in both english and french versions. Excellent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(Outdated): To give a kickstart in the coding involved to get VCL ported to Carbon, please have a look at the excellent Pierre de Filippis [[Intro To Mac Porting]].&lt;br /&gt;
&lt;br /&gt;
We use the bash shell in all examples, since to our belief users of the C-shell are smart enough to figure out the differences anyway. If you want to dig deeper into the build process, please have a look at the description of the build environment here: [http://tools.openoffice.org/build_env.html OpenOffice.org Build Environment].&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Prerequisites&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
This document was derived from the description of the X11 build thanksworthy provided by Eric Hoch in this document: [[MacOSXBuildInstructions]].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Here we would like to outline the things you need to build the Aqua Version&amp;#039;&amp;#039;&amp;#039; (besides the OS). &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:red; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Mandatory&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
==== Mac OS X version ====&lt;br /&gt;
&lt;br /&gt;
=&amp;gt; &amp;#039;&amp;#039;&amp;#039;Minimal version for AquaBuild is Mac OS X 10.4 (aka Tiger).&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If you are building on Mac OS X 10.5 (aka Leopard), you will need to be aware of [[User:Dyrcona/LeopardBuild#flex]].&lt;br /&gt;
&lt;br /&gt;
==== Xcode ====&lt;br /&gt;
&lt;br /&gt;
This is the only mandatory part to be installed to build Aqua version of OpenOffice.org.&lt;br /&gt;
&lt;br /&gt;
Current verified working version is &amp;#039;&amp;#039;&amp;#039;XCode 2.4.1&amp;#039;&amp;#039;&amp;#039;. Older are deprecated.&lt;br /&gt;
&lt;br /&gt;
==== Java ====&lt;br /&gt;
&lt;br /&gt;
Aqua version of OpenOffice.org does not build yet using Java SDK 1.6.0.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Please use either J2SDK 1.4.2 or 1.5.0&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To change the Java version -&amp;gt; go into folder : Applications -&amp;gt; Utilities -&amp;gt; Java and modify. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Else, you&amp;#039;ll meet unfixed build breakers (patches are welcome anyway)&lt;br /&gt;
&lt;br /&gt;
Note: If you are interested in helping us with Java 1.6 a patch which enables the build using java 1.6 is available [http://eric.bachard.free.fr/mac/aquavcl/patches/aquavcl03_august2007/java1.6/java_1.6_build.diff  &amp;#039;&amp;#039;&amp;#039;here&amp;#039;&amp;#039;&amp;#039;].  e.g. several known build issues have to be fixed e.g. hsqldb, but probably other modules are concerned.&lt;br /&gt;
&lt;br /&gt;
Be aware that it may impact important work and/or incompatibilities will occur. Feel free to submit your patches at mac@porting mailing list.&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
You need a build of [[http://www.gnu.org/software/gperf/gperf.html gperf]] in your path for some modules.&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:blue; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039; Strongly recommended&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
If you intend to build OpenOffice.org several times, you probably can benefit of ccache since it will speed up your future builds. The first time you make a build with ccache you won&amp;#039;t notice it, but the next time the build will go up to five times faster.&lt;br /&gt;
&lt;br /&gt;
You can install it using &amp;#039;&amp;#039;&amp;#039;[http://www.finkproject.org/ Fink]&amp;#039;&amp;#039;&amp;#039;. It is simply named &amp;quot;ccache&amp;quot;. For &amp;#039;&amp;#039;&amp;#039;[http://www.macports.org/ MacPorts]&amp;#039;&amp;#039;&amp;#039; users the package is called &amp;quot;ccache&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t use fink, you can download and build it yourself using the source provided at http://ccache.samba.org/&lt;br /&gt;
&lt;br /&gt;
In order to use ccache you need to change the following environment variables &amp;#039;&amp;#039;&amp;#039;assuming you&amp;#039;re using bash, and just before doing configure command line&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Everything is installed ?  Now build it... &amp;#039;&amp;#039;&amp;#039;==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:green; font-size:22px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;=&amp;gt; Current Milestone is m4, and current MWS is DEV300&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Getting the code (checkout, merge and patch the puppy)&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== Create a directory for a given milestone, setup CVS access: ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 mkdir DEV300_m4&lt;br /&gt;
 cd DEV300_m4&lt;br /&gt;
 export CVSROOT=&amp;quot;:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs&amp;quot;&lt;br /&gt;
 cvs login&lt;br /&gt;
 (password is &amp;#039;anoncvs&amp;#039; )  + Enter&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 Note: The source should be downloaded to a path that does not contain any spaces, otherwise compiling might be troublesome.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== checkout DEV300 (Master workspace since 3.0 branch creation) (1,5 GB): ===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 cvs -z3 co -r DEV300_m4 OpenOffice2    # don&amp;#039;t forget the &amp;quot;2&amp;quot; !!&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Once done, you&amp;#039;ll obtain milestone m4 from DEV300 Master workspace&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:green; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Additional dependencies for current Milestone builds&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
==== prebuilt Mozilla archives ====&lt;br /&gt;
&lt;br /&gt;
To enable the use of macros (disabled by default for security reasons), you&amp;#039;ll have to put the prebuilt archives of mozilla binaries in moz/zipped directory after renaming them properly.&lt;br /&gt;
&lt;br /&gt;
Note: archives are Universal Binaries, and you&amp;#039;ll have to rename them, depending on your architecture (either Intel or PowerPC)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Archives to be downloaded&amp;#039;&amp;#039;&amp;#039; :&lt;br /&gt;
&lt;br /&gt;
http://eric.bachard.free.fr/mac/moz/sb83/UB/MACOSXGCCUinc.zip &lt;br /&gt;
&lt;br /&gt;
http://eric.bachard.free.fr/mac/moz/sb83/UB/MACOSXGCCUlib.zip&lt;br /&gt;
&lt;br /&gt;
http://eric.bachard.free.fr/mac/moz/sb83/UB/MACOSXGCCUruntime.zip&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Scheduled URLs means &amp;#039;&amp;#039;&amp;#039;NOT AVAILABLE YET&amp;#039;&amp;#039;&amp;#039; : &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://tools.openoffice.org/source/browse/tools/www/moz_prebuild/300/MACOSXGCCUinc.zip &lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/source/browse/tools/www/moz_prebuild/300/MACOSXGCCUlib.zip&lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/source/browse/tools/www/moz_prebuild/300/MACOSXGCCUruntime.zip )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;IMPORTANT : if you want to build OpenOffice.org on Mac OS X  using SRC680 sources or DEV300 before sb83 integration (means before DEV300_m4) ,&lt;br /&gt;
&lt;br /&gt;
you MUST use the mozilla archives below&amp;#039;&amp;#039;&amp;#039; :&lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/moz_prebuild/680/MACOSXGCCUBinc.zip&lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/moz_prebuild/680/MACOSXGCCUBlib.zip&lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/moz_prebuild/680/MACOSXGCCUBruntime.zip&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to build using them on PowerPC or Intel architecture (with Tiger)  please rename them this way  :&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|Archive || Name in Intel architecture || Name on PowerPC architecture&lt;br /&gt;
|-&lt;br /&gt;
| headers || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039;inc.zip || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;#039;inc.zip&lt;br /&gt;
|-&lt;br /&gt;
| runtime || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039;runtime.zip || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;#039;lib.zip&lt;br /&gt;
|-&lt;br /&gt;
| libs || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039;lib.zip || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;#039;lib.zip&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see, &amp;#039;&amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;#039; means PowerPC, and &amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039; means Intel (replacing &amp;#039;&amp;#039;&amp;#039;U&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;UB&amp;#039;&amp;#039;&amp;#039; (it depends on the builder) in the original name)&lt;br /&gt;
&lt;br /&gt;
.. and put them into &amp;#039;&amp;#039;&amp;#039;&amp;lt;ooo build directory&amp;gt;/DEV300_m4/moz/zipped&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
Once done, you&amp;#039;ll obtain milestone m0 from DEV300.&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org should detect and use them if you respect the configure command line as described in Milestone build.&lt;br /&gt;
&lt;br /&gt;
=== One-Time preparations and scripts ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org&amp;#039;s build environment is configured using the popular open-source configuration-management package &amp;#039;autoconf&amp;#039;. So you can do your beloved &amp;#039;./configure&amp;#039; command, but in our case this is done in the &amp;#039;config_office&amp;#039; subdirectory. To save the configure parameters and use them with different milestones I used to link-in my shellscript to fire up the ./configure line.&lt;br /&gt;
&lt;br /&gt;
My directory-structure looks like this:&lt;br /&gt;
&lt;br /&gt;
 bin/&lt;br /&gt;
 DEV300_m4/ &lt;br /&gt;
 DEV300_m2/&lt;br /&gt;
 DEV300_m0/&lt;br /&gt;
 SRC680_m248/&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Now I go to the &amp;#039;config_office&amp;#039; subdir and link in my startscript:&lt;br /&gt;
 cd DEV300_m4/config_office/&lt;br /&gt;
 ln -s ../../bin/build.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And this is how &amp;#039;build.sh&amp;#039; (to be written) looks like :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
 export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
 echo Building from     : $BASE&lt;br /&gt;
 echo OpenOffice Version: $OOVERSION&lt;br /&gt;
 ./configure \&lt;br /&gt;
 --with-lang=&amp;quot;en-US de fr&amp;quot; \&lt;br /&gt;
 --disable-odk \&lt;br /&gt;
 --disable-pasf \&lt;br /&gt;
 --disable-gtk \&lt;br /&gt;
 --disable-headless \&lt;br /&gt;
 --disable-build-mozilla \&lt;br /&gt;
 --with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
 --disable-fontconfig \&lt;br /&gt;
 --without-nas \&lt;br /&gt;
 --with-use-shell=bash \&lt;br /&gt;
 --with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
 --with-stlport=no&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note :  --disable-neon has been removed since m217 resync. See issue : [[http://qa.openoffice.org/issues/show_bug.cgi?id=78206 --disable-neon breaks aqua build]]&lt;br /&gt;
&lt;br /&gt;
--disable-odk : disables SDK build, and will avoid you to download some windows dll which is not needed for aqua-build.&lt;br /&gt;
&lt;br /&gt;
--disable-pasf : pasf stands for Portable Audio System file. As we want to use system library rather than portable ones, we disabled this. However, at this time not all functionality will be available with pasf disabled. You might willing to use --with-pasf if you want working audio in your build.&lt;br /&gt;
&lt;br /&gt;
--without-nas : nas stands for Network Audio System, it uses X11, if you want to use it in your build, just remove this flag. You will need to install the X11 package provided in your CDs/DVD Mac OS X installation. X11 SDK from xCode tools is not required for build this.&lt;br /&gt;
&lt;br /&gt;
--disable-build-mozilla: will disable the mozilla build (in the moz module), but mozilla pre-built archives will be used instead (they are mandatory to enable the macro security configuration dialog (see [http://www.openoffice.org/issues/show_bug.cgi?id=79885 issue 79885]).&lt;br /&gt;
&lt;br /&gt;
--enable-dbgutil: add this option to enable assertions and other functionality useful for debugging&lt;br /&gt;
&lt;br /&gt;
--with-jdk-home must be set as above with XCode 3.0&lt;br /&gt;
&lt;br /&gt;
--with-stlport=no uses Apple&amp;#039;s built-in STL, but will cause some warnings&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Doing the build (about 4,5 GB)&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
Fine, now we have a (hopefully) working &amp;#039;build.sh&amp;#039; in the config_office subdir. We need to run it beforehand:&lt;br /&gt;
&lt;br /&gt;
 cd DEV300_m4/config_office/&lt;br /&gt;
 &lt;br /&gt;
 ./build.sh&lt;br /&gt;
&lt;br /&gt;
This will setup the necessary includefiles and create a couple of files in the &amp;#039;&amp;#039;&amp;#039;parent&amp;#039;&amp;#039;&amp;#039; directory (bootstrap, MacOSXPPCEnv.Set.sh, MacOSXPPCEnv.Set). If you are using the sh, ksh or bash you only need to take care for &amp;#039;MacOSXPPCEnv.Set.sh&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now we need to get back to our base-directory, run the bootstrap script, source our Enviroment (MacOSXPPCEnv.Set.sh) and finally start the build-process:&lt;br /&gt;
&lt;br /&gt;
==== Mac Intel ====&lt;br /&gt;
&lt;br /&gt;
 cd ..&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 source MacOSXX86Env.Set.sh&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 export TMP=/tmp&lt;br /&gt;
 export SYSTEM_OPENSSL=YES&lt;br /&gt;
&lt;br /&gt;
+ &lt;br /&gt;
 build --all -P4 --dlv_switch -link --dontgraboutput&lt;br /&gt;
 &lt;br /&gt;
 or&lt;br /&gt;
 &lt;br /&gt;
 build --all -P4 &lt;br /&gt;
&lt;br /&gt;
if you run into trouble with --dlv_switch (see: [http://qa.openoffice.org/issues/show_bug.cgi?id=77360 | issue 77360])&lt;br /&gt;
&lt;br /&gt;
==== On PowerPC ====&lt;br /&gt;
&lt;br /&gt;
 cd ..&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 source MacOSXPPCEnv.Set.sh&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 export TMP=/tmp&lt;br /&gt;
 export SYSTEM_OPENSSL=YES&lt;br /&gt;
&lt;br /&gt;
+ &lt;br /&gt;
  &lt;br /&gt;
 build --all -P2 --dlv_switch -link --dontgraboutput&lt;br /&gt;
 &lt;br /&gt;
 or&lt;br /&gt;
 &lt;br /&gt;
 build --all -P2 &lt;br /&gt;
&lt;br /&gt;
===== Comments on above =====&lt;br /&gt;
&lt;br /&gt;
if you run into trouble with --dlv_switch (see: [http://qa.openoffice.org/issues/show_bug.cgi?id=77360|issue 77360])&lt;br /&gt;
&lt;br /&gt;
The main purpose of the &amp;#039;&amp;#039;&amp;#039;bootstrap&amp;#039;&amp;#039;&amp;#039; script is to build (if necessary) the dmake utility used. Dmake once was a unix make-clone made by wticorp but got incorporated into OpenOffice since it was orphaned. For more information about dmake, it&amp;#039;s history and manpage have a look here: http://tools.openoffice.org/dmake/index.html&lt;br /&gt;
&lt;br /&gt;
Sourcing MacOSXPPCEnv.Set.sh is very important not only for building but also for &amp;#039;&amp;#039;&amp;#039;running&amp;#039;&amp;#039;&amp;#039; svdem later on. Here all the Environment-Variables for the Build will be set up. For a detailed description see [[Environment_Variables]]. Please note that on Intel machines, &amp;#039;MacOSXPPCEnv.Set.sh&amp;#039; should be substituted with &amp;#039;MacOSXX86Env.Set.sh&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
This Build process takes on my box (Dual 1.8 GHz G5, 1.5GB RAM) roughly 10 hours, and 3 to 6 hours on Mac Intel (3:30h on a 2GHz DualCore INTEL iMac). Be patient.&lt;br /&gt;
&lt;br /&gt;
If you want to see how the progress on that build  is you can use two &amp;#039;&amp;#039;&amp;#039;build&amp;#039;&amp;#039;&amp;#039; options to get a comfortable view:&lt;br /&gt;
&lt;br /&gt;
 build ... &amp;lt;see above&amp;gt; ... --html --html_path /Users/$USER/Sites&lt;br /&gt;
&lt;br /&gt;
where $USER is your user name. Then you can load in Firefox (not Safari!) the HTML file &amp;#039;&amp;#039;&amp;#039;unxmacxi.pro.build.html&amp;#039;&amp;#039;&amp;#039; via the in Mac OS X included Apache web server or diretctly form the directory &amp;#039;&amp;#039;/Users/$USER/Sites/&amp;#039;&amp;#039;. This file is automatically being updated and is showing the status of the build and also the time needed since the build started.&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Installing, preparing and running OpenOffice.org&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039; Find the Bundle&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
Once the build completed, the Final product ( en-US version ) is named :  OOo_3.0.0_080312_MacOSXIntel_install.dmg ( for version 3.0beta e.g.) &lt;br /&gt;
&lt;br /&gt;
And is located in instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US  directory ( replace en-US with your locale )&lt;br /&gt;
&lt;br /&gt;
[[Image:Bundle_Location3.0beta.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;&amp;#039;Run the soffice.bin&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In one line :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Double click the .dmg , drag the OpenOffice.org icon in the folder you want, and double click to run it !!&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note : soffice.bin leads XCode to not work (because of the dot in the name). The issue has been reported to xcode-users list.&lt;br /&gt;
 &lt;br /&gt;
We&amp;#039;re nearly through, let&amp;#039;s fire-off the binary:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But a lot has to be done, and if you want to trace (using gdb e.g.), just do:&lt;br /&gt;
&lt;br /&gt;
cd &amp;lt;INSTALL_DIR&amp;gt;/OpenOffice.org/Contents/MacOS&lt;br /&gt;
&lt;br /&gt;
and run:&lt;br /&gt;
&lt;br /&gt;
gdb --args soffice.bin&lt;br /&gt;
&lt;br /&gt;
(add any breakpoint you want)&lt;br /&gt;
&lt;br /&gt;
r to run OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Use vcl menubar and / or vcl menus ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Native menus are defaults. If you want to use vcl menus, do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AQUA_NATIVE_MENUS=FALSE ./soffice.bin&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: options to not recover is  -norestore , and to bypass the user informations to fill in, use -nofirststartwizard&lt;br /&gt;
&lt;br /&gt;
AQUA_NATIVE_MENUS=FALSE ./soffice.bin -nofirststartwizard -norestore&lt;br /&gt;
&lt;br /&gt;
You can also insert environement variables in a Dictionary Class of Info.plist located in the Contents directory of OpenOffice.org bundle.&lt;br /&gt;
&lt;br /&gt;
For example, you can add the following XML in a text editor (or make it generated by Property List Editor) in your Info.plist :&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;key&amp;gt;LSEnvironment&amp;lt;/key&amp;gt;&lt;br /&gt;
   &amp;lt;dict&amp;gt;&lt;br /&gt;
       &amp;lt;key&amp;gt;AQUA_NATIVE_MENUS&amp;lt;/key&amp;gt;&lt;br /&gt;
       &amp;lt;string&amp;gt;TRUE&amp;lt;/string&amp;gt;&lt;br /&gt;
       &amp;lt;key&amp;gt;OOO_DISABLE_RECOVERY&amp;lt;/key&amp;gt;&lt;br /&gt;
       &amp;lt;string&amp;gt;TRUE&amp;lt;/string&amp;gt;&lt;br /&gt;
       &amp;lt;key&amp;gt;SAL_NO_NWF&amp;lt;/key&amp;gt;&lt;br /&gt;
        &amp;lt;string&amp;gt;TRUE&amp;lt;/string&amp;gt;&lt;br /&gt;
   &amp;lt;dict&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that in order to work, the OOO_DISABLE_RECOVERY variable detection must be manually inserted in OOo code using the following patch :&lt;br /&gt;
http://www.go-oo.org/patches/src680/disable-recovery.diff&lt;br /&gt;
&lt;br /&gt;
This patch is outdated, but you can make the modifications yourself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the enviroment variable here. AQUA_NATIVE_MENUS is experimental stuff created by Pavel, SAL_NO_NWF was created some times ago, and is located in vcl/source/window/window.cxx . At the moment we have:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;15&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Variable || Function&lt;br /&gt;
|-&lt;br /&gt;
| SAL_NO_NWF=TRUE  || disable native controls code&lt;br /&gt;
|-&lt;br /&gt;
| AQUA_NATIVE_MENUS=FALSE || disable native menus code&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Both changes are marked with comments in the source code, and when we remove them in the future, native controls and native menus will be enabled by default.&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Debug and contribute &amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;You want to provide crash issue details? Please see [[Providing_a_gdb_backtrace]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;You want to debug using XCode? Please see [[MacOSX_Debug_OpenOffice.org_using_XCode]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;You want to debug using Xemacs? Please see [http://www.mikesicotte.com/2007/02/21/debugging-ooo-with-xemacs-and-gdb Michael Sicotte&amp;#039;s blog entry]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:green; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;[[AquaBuild/Cocoa Informations]] &amp;lt;== Additionnal informations for advanced developers &amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Current Work in progress&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Developers are working on the following Child workspaces, all Mac OSX dedicated (not integrated )&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
* aquavcl06 (planned)&lt;br /&gt;
&lt;br /&gt;
* macosxscanner (planned)&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Closed for development&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;quicklookplugin01&amp;#039;&amp;#039;&amp;#039; : This cws provides a plugin for the QuickLook system available in MacOSX from versions 10.5 onwards&lt;br /&gt;
&lt;br /&gt;
Concerned modules : extensions scp2&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Integrated&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
Integrated in dev300_m2&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;[http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=SRC680%2Faquavcl05 aquavcl05]&amp;#039;&amp;#039;&amp;#039;: &lt;br /&gt;
&lt;br /&gt;
concerned modules : automation avmedia connectivity default_images desktop filter framework &lt;br /&gt;
&lt;br /&gt;
instsetoo_native jvmfwk lingucomponent officecfg sal sc scp2 sfx2 shell vcl&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquafilepicker02&amp;#039;&amp;#039;&amp;#039; : replace Carbon native FilePicker with Cocoa native FilePicker &lt;br /&gt;
&lt;br /&gt;
Concerned module : fpicker sfx2 solenv svtools&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;nativeprintdlg01&amp;#039;&amp;#039;&amp;#039; : add support for native print dialog &lt;br /&gt;
&lt;br /&gt;
Concerned modules: offapi, vcl, sfx2, svtools, sw&lt;br /&gt;
&lt;br /&gt;
Integrated m248&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macosxdnd&amp;#039;&amp;#039;&amp;#039; Drag and Drop for Aqua&lt;br /&gt;
&lt;br /&gt;
Concerned modules : dtrans svtools vcl&lt;br /&gt;
&lt;br /&gt;
Integrated m247&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;obr07&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Remove a few Mac OS X specialties&lt;br /&gt;
&lt;br /&gt;
Concerned modules:  desktop instsetoo_native scp2 setup_native solenv sysui vcl&lt;br /&gt;
&lt;br /&gt;
Integrated in m243&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;stl4leopardppc&amp;#039;&amp;#039;&amp;#039; : allow OpenOffice.org to be built on Mac OS X 10.5 PowerPC using system stl, using --without-stlport4 configure option.&lt;br /&gt;
&lt;br /&gt;
If possible, continue with other builds (Leopard / Tiger Intel and PowerPC).&lt;br /&gt;
&lt;br /&gt;
Concerned modules : connectivity, cosv, fpicker, autodoc &lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;[http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=SRC680%2Faquavcl04 aquavcl04]&amp;#039;&amp;#039;&amp;#039;: &lt;br /&gt;
&lt;br /&gt;
concerned modules : desktop vcl rsc shell svx sw solenv instsetoo_native&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m239&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macosxquicktime01&amp;#039;&amp;#039;&amp;#039; : use QTKit for sounds and movies&lt;br /&gt;
&lt;br /&gt;
Concerned modules : avmedia scp2 vcl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m238&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macosx24dmg&amp;#039;&amp;#039;&amp;#039; : fix bad icon positionning in the mounted disk image ( already Approved by QA )&lt;br /&gt;
&lt;br /&gt;
Concerned module : instsetoo_native&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m237&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;pj86&amp;#039;&amp;#039;&amp;#039; : Make module sw warning free on Mac OS X&lt;br /&gt;
&lt;br /&gt;
Concerned modules : sw , solenv&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macleopardbuild&amp;#039;&amp;#039;&amp;#039; : be Leopard compatible, when building on Tiger&lt;br /&gt;
&lt;br /&gt;
Concerned modules : idlc soltools jvmfwk extensions stlport&lt;br /&gt;
&lt;br /&gt;
Integrated in m233&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;readme4macintel&amp;#039;&amp;#039;&amp;#039;  &lt;br /&gt;
&lt;br /&gt;
concerned module : readlicense_oo&lt;br /&gt;
&lt;br /&gt;
Integrated in m233&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquavcl03&amp;#039;&amp;#039;&amp;#039; ( Carbon -&amp;gt; Cocoa migration )&lt;br /&gt;
&lt;br /&gt;
concerned modules are desktop, instsetoo_native, solenv, svtools, vcl&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;spotlightplugin01&amp;#039;&amp;#039;&amp;#039; ( add a new Sportlight plugin )&lt;br /&gt;
&lt;br /&gt;
Concerned modules: extensions, scp2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m229&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macaddressbook01&amp;#039;&amp;#039;&amp;#039;  (QA in progress )&lt;br /&gt;
&lt;br /&gt;
concerned modules are : scp2, dbaccess, extensions, connectivity&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macosxspellchecker&amp;#039;&amp;#039;&amp;#039;  :  use Mac OS X spellchecker&lt;br /&gt;
&lt;br /&gt;
Concerned modules: lingucomponent, solenv&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquavclcarbonfixes&amp;#039;&amp;#039;&amp;#039; ( Carbon version of Aqua OpenOffice.org ): fix the 5 most important issues. &lt;br /&gt;
&lt;br /&gt;
concerned modules are : desktop, vcl, fpicker, libxmlsec, xmlsecurity, basic&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m228&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;cloph09&amp;#039;&amp;#039;&amp;#039;  ( remove X11SDK dependance for Aquabuild )&lt;br /&gt;
&lt;br /&gt;
Concerned modules:  np_sdk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m227&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquaremovescripts&amp;#039;&amp;#039;&amp;#039;: remove useless Applescripts from Aqua version&lt;br /&gt;
&lt;br /&gt;
concerned module: instsetoo_native&lt;br /&gt;
&lt;br /&gt;
Integrated in m223:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquavcl02&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m222 : &lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquaremovefondu&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*macosxdmg23&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m221:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquafilepicker01&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All patches that developers have that need testing or peer review should be added here.&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Known build issues &amp;#039;&amp;#039;&amp;#039;==&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Panther&amp;#039;&amp;#039;&amp;#039; build (X11 only) : currently broken ( work in progress )&lt;br /&gt;
&lt;br /&gt;
Since latest resync, no build issues have been reported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Tiger&amp;#039;&amp;#039;&amp;#039;:  no problem nor for X11 nor Aqua versions (main baseline)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Leopard&amp;#039;&amp;#039;&amp;#039; Intel : builds OK now. Build is broken in cppu for PowerPC architecture, and builds fine using --without-stlport4 flag&lt;br /&gt;
&lt;br /&gt;
*Native FilePicker is fixed (aquafilepicker02 + pl fixed repaint issue )&lt;br /&gt;
&lt;br /&gt;
*Lot of warnings in vcl, due to other deprecated stuff&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:grey; font-size:12px&amp;quot;&amp;gt;[[AquaBuild/Some Background | &amp;#039;&amp;#039;&amp;#039;Some Background (what is aquavcl01, EIS) (click me to know more) &amp;#039;&amp;#039;&amp;#039;]]&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;External links&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
# [http://www.openoffice.org/issues/query.cgi Bug Database]&lt;br /&gt;
# Mailinglist: [http://porting.openoffice.org/servlets/ProjectMailingListList mac@porting.openoffice.org]  (subscribe is mandatory )&lt;br /&gt;
# IRC Meeting-Logs (#ooo_macport@freenode.org): [[Previous_Mac_Meeting_logs]] [[MacOSXPortMeetings]]&lt;br /&gt;
# TX20: http://eric.bachard.free.fr/UTBM_TX20/reports/Carbon_vcl.pdf&lt;br /&gt;
# OpenOffice Source Directory Structure: http://wiki.services.openoffice.org/wiki/Source_code_directories&lt;br /&gt;
# Pavels Patch Wiki: http://blog.janik.cz/&lt;br /&gt;
# Eric Bachard Wiki: http://wiki.services.openoffice.org/wiki/User:Ericb&lt;br /&gt;
# Sebastien Plisson Wiki: http://splisson.blogspot.com/&lt;br /&gt;
# Christian Lippka Wiki: http://wiki.services.openoffice.org/wiki/User:CL&lt;br /&gt;
# Carbon: http://developer.apple.com/carbon&lt;br /&gt;
# EIS: http://eis.services.openoffice.org/EIS2/servlet/Logon&lt;br /&gt;
# Runtime Configuration: http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/index.html&lt;br /&gt;
# OpenOffice Domain Developer http://wiki.services.openoffice.org/wiki/DomainDeveloper&lt;br /&gt;
# Nakata Maho&amp;#039;s package build service http://ooopackages.good-day.net/pub/OpenOffice.org/MacOSX/&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Screenshots&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
# Eric Bachard screenshots (some are from Stephan Schaefer) http://eric.bachard.free.fr/mac/aquavcl/screenshots/&lt;br /&gt;
# Most recent: http://eric.bachard.free.fr/mac/aquavcl/screenshots/aqua_menus_05_nov_06/&lt;br /&gt;
# Pavel Janik screenshots http://blog.janik.cz/images/MacOSX/2006-08-10&lt;br /&gt;
# Important screenshot (eventloop issue): http://blog.janik.cz/images/MacOSX/  =&amp;gt; See: OOoMenus-separator-and-disabled_entries.png&lt;br /&gt;
# current Aqua look (taken from CWS aquavcl05): &lt;br /&gt;
[[image:Aqualook.png]]&lt;br /&gt;
&lt;br /&gt;
More menus: http://eric.bachard.free.fr/mac/aquavcl/screenshots/aqua_menus_05_nov_06/index.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Aqua]]&lt;br /&gt;
[[Category:Build_System]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide/Building_on_MacOSX&amp;diff=71797</id>
		<title>Documentation/Building Guide/Building on MacOSX</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide/Building_on_MacOSX&amp;diff=71797"/>
		<updated>2008-03-26T23:06:52Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Mac OS X version */  Add not about flex.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:blue; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Cocoa migration is in progress &amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:red; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Please note the new Master Work space (MWS) is now DEV300, means DO  NO LONGER USE SRC680 &amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;This document tries to wrap-up the build process for [[OpenOffice.org]] on Mac OS X using the native windowing-toolkit of the platform named Aqua.&amp;#039;&amp;#039;&amp;#039; &amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Important links for Cocoa development ===&lt;br /&gt;
&lt;br /&gt;
[http://www.cocoadev.com Cocoadev ]&lt;br /&gt;
&lt;br /&gt;
[http://ktd.club.fr/programmation/objective-c.php Pierre Chatelier page about C++ to Cocoa conversion ]&lt;br /&gt;
&lt;br /&gt;
Note: .pdf available in both english and french versions. Excellent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(Outdated): To give a kickstart in the coding involved to get VCL ported to Carbon, please have a look at the excellent Pierre de Filippis [[Intro To Mac Porting]].&lt;br /&gt;
&lt;br /&gt;
We use the bash shell in all examples, since to our belief users of the C-shell are smart enough to figure out the differences anyway. If you want to dig deeper into the build process, please have a look at the description of the build environment here: [http://tools.openoffice.org/build_env.html OpenOffice.org Build Environment].&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Prerequisites&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
This document was derived from the description of the X11 build thanksworthy provided by Eric Hoch in this document: [[MacOSXBuildInstructions]].&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Here we would like to outline the things you need to build the Aqua Version&amp;#039;&amp;#039;&amp;#039; (besides the OS). &lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:red; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Mandatory&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
==== Mac OS X version ====&lt;br /&gt;
&lt;br /&gt;
=&amp;gt; &amp;#039;&amp;#039;&amp;#039;Minimal version for AquaBuild is Mac OS X 10.4 (aka Tiger).&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
I you are building on Mac OS X 10.5 (aka Leopard), you will need to be aware of [[User:Dyrcona/LeopardBuild#flex]].&lt;br /&gt;
&lt;br /&gt;
==== Xcode ====&lt;br /&gt;
&lt;br /&gt;
This is the only mandatory part to be installed to build Aqua version of OpenOffice.org.&lt;br /&gt;
&lt;br /&gt;
Current verified working version is &amp;#039;&amp;#039;&amp;#039;XCode 2.4.1&amp;#039;&amp;#039;&amp;#039;. Older are deprecated.&lt;br /&gt;
&lt;br /&gt;
==== Java ====&lt;br /&gt;
&lt;br /&gt;
Aqua version of OpenOffice.org does not build yet using Java SDK 1.6.0.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Please use either J2SDK 1.4.2 or 1.5.0&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To change the Java version -&amp;gt; go into folder : Applications -&amp;gt; Utilities -&amp;gt; Java and modify. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Else, you&amp;#039;ll meet unfixed build breakers (patches are welcome anyway)&lt;br /&gt;
&lt;br /&gt;
Note: If you are interested in helping us with Java 1.6 a patch which enables the build using java 1.6 is available [http://eric.bachard.free.fr/mac/aquavcl/patches/aquavcl03_august2007/java1.6/java_1.6_build.diff  &amp;#039;&amp;#039;&amp;#039;here&amp;#039;&amp;#039;&amp;#039;].  e.g. several known build issues have to be fixed e.g. hsqldb, but probably other modules are concerned.&lt;br /&gt;
&lt;br /&gt;
Be aware that it may impact important work and/or incompatibilities will occur. Feel free to submit your patches at mac@porting mailing list.&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
You need a build of [[http://www.gnu.org/software/gperf/gperf.html gperf]] in your path for some modules.&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:blue; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039; Strongly recommended&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
If you intend to build OpenOffice.org several times, you probably can benefit of ccache since it will speed up your future builds. The first time you make a build with ccache you won&amp;#039;t notice it, but the next time the build will go up to five times faster.&lt;br /&gt;
&lt;br /&gt;
You can install it using &amp;#039;&amp;#039;&amp;#039;[http://www.finkproject.org/ Fink]&amp;#039;&amp;#039;&amp;#039;. It is simply named &amp;quot;ccache&amp;quot;. For &amp;#039;&amp;#039;&amp;#039;[http://www.macports.org/ MacPorts]&amp;#039;&amp;#039;&amp;#039; users the package is called &amp;quot;ccache&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t use fink, you can download and build it yourself using the source provided at http://ccache.samba.org/&lt;br /&gt;
&lt;br /&gt;
In order to use ccache you need to change the following environment variables &amp;#039;&amp;#039;&amp;#039;assuming you&amp;#039;re using bash, and just before doing configure command line&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Everything is installed ?  Now build it... &amp;#039;&amp;#039;&amp;#039;==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:green; font-size:22px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;=&amp;gt; Current Milestone is m4, and current MWS is DEV300&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Getting the code (checkout, merge and patch the puppy)&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== Create a directory for a given milestone, setup CVS access: ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 mkdir DEV300_m4&lt;br /&gt;
 cd DEV300_m4&lt;br /&gt;
 export CVSROOT=&amp;quot;:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs&amp;quot;&lt;br /&gt;
 cvs login&lt;br /&gt;
 (password is &amp;#039;anoncvs&amp;#039; )  + Enter&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 Note: The source should be downloaded to a path that does not contain any spaces, otherwise compiling might be troublesome.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== checkout DEV300 (Master workspace since 3.0 branch creation) (1,5 GB): ===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 cvs -z3 co -r DEV300_m4 OpenOffice2    # don&amp;#039;t forget the &amp;quot;2&amp;quot; !!&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Once done, you&amp;#039;ll obtain milestone m4 from DEV300 Master workspace&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:green; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Additional dependencies for current Milestone builds&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
==== prebuilt Mozilla archives ====&lt;br /&gt;
&lt;br /&gt;
To enable the use of macros (disabled by default for security reasons), you&amp;#039;ll have to put the prebuilt archives of mozilla binaries in moz/zipped directory after renaming them properly.&lt;br /&gt;
&lt;br /&gt;
Note: archives are Universal Binaries, and you&amp;#039;ll have to rename them, depending on your architecture (either Intel or PowerPC)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Archives to be downloaded&amp;#039;&amp;#039;&amp;#039; :&lt;br /&gt;
&lt;br /&gt;
http://eric.bachard.free.fr/mac/moz/sb83/UB/MACOSXGCCUinc.zip &lt;br /&gt;
&lt;br /&gt;
http://eric.bachard.free.fr/mac/moz/sb83/UB/MACOSXGCCUlib.zip&lt;br /&gt;
&lt;br /&gt;
http://eric.bachard.free.fr/mac/moz/sb83/UB/MACOSXGCCUruntime.zip&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Scheduled URLs means &amp;#039;&amp;#039;&amp;#039;NOT AVAILABLE YET&amp;#039;&amp;#039;&amp;#039; : &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://tools.openoffice.org/source/browse/tools/www/moz_prebuild/300/MACOSXGCCUinc.zip &lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/source/browse/tools/www/moz_prebuild/300/MACOSXGCCUlib.zip&lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/source/browse/tools/www/moz_prebuild/300/MACOSXGCCUruntime.zip )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;IMPORTANT : if you want to build OpenOffice.org on Mac OS X  using SRC680 sources or DEV300 before sb83 integration (means before DEV300_m4) ,&lt;br /&gt;
&lt;br /&gt;
you MUST use the mozilla archives below&amp;#039;&amp;#039;&amp;#039; :&lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/moz_prebuild/680/MACOSXGCCUBinc.zip&lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/moz_prebuild/680/MACOSXGCCUBlib.zip&lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/moz_prebuild/680/MACOSXGCCUBruntime.zip&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to build using them on PowerPC or Intel architecture (with Tiger)  please rename them this way  :&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|Archive || Name in Intel architecture || Name on PowerPC architecture&lt;br /&gt;
|-&lt;br /&gt;
| headers || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039;inc.zip || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;#039;inc.zip&lt;br /&gt;
|-&lt;br /&gt;
| runtime || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039;runtime.zip || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;#039;lib.zip&lt;br /&gt;
|-&lt;br /&gt;
| libs || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039;lib.zip || MACOSXGCC&amp;#039;&amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;#039;lib.zip&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see, &amp;#039;&amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;#039; means PowerPC, and &amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039; means Intel (replacing &amp;#039;&amp;#039;&amp;#039;U&amp;#039;&amp;#039;&amp;#039; or the &amp;#039;&amp;#039;&amp;#039;UB&amp;#039;&amp;#039;&amp;#039; (it depends on the builder) in the original name)&lt;br /&gt;
&lt;br /&gt;
.. and put them into &amp;#039;&amp;#039;&amp;#039;&amp;lt;ooo build directory&amp;gt;/DEV300_m4/moz/zipped&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
Once done, you&amp;#039;ll obtain milestone m0 from DEV300.&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org should detect and use them if you respect the configure command line as described in Milestone build.&lt;br /&gt;
&lt;br /&gt;
=== One-Time preparations and scripts ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org&amp;#039;s build environment is configured using the popular open-source configuration-management package &amp;#039;autoconf&amp;#039;. So you can do your beloved &amp;#039;./configure&amp;#039; command, but in our case this is done in the &amp;#039;config_office&amp;#039; subdirectory. To save the configure parameters and use them with different milestones I used to link-in my shellscript to fire up the ./configure line.&lt;br /&gt;
&lt;br /&gt;
My directory-structure looks like this:&lt;br /&gt;
&lt;br /&gt;
 bin/&lt;br /&gt;
 DEV300_m4/ &lt;br /&gt;
 DEV300_m2/&lt;br /&gt;
 DEV300_m0/&lt;br /&gt;
 SRC680_m248/&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Now I go to the &amp;#039;config_office&amp;#039; subdir and link in my startscript:&lt;br /&gt;
 cd DEV300_m4/config_office/&lt;br /&gt;
 ln -s ../../bin/build.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And this is how &amp;#039;build.sh&amp;#039; (to be written) looks like :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
 export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
 echo Building from     : $BASE&lt;br /&gt;
 echo OpenOffice Version: $OOVERSION&lt;br /&gt;
 ./configure \&lt;br /&gt;
 --with-lang=&amp;quot;en-US de fr&amp;quot; \&lt;br /&gt;
 --disable-odk \&lt;br /&gt;
 --disable-pasf \&lt;br /&gt;
 --disable-gtk \&lt;br /&gt;
 --disable-headless \&lt;br /&gt;
 --disable-build-mozilla \&lt;br /&gt;
 --with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
 --disable-fontconfig \&lt;br /&gt;
 --without-nas \&lt;br /&gt;
 --with-use-shell=bash \&lt;br /&gt;
 --with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
 --with-stlport=no&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note :  --disable-neon has been removed since m217 resync. See issue : [[http://qa.openoffice.org/issues/show_bug.cgi?id=78206 --disable-neon breaks aqua build]]&lt;br /&gt;
&lt;br /&gt;
--disable-odk : disables SDK build, and will avoid you to download some windows dll which is not needed for aqua-build.&lt;br /&gt;
&lt;br /&gt;
--disable-pasf : pasf stands for Portable Audio System file. As we want to use system library rather than portable ones, we disabled this. However, at this time not all functionality will be available with pasf disabled. You might willing to use --with-pasf if you want working audio in your build.&lt;br /&gt;
&lt;br /&gt;
--without-nas : nas stands for Network Audio System, it uses X11, if you want to use it in your build, just remove this flag. You will need to install the X11 package provided in your CDs/DVD Mac OS X installation. X11 SDK from xCode tools is not required for build this.&lt;br /&gt;
&lt;br /&gt;
--disable-build-mozilla: will disable the mozilla build (in the moz module), but mozilla pre-built archives will be used instead (they are mandatory to enable the macro security configuration dialog (see [http://www.openoffice.org/issues/show_bug.cgi?id=79885 issue 79885]).&lt;br /&gt;
&lt;br /&gt;
--enable-dbgutil: add this option to enable assertions and other functionality useful for debugging&lt;br /&gt;
&lt;br /&gt;
--with-jdk-home must be set as above with XCode 3.0&lt;br /&gt;
&lt;br /&gt;
--with-stlport=no uses Apple&amp;#039;s built-in STL, but will cause some warnings&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Doing the build (about 4,5 GB)&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
Fine, now we have a (hopefully) working &amp;#039;build.sh&amp;#039; in the config_office subdir. We need to run it beforehand:&lt;br /&gt;
&lt;br /&gt;
 cd DEV300_m4/config_office/&lt;br /&gt;
 &lt;br /&gt;
 ./build.sh&lt;br /&gt;
&lt;br /&gt;
This will setup the necessary includefiles and create a couple of files in the &amp;#039;&amp;#039;&amp;#039;parent&amp;#039;&amp;#039;&amp;#039; directory (bootstrap, MacOSXPPCEnv.Set.sh, MacOSXPPCEnv.Set). If you are using the sh, ksh or bash you only need to take care for &amp;#039;MacOSXPPCEnv.Set.sh&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Now we need to get back to our base-directory, run the bootstrap script, source our Enviroment (MacOSXPPCEnv.Set.sh) and finally start the build-process:&lt;br /&gt;
&lt;br /&gt;
==== Mac Intel ====&lt;br /&gt;
&lt;br /&gt;
 cd ..&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 source MacOSXX86Env.Set.sh&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 export TMP=/tmp&lt;br /&gt;
 export SYSTEM_OPENSSL=YES&lt;br /&gt;
&lt;br /&gt;
+ &lt;br /&gt;
 build --all -P4 --dlv_switch -link --dontgraboutput&lt;br /&gt;
 &lt;br /&gt;
 or&lt;br /&gt;
 &lt;br /&gt;
 build --all -P4 &lt;br /&gt;
&lt;br /&gt;
if you run into trouble with --dlv_switch (see: [http://qa.openoffice.org/issues/show_bug.cgi?id=77360 | issue 77360])&lt;br /&gt;
&lt;br /&gt;
==== On PowerPC ====&lt;br /&gt;
&lt;br /&gt;
 cd ..&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 source MacOSXPPCEnv.Set.sh&lt;br /&gt;
 cd instsetoo_native&lt;br /&gt;
 export TMP=/tmp&lt;br /&gt;
 export SYSTEM_OPENSSL=YES&lt;br /&gt;
&lt;br /&gt;
+ &lt;br /&gt;
  &lt;br /&gt;
 build --all -P2 --dlv_switch -link --dontgraboutput&lt;br /&gt;
 &lt;br /&gt;
 or&lt;br /&gt;
 &lt;br /&gt;
 build --all -P2 &lt;br /&gt;
&lt;br /&gt;
===== Comments on above =====&lt;br /&gt;
&lt;br /&gt;
if you run into trouble with --dlv_switch (see: [http://qa.openoffice.org/issues/show_bug.cgi?id=77360|issue 77360])&lt;br /&gt;
&lt;br /&gt;
The main purpose of the &amp;#039;&amp;#039;&amp;#039;bootstrap&amp;#039;&amp;#039;&amp;#039; script is to build (if necessary) the dmake utility used. Dmake once was a unix make-clone made by wticorp but got incorporated into OpenOffice since it was orphaned. For more information about dmake, it&amp;#039;s history and manpage have a look here: http://tools.openoffice.org/dmake/index.html&lt;br /&gt;
&lt;br /&gt;
Sourcing MacOSXPPCEnv.Set.sh is very important not only for building but also for &amp;#039;&amp;#039;&amp;#039;running&amp;#039;&amp;#039;&amp;#039; svdem later on. Here all the Environment-Variables for the Build will be set up. For a detailed description see [[Environment_Variables]]. Please note that on Intel machines, &amp;#039;MacOSXPPCEnv.Set.sh&amp;#039; should be substituted with &amp;#039;MacOSXX86Env.Set.sh&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
This Build process takes on my box (Dual 1.8 GHz G5, 1.5GB RAM) roughly 10 hours, and 3 to 6 hours on Mac Intel (3:30h on a 2GHz DualCore INTEL iMac). Be patient.&lt;br /&gt;
&lt;br /&gt;
If you want to see how the progress on that build  is you can use two &amp;#039;&amp;#039;&amp;#039;build&amp;#039;&amp;#039;&amp;#039; options to get a comfortable view:&lt;br /&gt;
&lt;br /&gt;
 build ... &amp;lt;see above&amp;gt; ... --html --html_path /Users/$USER/Sites&lt;br /&gt;
&lt;br /&gt;
where $USER is your user name. Then you can load in Firefox (not Safari!) the HTML file &amp;#039;&amp;#039;&amp;#039;unxmacxi.pro.build.html&amp;#039;&amp;#039;&amp;#039; via the in Mac OS X included Apache web server or diretctly form the directory &amp;#039;&amp;#039;/Users/$USER/Sites/&amp;#039;&amp;#039;. This file is automatically being updated and is showing the status of the build and also the time needed since the build started.&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Installing, preparing and running OpenOffice.org&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039; Find the Bundle&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
Once the build completed, the Final product ( en-US version ) is named :  OOo_3.0.0_080312_MacOSXIntel_install.dmg ( for version 3.0beta e.g.) &lt;br /&gt;
&lt;br /&gt;
And is located in instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US  directory ( replace en-US with your locale )&lt;br /&gt;
&lt;br /&gt;
[[Image:Bundle_Location3.0beta.jpg]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;&amp;#039;Run the soffice.bin&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In one line :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Double click the .dmg , drag the OpenOffice.org icon in the folder you want, and double click to run it !!&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note : soffice.bin leads XCode to not work (because of the dot in the name). The issue has been reported to xcode-users list.&lt;br /&gt;
 &lt;br /&gt;
We&amp;#039;re nearly through, let&amp;#039;s fire-off the binary:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But a lot has to be done, and if you want to trace (using gdb e.g.), just do:&lt;br /&gt;
&lt;br /&gt;
cd &amp;lt;INSTALL_DIR&amp;gt;/OpenOffice.org/Contents/MacOS&lt;br /&gt;
&lt;br /&gt;
and run:&lt;br /&gt;
&lt;br /&gt;
gdb --args soffice.bin&lt;br /&gt;
&lt;br /&gt;
(add any breakpoint you want)&lt;br /&gt;
&lt;br /&gt;
r to run OpenOffice.org&lt;br /&gt;
&lt;br /&gt;
=== Use vcl menubar and / or vcl menus ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Native menus are defaults. If you want to use vcl menus, do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AQUA_NATIVE_MENUS=FALSE ./soffice.bin&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: options to not recover is  -norestore , and to bypass the user informations to fill in, use -nofirststartwizard&lt;br /&gt;
&lt;br /&gt;
AQUA_NATIVE_MENUS=FALSE ./soffice.bin -nofirststartwizard -norestore&lt;br /&gt;
&lt;br /&gt;
You can also insert environement variables in a Dictionary Class of Info.plist located in the Contents directory of OpenOffice.org bundle.&lt;br /&gt;
&lt;br /&gt;
For example, you can add the following XML in a text editor (or make it generated by Property List Editor) in your Info.plist :&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;key&amp;gt;LSEnvironment&amp;lt;/key&amp;gt;&lt;br /&gt;
   &amp;lt;dict&amp;gt;&lt;br /&gt;
       &amp;lt;key&amp;gt;AQUA_NATIVE_MENUS&amp;lt;/key&amp;gt;&lt;br /&gt;
       &amp;lt;string&amp;gt;TRUE&amp;lt;/string&amp;gt;&lt;br /&gt;
       &amp;lt;key&amp;gt;OOO_DISABLE_RECOVERY&amp;lt;/key&amp;gt;&lt;br /&gt;
       &amp;lt;string&amp;gt;TRUE&amp;lt;/string&amp;gt;&lt;br /&gt;
       &amp;lt;key&amp;gt;SAL_NO_NWF&amp;lt;/key&amp;gt;&lt;br /&gt;
        &amp;lt;string&amp;gt;TRUE&amp;lt;/string&amp;gt;&lt;br /&gt;
   &amp;lt;dict&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that in order to work, the OOO_DISABLE_RECOVERY variable detection must be manually inserted in OOo code using the following patch :&lt;br /&gt;
http://www.go-oo.org/patches/src680/disable-recovery.diff&lt;br /&gt;
&lt;br /&gt;
This patch is outdated, but you can make the modifications yourself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the enviroment variable here. AQUA_NATIVE_MENUS is experimental stuff created by Pavel, SAL_NO_NWF was created some times ago, and is located in vcl/source/window/window.cxx . At the moment we have:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;15&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Variable || Function&lt;br /&gt;
|-&lt;br /&gt;
| SAL_NO_NWF=TRUE  || disable native controls code&lt;br /&gt;
|-&lt;br /&gt;
| AQUA_NATIVE_MENUS=FALSE || disable native menus code&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Both changes are marked with comments in the source code, and when we remove them in the future, native controls and native menus will be enabled by default.&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Debug and contribute &amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;You want to provide crash issue details? Please see [[Providing_a_gdb_backtrace]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;You want to debug using XCode? Please see [[MacOSX_Debug_OpenOffice.org_using_XCode]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;You want to debug using Xemacs? Please see [http://www.mikesicotte.com/2007/02/21/debugging-ooo-with-xemacs-and-gdb Michael Sicotte&amp;#039;s blog entry]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:green; font-size:18px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;[[AquaBuild/Cocoa Informations]] &amp;lt;== Additionnal informations for advanced developers &amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Current Work in progress&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Developers are working on the following Child workspaces, all Mac OSX dedicated (not integrated )&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
* aquavcl06 (planned)&lt;br /&gt;
&lt;br /&gt;
* macosxscanner (planned)&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Closed for development&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;quicklookplugin01&amp;#039;&amp;#039;&amp;#039; : This cws provides a plugin for the QuickLook system available in MacOSX from versions 10.5 onwards&lt;br /&gt;
&lt;br /&gt;
Concerned modules : extensions scp2&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;&amp;#039;Integrated&amp;#039;&amp;#039;&amp;#039; ===&lt;br /&gt;
&lt;br /&gt;
Integrated in dev300_m2&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;[http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=SRC680%2Faquavcl05 aquavcl05]&amp;#039;&amp;#039;&amp;#039;: &lt;br /&gt;
&lt;br /&gt;
concerned modules : automation avmedia connectivity default_images desktop filter framework &lt;br /&gt;
&lt;br /&gt;
instsetoo_native jvmfwk lingucomponent officecfg sal sc scp2 sfx2 shell vcl&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquafilepicker02&amp;#039;&amp;#039;&amp;#039; : replace Carbon native FilePicker with Cocoa native FilePicker &lt;br /&gt;
&lt;br /&gt;
Concerned module : fpicker sfx2 solenv svtools&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;nativeprintdlg01&amp;#039;&amp;#039;&amp;#039; : add support for native print dialog &lt;br /&gt;
&lt;br /&gt;
Concerned modules: offapi, vcl, sfx2, svtools, sw&lt;br /&gt;
&lt;br /&gt;
Integrated m248&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macosxdnd&amp;#039;&amp;#039;&amp;#039; Drag and Drop for Aqua&lt;br /&gt;
&lt;br /&gt;
Concerned modules : dtrans svtools vcl&lt;br /&gt;
&lt;br /&gt;
Integrated m247&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;obr07&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Remove a few Mac OS X specialties&lt;br /&gt;
&lt;br /&gt;
Concerned modules:  desktop instsetoo_native scp2 setup_native solenv sysui vcl&lt;br /&gt;
&lt;br /&gt;
Integrated in m243&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;stl4leopardppc&amp;#039;&amp;#039;&amp;#039; : allow OpenOffice.org to be built on Mac OS X 10.5 PowerPC using system stl, using --without-stlport4 configure option.&lt;br /&gt;
&lt;br /&gt;
If possible, continue with other builds (Leopard / Tiger Intel and PowerPC).&lt;br /&gt;
&lt;br /&gt;
Concerned modules : connectivity, cosv, fpicker, autodoc &lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;[http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=SRC680%2Faquavcl04 aquavcl04]&amp;#039;&amp;#039;&amp;#039;: &lt;br /&gt;
&lt;br /&gt;
concerned modules : desktop vcl rsc shell svx sw solenv instsetoo_native&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m239&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macosxquicktime01&amp;#039;&amp;#039;&amp;#039; : use QTKit for sounds and movies&lt;br /&gt;
&lt;br /&gt;
Concerned modules : avmedia scp2 vcl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m238&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macosx24dmg&amp;#039;&amp;#039;&amp;#039; : fix bad icon positionning in the mounted disk image ( already Approved by QA )&lt;br /&gt;
&lt;br /&gt;
Concerned module : instsetoo_native&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m237&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;pj86&amp;#039;&amp;#039;&amp;#039; : Make module sw warning free on Mac OS X&lt;br /&gt;
&lt;br /&gt;
Concerned modules : sw , solenv&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macleopardbuild&amp;#039;&amp;#039;&amp;#039; : be Leopard compatible, when building on Tiger&lt;br /&gt;
&lt;br /&gt;
Concerned modules : idlc soltools jvmfwk extensions stlport&lt;br /&gt;
&lt;br /&gt;
Integrated in m233&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;readme4macintel&amp;#039;&amp;#039;&amp;#039;  &lt;br /&gt;
&lt;br /&gt;
concerned module : readlicense_oo&lt;br /&gt;
&lt;br /&gt;
Integrated in m233&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquavcl03&amp;#039;&amp;#039;&amp;#039; ( Carbon -&amp;gt; Cocoa migration )&lt;br /&gt;
&lt;br /&gt;
concerned modules are desktop, instsetoo_native, solenv, svtools, vcl&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;spotlightplugin01&amp;#039;&amp;#039;&amp;#039; ( add a new Sportlight plugin )&lt;br /&gt;
&lt;br /&gt;
Concerned modules: extensions, scp2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m229&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macaddressbook01&amp;#039;&amp;#039;&amp;#039;  (QA in progress )&lt;br /&gt;
&lt;br /&gt;
concerned modules are : scp2, dbaccess, extensions, connectivity&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;macosxspellchecker&amp;#039;&amp;#039;&amp;#039;  :  use Mac OS X spellchecker&lt;br /&gt;
&lt;br /&gt;
Concerned modules: lingucomponent, solenv&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquavclcarbonfixes&amp;#039;&amp;#039;&amp;#039; ( Carbon version of Aqua OpenOffice.org ): fix the 5 most important issues. &lt;br /&gt;
&lt;br /&gt;
concerned modules are : desktop, vcl, fpicker, libxmlsec, xmlsecurity, basic&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m228&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;cloph09&amp;#039;&amp;#039;&amp;#039;  ( remove X11SDK dependance for Aquabuild )&lt;br /&gt;
&lt;br /&gt;
Concerned modules:  np_sdk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m227&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquaremovescripts&amp;#039;&amp;#039;&amp;#039;: remove useless Applescripts from Aqua version&lt;br /&gt;
&lt;br /&gt;
concerned module: instsetoo_native&lt;br /&gt;
&lt;br /&gt;
Integrated in m223:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquavcl02&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m222 : &lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquaremovefondu&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*macosxdmg23&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Integrated in m221:&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;aquafilepicker01&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All patches that developers have that need testing or peer review should be added here.&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Known build issues &amp;#039;&amp;#039;&amp;#039;==&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Panther&amp;#039;&amp;#039;&amp;#039; build (X11 only) : currently broken ( work in progress )&lt;br /&gt;
&lt;br /&gt;
Since latest resync, no build issues have been reported.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Tiger&amp;#039;&amp;#039;&amp;#039;:  no problem nor for X11 nor Aqua versions (main baseline)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Leopard&amp;#039;&amp;#039;&amp;#039; Intel : builds OK now. Build is broken in cppu for PowerPC architecture, and builds fine using --without-stlport4 flag&lt;br /&gt;
&lt;br /&gt;
*Native FilePicker is fixed (aquafilepicker02 + pl fixed repaint issue )&lt;br /&gt;
&lt;br /&gt;
*Lot of warnings in vcl, due to other deprecated stuff&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;left&amp;quot; style=&amp;quot;color:grey; font-size:12px&amp;quot;&amp;gt;[[AquaBuild/Some Background | &amp;#039;&amp;#039;&amp;#039;Some Background (what is aquavcl01, EIS) (click me to know more) &amp;#039;&amp;#039;&amp;#039;]]&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;External links&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
# [http://www.openoffice.org/issues/query.cgi Bug Database]&lt;br /&gt;
# Mailinglist: [http://porting.openoffice.org/servlets/ProjectMailingListList mac@porting.openoffice.org]  (subscribe is mandatory )&lt;br /&gt;
# IRC Meeting-Logs (#ooo_macport@freenode.org): [[Previous_Mac_Meeting_logs]] [[MacOSXPortMeetings]]&lt;br /&gt;
# TX20: http://eric.bachard.free.fr/UTBM_TX20/reports/Carbon_vcl.pdf&lt;br /&gt;
# OpenOffice Source Directory Structure: http://wiki.services.openoffice.org/wiki/Source_code_directories&lt;br /&gt;
# Pavels Patch Wiki: http://blog.janik.cz/&lt;br /&gt;
# Eric Bachard Wiki: http://wiki.services.openoffice.org/wiki/User:Ericb&lt;br /&gt;
# Sebastien Plisson Wiki: http://splisson.blogspot.com/&lt;br /&gt;
# Christian Lippka Wiki: http://wiki.services.openoffice.org/wiki/User:CL&lt;br /&gt;
# Carbon: http://developer.apple.com/carbon&lt;br /&gt;
# EIS: http://eis.services.openoffice.org/EIS2/servlet/Logon&lt;br /&gt;
# Runtime Configuration: http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/index.html&lt;br /&gt;
# OpenOffice Domain Developer http://wiki.services.openoffice.org/wiki/DomainDeveloper&lt;br /&gt;
# Nakata Maho&amp;#039;s package build service http://ooopackages.good-day.net/pub/OpenOffice.org/MacOSX/&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Screenshots&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
# Eric Bachard screenshots (some are from Stephan Schaefer) http://eric.bachard.free.fr/mac/aquavcl/screenshots/&lt;br /&gt;
# Most recent: http://eric.bachard.free.fr/mac/aquavcl/screenshots/aqua_menus_05_nov_06/&lt;br /&gt;
# Pavel Janik screenshots http://blog.janik.cz/images/MacOSX/2006-08-10&lt;br /&gt;
# Important screenshot (eventloop issue): http://blog.janik.cz/images/MacOSX/  =&amp;gt; See: OOoMenus-separator-and-disabled_entries.png&lt;br /&gt;
# current Aqua look (taken from CWS aquavcl05): &lt;br /&gt;
[[image:Aqualook.png]]&lt;br /&gt;
&lt;br /&gt;
More menus: http://eric.bachard.free.fr/mac/aquavcl/screenshots/aqua_menus_05_nov_06/index.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Aqua]]&lt;br /&gt;
[[Category:Build_System]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71791</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71791"/>
		<updated>2008-03-26T22:37:46Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Prerequisites */ Fill it out.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
If you are a serious f/oss programmer, then you will definitely want to install [http://www.macports.org/ MacPorts] on your development computer. It contains easy to install ports of many free software packages. All of the packages listed below are available in MacPorts and have proved indispensable to me in my programming.&lt;br /&gt;
&lt;br /&gt;
It is beyond the scope of this document to tell you how to install and work with MacPorts. Those topics are already covered by their ample documentation.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
The ccache program is highly recommended on the [[AquaBuild#ccache]] page. My scripts and environment files listed below assume that you have installed this package. I find it very useful when changing build options or trying out various patches. It greatly speeds up build times in those cases. You can install this from MacPorts.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The flex that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functioning Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via anonymous CVS, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffic.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71765</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71765"/>
		<updated>2008-03-26T18:34:38Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: Add prerequisites section.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In addition to XCode 3.0, you will want the following software.&lt;br /&gt;
&lt;br /&gt;
==== MacPorts ====&lt;br /&gt;
&lt;br /&gt;
To be filled in.&lt;br /&gt;
&lt;br /&gt;
==== ccache ====&lt;br /&gt;
&lt;br /&gt;
To be filled in.&lt;br /&gt;
&lt;br /&gt;
==== flex ====&lt;br /&gt;
&lt;br /&gt;
The flex that comes with Leopard is not useful for building OO.o. Specifically, the SQL syntax checker in Base ends up broken and you have a very hard time working with databases. If you want a functioning Base, you will need to install an alternate version of flex. I highly recommend installing whatever the latest version is in MacPorts (2.5.35 as of this writing).&lt;br /&gt;
&lt;br /&gt;
==== gperf ====&lt;br /&gt;
&lt;br /&gt;
Leopard comes with an acceptable version of gperf in /usr/bin. However, you might want to install the one from MacPorts, or it may have been installed by another package along the way.&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via anonymous CVS, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffic.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/Colloquy&amp;diff=71760</id>
		<title>User:Dyrcona/Colloquy</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/Colloquy&amp;diff=71760"/>
		<updated>2008-03-26T17:02:02Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: New page: Here is the script, just copy and paste and run it like the official one with xsltproc:  &amp;lt;pre&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;xsl:stylesheet xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is the script, just copy and paste and run it like the official one with xsltproc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:xsl=&amp;quot;http://www.w3.org/1999/XSL/Transform&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:output method=&amp;quot;text&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;xsl:template match=&amp;quot;/log/event | /log/envelope&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:when test=&amp;quot;local-name() = &amp;#039;event&amp;#039;&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:call-template name=&amp;quot;timestamp&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;xsl:with-param name=&amp;quot;date&amp;quot; select=&amp;quot;@occurred&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/xsl:call-template&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;» &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;normalize-space(message)&amp;quot; /&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:when test=&amp;quot;local-name() = &amp;#039;envelope&amp;#039;&amp;quot;&amp;gt;&lt;br /&gt;
              &amp;lt;xsl:for-each select=&amp;quot;message&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:call-template name=&amp;quot;timestamp&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;xsl:with-param name=&amp;quot;date&amp;quot; select=&amp;quot;@received&amp;quot; /&amp;gt;&lt;br /&gt;
                &amp;lt;/xsl:call-template&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;../sender&amp;quot; /&amp;gt;&amp;lt;xsl:text&amp;gt;: &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:value-of select=&amp;quot;normalize-space()&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:text&amp;gt;&lt;br /&gt;
  &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
                &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
                &amp;lt;xsl:text&amp;gt;ERROR: can&amp;#039;t handle &amp;quot;&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;local-name()&amp;quot; /&amp;gt;&amp;lt;xsl:text&amp;gt;&amp;quot;&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
            &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
&amp;lt;xsl:text&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;xsl:template name=&amp;quot;timestamp&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:param name=&amp;quot;date&amp;quot; /&amp;gt; &amp;lt;!-- YYYY-MM-DD HH:MM:SS +/-HHMM --&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;[&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:variable name=&amp;#039;hour&amp;#039; select=&amp;#039;substring($date, 1, 14)&amp;#039; /&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:variable name=&amp;#039;minute&amp;#039; select=&amp;#039;substring($date, 15, 5)&amp;#039; /&amp;gt;&lt;br /&gt;
        &amp;lt;!-- 24hr format --&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:value-of select=&amp;quot;concat($hour,&amp;#039;:&amp;#039;,$minute)&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:text&amp;gt;] &amp;lt;/xsl:text&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=71759</id>
		<title>User:Dyrcona</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=71759"/>
		<updated>2008-03-26T16:57:11Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: Add Colloquy transcript converter.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.&lt;br /&gt;
&lt;br /&gt;
I have started a [http://dyrcona-ooo.blogspot.com/ blog] where I&amp;#039;ll post updates about my progress on working with OO.o and the Mac OS X native port.&lt;br /&gt;
&lt;br /&gt;
I have added a page, called [[/LeopardBuild]], with my procedures for building the native Aqua OO.o on Mac OS X Leopard. The instructions on that page are meant to supplement the [[AquaBuild]] instructions and not to serve as a replacement for them. I assume that you have already the AquaBuild instructions and understand them.&lt;br /&gt;
&lt;br /&gt;
For those using Colloquy in IRC, I have a modified version of the plaintext.xsl to convert Colloquy transcripts to plaintext. This one addresses the problem that the &amp;quot;official&amp;quot; one has when the same person says more than one thing in a row. [[/Colloquy]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71213</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71213"/>
		<updated>2008-03-21T13:58:55Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* The Build */ Add some explanatory text.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via anonymous CVS, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
The following steps when executed in a Terminal window under the default bash shell will get you a build directory checked out and then start a build of OpenOffice.org. Hopefully, you are a patient person as the below can take over 6 hours depending on the speed of your computer&amp;#039;s CPU, how much RAM it has, and just what else you&amp;#039;re doing on the computer. I often do the build just before going to bed, so it is usually ready when I wake up in the morning.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ~/Sources/OpenOffic.org/&lt;br /&gt;
bin/mkBuilDir.sh {CVSTAG}&lt;br /&gt;
cd {CVSTAG}&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will, of course, want to replace &amp;lt;code&amp;gt;{CVSTAG}&amp;lt;/code&amp;gt; in the above example with the actual CVS tag of the milestone or snapshot that you wish to build, &amp;lt;code&amp;gt;DEV300_m3&amp;lt;/code&amp;gt; for example.&lt;br /&gt;
&lt;br /&gt;
More advanced users might also wish to insert some steps to apply patches or to checkout code from various CWS before doing the build. Such advanced topics are best left for another discussion.&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71209</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71209"/>
		<updated>2008-03-21T13:35:51Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Scripts and Environment Files */ Add some explanatory text.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
The following are useful snippets to store in files under your &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/bin/&amp;lt;/code&amp;gt; subdirectory.&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&lt;br /&gt;
This file sets up some useful environment settings before doing a build. It is best run in the subdirectory named for the CVS tag that you are building.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ====&lt;br /&gt;
&lt;br /&gt;
This script will setup a new build directory based on a CVS tag. It does everything to create the new directory, download the files via anonymous CVS, and copy pre-built binary files into the appropriate places in the build directory. You generally run this one in &amp;lt;code&amp;gt;$HOME/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&lt;br /&gt;
The following is the build script that I use to configure OpenOffice.org builds. It is copied from the one provided on the AquaBuild page. However, this script differs in that it disables binfilter (the StarOffice 5.2 compatibility layer) and builds the SDK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71203</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71203"/>
		<updated>2008-03-21T12:50:30Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Installing/Using the Result */ Tell how to install the SDK.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ==== &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
Inside the OpenOffice_SDK dmg file is a folder that you can drag to wherever you want to put it on your disk. (I&amp;#039;d suggest somewhere under &amp;lt;code&amp;gt;$HOME/Sources/&amp;lt;/code&amp;gt;.) It is beyond the scope this document to tell you how to use the SDK, but there is a [http://api.openoffice.org/ whole site] dedicated to that very thing.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71202</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71202"/>
		<updated>2008-03-21T12:42:54Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Getting Pre-built Binaries */  Add some content to this part.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
You can get pre-built binaries for a couple of things that OO.o relies on to speed up your build. Otherwise, you will have to build these yourself.&lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
You should follow the instructions in the main [[AquaBuild#prebuilt_Mozilla_archives]] page if you want to get pre-built Mozilla binaries.&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
The unowinreg.dll is only required if you plan to build and use the OO.o SDK with Java. (My instructions and build script posted here assume that you do.) You can find the latest unowinreg.dll binary as of this writing at the [http://tools.openoffice.org/unowinreg_prebuild/680/ tools website]. (&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This is a MS Windows DLL, and you cannot actually build this file on Mac OS X at this time. You do actually have the source for it in your checkout, though.)&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ==== &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
At the time of this edit, I don&amp;#039;t exactly know what to do with the SDK dmg. I&amp;#039;ll do some investigation and come back when I know more.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71048</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71048"/>
		<updated>2008-03-21T01:16:14Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* File Organization */ Add mention of diff subdirectory.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. If you work on more than one release at a time, or if you try different milestones, then you will likely want a subdirectory name for each milestone CVS tag that you checkout. You might also want to incorporate the name of any CWS that you integrate into that build. Finally, once you begin actually making changes to the OpenOffice.org code, or if you receive any patches from another developer, you will want a directory to store these. I call this directory &amp;lt;code&amp;gt;diff&amp;lt;/code&amp;gt; in my setup.&lt;br /&gt;
&lt;br /&gt;
The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               diff/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ==== &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
At the time of this edit, I don&amp;#039;t exactly know what to do with the SDK dmg. I&amp;#039;ll do some investigation and come back when I know more.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71045</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=71045"/>
		<updated>2008-03-21T01:09:44Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Scripts and Environment Files */ Add --disable-binfilter to reflect what I&amp;#039;m actually building at the moment.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. Finally, one of the scripts in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; will create a build directory for a milestone  based on the CVS tag. The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
==== env.sh ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== mkBuildDir.sh ==== &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build.sh ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-binfilter \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
At the time of this edit, I don&amp;#039;t exactly know what to do with the SDK dmg. I&amp;#039;ll do some investigation and come back when I know more.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70394</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70394"/>
		<updated>2008-03-16T16:57:16Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Scripts and Environment Files */ Remove extaneous space in script.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. Finally, one of the scripts in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; will create a build directory for a milestone  based on the CVS tag. The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
env.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
mkBuildDir.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
build.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
At the time of this edit, I don&amp;#039;t exactly know what to do with the SDK dmg. I&amp;#039;ll do some investigation and come back when I know more.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70392</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70392"/>
		<updated>2008-03-16T16:53:11Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* File Organization */ Provide more accurate numbers and make the language less egocentric.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m3) comprises 98,117 files in 13,307 directories that occupy about 1.8 GB of space on disk. Those 13,307 directories are themselves split among 179 modules, each module being a top-level directory. Good file organization is necessary to work effectively with such a large project.&lt;br /&gt;
&lt;br /&gt;
If you work on several different projects, not just OO.o, you might like to keep your code files neatly organized and separate from your other files. To that end, I suggest creating a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in your home directory. In this directory, you could create a subdirectory for each of your major projects. Thus, the code for each project is neatly organized and distinct from the others.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, a further subdivision of the project directory helps to organize the various builds and other files. First, one has the main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where all of the OpenOffice.org-related code and build files may be kept. Under this main project directory, a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory is a useful place to keep some scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that are recommended to speed up the total OO.o build process. Finally, one of the scripts in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; will create a build directory for a milestone  based on the CVS tag. The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
env.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
mkBuildDir.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                 exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
build.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
At the time of this edit, I don&amp;#039;t exactly know what to do with the SDK dmg. I&amp;#039;ll do some investigation and come back when I know more.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70385</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70385"/>
		<updated>2008-03-16T15:15:32Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Installing/Using the Result */ Fix some punctuation.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m0) comprises roughly 180,000 files, spread over 184 modules, that occupy about 1.8 GB of space on disk. After compilation, the project files number over 370,000 and occupy 6.1 GB of space. Each of those 184 modules is itself a directory full of subdirectories. Therefore, it is important that you give some thought to the organization of these files before you begin building and hacking OO.o.&lt;br /&gt;
&lt;br /&gt;
As a programmer who works on several different projects, not just OO.o, I like to keep my code files neatly organized and separate from my other files. To that end, I have created a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in my home directory. In this directory, I create a subdirectory for each of my major projects. Thus, the code for each project is neatly organized and distinct.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, I have developed a further subdivision of the project directory that helps to organize my various builds and other files. First, I have created a main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where I keep all of my OpenOffice.org-related code and build files. Under this main project directory, I have added a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory where I keep some useful scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that I use to speed up the total OO.o build process. Finally, one of the scripts in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; will create a build directory for a milestone  based on the CVS tag. The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
env.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
mkBuildDir.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                 exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
build.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary as they will include the date of the build, but there should be only 1 dmg file per directory unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
At the time of this edit, I don&amp;#039;t exactly know what to do with the SDK dmg. I&amp;#039;ll do some investigation and come back when I know more.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70384</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70384"/>
		<updated>2008-03-16T15:12:53Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Installing/Using the Result */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m0) comprises roughly 180,000 files, spread over 184 modules, that occupy about 1.8 GB of space on disk. After compilation, the project files number over 370,000 and occupy 6.1 GB of space. Each of those 184 modules is itself a directory full of subdirectories. Therefore, it is important that you give some thought to the organization of these files before you begin building and hacking OO.o.&lt;br /&gt;
&lt;br /&gt;
As a programmer who works on several different projects, not just OO.o, I like to keep my code files neatly organized and separate from my other files. To that end, I have created a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in my home directory. In this directory, I create a subdirectory for each of my major projects. Thus, the code for each project is neatly organized and distinct.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, I have developed a further subdivision of the project directory that helps to organize my various builds and other files. First, I have created a main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where I keep all of my OpenOffice.org-related code and build files. Under this main project directory, I have added a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory where I keep some useful scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that I use to speed up the total OO.o build process. Finally, one of the scripts in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; will create a build directory for a milestone  based on the CVS tag. The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
env.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
mkBuildDir.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                 exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
build.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
You will find .dmg images files with installable apps in the following two directories under your main build directory, the one named for the CVS tag that you checked out earlier. The exact names of the dmg files will vary, as they will include the date of the build, but there should be only 1 dmg file per directory, unless you&amp;#039;ve done multiple builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US&lt;br /&gt;
instsetoo_native/unxmacxi.pro/OpenOffice_SDK/dmg/install/en-US&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can install the OpenOffice.org.app from the dmg to almost anywhere on your system and it should work just fine. I usually place it in my Applications folder. You can also drag the icon to the dock, and that works. If you have a previous installation of OpenOffice.org in your Applications folder, I highly recommend dragging it to the Trash before installing the new OO.o in the Applicaitons folder. If you wish to have multiple versions of OO.o installed for testing or whatever reason, then it is best to install the OO.o that you just built some place other than the Applications folder.&lt;br /&gt;
&lt;br /&gt;
At the time of this edit, I don&amp;#039;t exactly know what to do with the SDK dmg. I&amp;#039;ll do some investigation and come back when I know more.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70374</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70374"/>
		<updated>2008-03-16T13:02:37Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* File Organization */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m0) comprises roughly 180,000 files, spread over 184 modules, that occupy about 1.8 GB of space on disk. After compilation, the project files number over 370,000 and occupy 6.1 GB of space. Each of those 184 modules is itself a directory full of subdirectories. Therefore, it is important that you give some thought to the organization of these files before you begin building and hacking OO.o.&lt;br /&gt;
&lt;br /&gt;
As a programmer who works on several different projects, not just OO.o, I like to keep my code files neatly organized and separate from my other files. To that end, I have created a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in my home directory. In this directory, I create a subdirectory for each of my major projects. Thus, the code for each project is neatly organized and distinct.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, I have developed a further subdivision of the project directory that helps to organize my various builds and other files. First, I have created a main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where I keep all of my OpenOffice.org-related code and build files. Under this main project directory, I have added a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory where I keep some useful scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that I use to speed up the total OO.o build process. Finally, one of the scripts in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; will create a build directory for a milestone  based on the CVS tag. The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
env.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
mkBuildDir.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                 exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
build.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
I need to tell where to find the disk image file that is created, etc.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=70365</id>
		<title>User:Dyrcona</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=70365"/>
		<updated>2008-03-16T03:38:17Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: Add disclaimer about the Leopard Build instructions.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.&lt;br /&gt;
&lt;br /&gt;
I have started a [http://dyrcona-ooo.blogspot.com/ blog] where I&amp;#039;ll post updates about my progress on working with OO.o and the Mac OS X native port.&lt;br /&gt;
&lt;br /&gt;
I have added a page, called [[/LeopardBuild]], with my procedures for building the native Aqua OO.o on Mac OS X Leopard. The instructions on that page are meant to supplement the [[AquaBuild]] instructions and not to serve as a replacement for them. I assume that you have already the AquaBuild instructions and understand them.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70364</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70364"/>
		<updated>2008-03-16T03:32:08Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: Add braces around cvsTag in mkBuildDir.sh.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m0) comprises roughly half a million files, spread over 184 modules, that occupy about 1.8 GB of space on disk. After compilation, the project files balloon to occupy 5.9 GB of space. Each of those 184 modules is itself a directory full of subdirectories. Therefore, it is important that you give some thought to the organization of these files before you begin building and hacking OO.o.&lt;br /&gt;
&lt;br /&gt;
As a programmer who works on several different projects, not just OO.o, I like to keep my code files neatly organized and separate from my other files. To that end, I have created a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in my home directory. In this directory, I create a subdirectory for each of my major projects. Thus, the code for each project is neatly organized and distinct.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, I have developed a further subdivision of the project directory that helps to organize my various builds and other files. First, I have created a main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where I keep all of my OpenOffice.org-related code and build files. Under this main project directory, I have added a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory where I keep some useful scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that I use to speed up the total OO.o build process. Finally, one of the scripts in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; will create a build directory for a milestone  based on the CVS tag. The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
env.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
mkBuildDir.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d ${cvsTag} ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                 exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
build.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
I need to tell where to find the disk image file that is created, etc.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70363</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70363"/>
		<updated>2008-03-16T03:15:00Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: Remove an unnecessary semicolon in mkBuildDir.sh&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m0) comprises roughly half a million files, spread over 184 modules, that occupy about 1.8 GB of space on disk. After compilation, the project files balloon to occupy 5.9 GB of space. Each of those 184 modules is itself a directory full of subdirectories. Therefore, it is important that you give some thought to the organization of these files before you begin building and hacking OO.o.&lt;br /&gt;
&lt;br /&gt;
As a programmer who works on several different projects, not just OO.o, I like to keep my code files neatly organized and separate from my other files. To that end, I have created a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in my home directory. In this directory, I create a subdirectory for each of my major projects. Thus, the code for each project is neatly organized and distinct.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, I have developed a further subdivision of the project directory that helps to organize my various builds and other files. First, I have created a main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where I keep all of my OpenOffice.org-related code and build files. Under this main project directory, I have added a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory where I keep some useful scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that I use to speed up the total OO.o build process. Finally, one of the scripts in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; will create a build directory for a milestone  based on the CVS tag. The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
env.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
mkBuildDir.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1}&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d $cvsTag ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                 exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
build.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
I need to tell where to find the disk image file that is created, etc.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70362</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70362"/>
		<updated>2008-03-16T03:12:08Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m0) comprises roughly half a million files, spread over 184 modules, that occupy about 1.8 GB of space on disk. After compilation, the project files balloon to occupy 5.9 GB of space. Each of those 184 modules is itself a directory full of subdirectories. Therefore, it is important that you give some thought to the organization of these files before you begin building and hacking OO.o.&lt;br /&gt;
&lt;br /&gt;
As a programmer who works on several different projects, not just OO.o, I like to keep my code files neatly organized and separate from my other files. To that end, I have created a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in my home directory. In this directory, I create a subdirectory for each of my major projects. Thus, the code for each project is neatly organized and distinct.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, I have developed a further subdivision of the project directory that helps to organize my various builds and other files. First, I have created a main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where I keep all of my OpenOffice.org-related code and build files. Under this main project directory, I have added a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory where I keep some useful scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that I use to speed up the total OO.o build process. Finally, one of the scripts in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; will create a build directory for a milestone  based on the CVS tag. The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
env.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
mkBuildDir.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1};&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d $cvsTag ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                 exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
build.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
I need to tell where to find the disk image file that is created, etc.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70361</id>
		<title>User:Dyrcona/LeopardBuild</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona/LeopardBuild&amp;diff=70361"/>
		<updated>2008-03-16T03:06:31Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: Building OO.o on Mac OS X Leopard&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Building OO.o Aqua on Mac OS X ==&lt;br /&gt;
&lt;br /&gt;
The following are the steps and tools that I use to build development milestones on my MacBook running Mac OS X Leopard (10.5.2).&lt;br /&gt;
&lt;br /&gt;
=== File Organization ===&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org is a large project. A fresh checkout of a recent development milestone (DEV300_m0) comprises roughly half a million files, spread over 184 modules, that occupy about 1.8 GB of space on disk. After compilation, the project files balloon to occupy 5.9 GB of space. Each of those 184 modules is itself a directory full of subdirectories. Therefore, it is important that you give some thought to the organization of these files before you begin building and hacking OO.o.&lt;br /&gt;
&lt;br /&gt;
As a programmer who works on several different projects, not just OO.o, I like to keep my code files neatly organized and separate from my other files. To that end, I have created a subdirectory, called &amp;lt;code&amp;gt;Sources&amp;lt;/code&amp;gt;, in my home directory. In this directory, I create a subdirectory for each of my major projects. Thus, the code for each project is neatly organized and distinct.&lt;br /&gt;
&lt;br /&gt;
In the case of OO.o, I have developed a further subdivision of the project directory that helps to organize my various builds and other files. First, I have created a main OO.o project directory, &amp;lt;code&amp;gt;${HOME}/Sources/OpenOffice.org/&amp;lt;/code&amp;gt;, where I keep all of my OpenOffice.org-related code and build files. Under this main project directory, I have added a &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory where I keep some useful scripts and environment files. Side by side with this &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; subdirectory sits another called &amp;lt;code&amp;gt;prebuild&amp;lt;/code&amp;gt;. It stores the various pre-built binaries that I use to speed up the total OO.o build process. Finally, one of the scripts in the &amp;lt;code&amp;gt;bin&amp;lt;/code&amp;gt; will create a build directory for a milestone  based on the CVS tag. The structure of this layout looks something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
${HOME}/Sources/OpenOffice.org/&lt;br /&gt;
                               bin/&lt;br /&gt;
                               prebuild/&lt;br /&gt;
                               ${CVSTAG}/&lt;br /&gt;
                               .../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Getting Pre-built Binaries ===&lt;br /&gt;
&lt;br /&gt;
This is currently in a state of flux, but I&amp;#039;ll soon post the links and other information needed to get the pre-built binaries for &lt;br /&gt;
&lt;br /&gt;
==== Mozilla ====&lt;br /&gt;
&lt;br /&gt;
==== unowinreg.dll ====&lt;br /&gt;
&lt;br /&gt;
=== Scripts and Environment Files ===&lt;br /&gt;
&lt;br /&gt;
(Some text needs to be filled in here, but it is getting late and I&amp;#039;m tired, so I&amp;#039;ll finish this tomorrow.)&lt;br /&gt;
&lt;br /&gt;
env.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
mkBuildDir.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
cvsTag=${1};&lt;br /&gt;
CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs &lt;br /&gt;
where=$(pwd)&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;${where}&amp;quot; != &amp;quot;${HOME}/Sources/OpenOffice.org&amp;quot; ]; then&lt;br /&gt;
    cd ${HOME}/Sources/OpenOffice.org&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -e ${cvsTag} ]; then&lt;br /&gt;
    if [ -d $cvsTag ]; then&lt;br /&gt;
        echo &amp;quot;${cvsTag} already exists and is a directory&amp;quot;&lt;br /&gt;
        read -p &amp;quot;Do you wish to continue (y|n)? &amp;quot; readContinue&lt;br /&gt;
        case &amp;quot;${readContinue}&amp;quot; in&lt;br /&gt;
            y|Y|yes|YES)&lt;br /&gt;
                echo &amp;quot;Expect undesired results if ${cvsTag} is not empty&amp;quot;&lt;br /&gt;
                cd &amp;quot;${cvsTag}&amp;quot;&lt;br /&gt;
                ;;&lt;br /&gt;
            *)&lt;br /&gt;
                 exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
        esac&lt;br /&gt;
    else&lt;br /&gt;
        echo &amp;quot;${cvsTag} is not a directory&amp;quot;&lt;br /&gt;
        exit 1;&lt;br /&gt;
    fi&lt;br /&gt;
else&lt;br /&gt;
    mkdir ${cvsTag}&lt;br /&gt;
    cd ${cvsTag}&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
cvs -z4 -d ${CVSROOT} co -r ${cvsTag} OpenOffice2&lt;br /&gt;
&lt;br /&gt;
# Copy the Mozilla and unowinreg.dll pre-builts to the proper place.&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/MACOSXGCC*.zip ./moz/zipped/&lt;br /&gt;
cp ${HOME}/Sources/OpenOffice.org/prebuild/unowinreg.dll ./external/unowinreg/&lt;br /&gt;
&lt;br /&gt;
# Link the pre-existing build script&lt;br /&gt;
cd config_office/&lt;br /&gt;
ln -s ../../bin/build.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
build.sh:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
export BASE=`pwd|sed &amp;#039;s/\/config_office//&amp;#039;`&lt;br /&gt;
export OOVERSION=`echo $BASE|sed &amp;#039;s/^\/.*\///&amp;#039;`&lt;br /&gt;
echo Building from     : $BASE&lt;br /&gt;
echo OpenOffice Version: $OOVERSION&lt;br /&gt;
./configure \&lt;br /&gt;
--with-lang=&amp;quot;en-US&amp;quot; \&lt;br /&gt;
--disable-pasf \&lt;br /&gt;
--disable-gtk \&lt;br /&gt;
--disable-build-mozilla \&lt;br /&gt;
--with-build-version=$OOVERSION-`date +%d-%m-%y` \&lt;br /&gt;
--disable-fontconfig \&lt;br /&gt;
--disable-headless \&lt;br /&gt;
--without-nas \&lt;br /&gt;
--with-use-shell=bash \&lt;br /&gt;
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \&lt;br /&gt;
--with-stlport=no&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Build ===&lt;br /&gt;
&lt;br /&gt;
Again, some explanatory text should go here.&lt;br /&gt;
&lt;br /&gt;
In the ${CVSTAG} directory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source ../bin/env.sh&lt;br /&gt;
cd config_office/&lt;br /&gt;
./build.sh&lt;br /&gt;
cd ..&lt;br /&gt;
./bootstrap&lt;br /&gt;
source MacOSXX86Env.Set.sh&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build --all -P4 --dlv_switch -link  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing/Using the Result ===&lt;br /&gt;
&lt;br /&gt;
I need to tell where to find the disk image file that is created, etc.&lt;br /&gt;
&lt;br /&gt;
=== Hacking OO.o ===&lt;br /&gt;
&lt;br /&gt;
Once I&amp;#039;ve had some more time for code changes of my own, I&amp;#039;ll add a subpage about hacking OO.o on Mac OS X, managing patches, etc. I have an idea for an example hack, too.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=70360</id>
		<title>User:Dyrcona</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=70360"/>
		<updated>2008-03-16T01:54:18Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.&lt;br /&gt;
&lt;br /&gt;
I have started a [http://dyrcona-ooo.blogspot.com/ blog] where I&amp;#039;ll post updates about my progress on working with OO.o and the Mac OS X native port.&lt;br /&gt;
&lt;br /&gt;
I have added a page, called [[/LeopardBuild]], with my procedures for building the native Aqua OO.o on Mac OS X Leopard.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=70359</id>
		<title>User:Dyrcona</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=70359"/>
		<updated>2008-03-16T01:49:20Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.&lt;br /&gt;
&lt;br /&gt;
I have started a [http://dyrcona-ooo.blogspot.com/ blog] where I&amp;#039;ll post updates about my progress on working with OO.o and the Mac OS X native port.&lt;br /&gt;
&lt;br /&gt;
I am adding a [/LeopardBuild Leopard Build subpage] with tips on building OO.o on Mac OS X Leopard. These are essentially the procedures that I follow for my builds.&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=70074</id>
		<title>User:Dyrcona</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=70074"/>
		<updated>2008-03-13T20:41:40Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.&lt;br /&gt;
&lt;br /&gt;
I have started a [http://dyrcona-ooo.blogspot.com/ blog] where I&amp;#039;ll post updates about my progress on working with OO.o and the Mac OS X native port.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below are some tips for building OO.o on Mac OS X Leopard. Soon, I&amp;#039;ll have my complete build methodology laid out.&lt;br /&gt;
&lt;br /&gt;
One thing I do is put the following in a text file, so I can source it into my build environment before starting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
export CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I source the above in my DEV300_m0 directory so that the cache is stored there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=69889</id>
		<title>User:Dyrcona</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=69889"/>
		<updated>2008-03-11T23:58:39Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.&lt;br /&gt;
&lt;br /&gt;
I have started a [http://dyrcona-ooo.blogspot.com/ blog] where I&amp;#039;ll post updates about my progress on working with OO.o and the Mac OS X native port.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below are some tips for building OO.o on Mac OS X Leopard. Soon, I&amp;#039;ll have my complete build methodology laid out.&lt;br /&gt;
&lt;br /&gt;
One thing I do is put the following in a text file, so I can source it into my build environment before starting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
export CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:2401/cvs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I source the above in my DEV300_m0 directory so that the cache is stored there.&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=69888</id>
		<title>User:Dyrcona</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=69888"/>
		<updated>2008-03-11T23:56:42Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.&lt;br /&gt;
&lt;br /&gt;
I have started a [http://dyrcona-ooo.blogspot.com/ blog] where I&amp;#039;ll post updates about my progress on working with OO.o and the Mac OS X native port.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below are some tips for building OO.o on Mac OS X Leopard. Soon, I&amp;#039;ll have my complete build methodology laid out.&lt;br /&gt;
&lt;br /&gt;
One thing I do is put the following in a text file, so I can source it into my build environment before starting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I source the above in my DEV300_m0 directory so that the cache is stored there.&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Education_Project/Effort/Improve_Scanner_Use&amp;diff=69887</id>
		<title>Education Project/Effort/Improve Scanner Use</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Education_Project/Effort/Improve_Scanner_Use&amp;diff=69887"/>
		<updated>2008-03-11T23:51:29Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* Mac OS X side */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Draft : &lt;br /&gt;
&lt;br /&gt;
Current Scanner implementation is .. hmm&lt;br /&gt;
&lt;br /&gt;
Improve it is mandatory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Todo: analyse current implementation&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Todo &amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
* document the existing extensions/source/scanner implementation &lt;br /&gt;
&lt;br /&gt;
* define tasks in the Team: (ericb, valeuf, Dyrcona )&lt;br /&gt;
&lt;br /&gt;
* document everything &lt;br /&gt;
&lt;br /&gt;
* play with Image Capture SDK  : create a little application, &lt;br /&gt;
&lt;br /&gt;
* test all features&lt;br /&gt;
&lt;br /&gt;
* design: classes, naming conventions, API description&lt;br /&gt;
&lt;br /&gt;
* define  OpenOffice.org source code changes for new scanmacosx.cxx file, and it&amp;#039;s compilation&lt;br /&gt;
&lt;br /&gt;
* file an issue about the new feature&lt;br /&gt;
&lt;br /&gt;
* define new specs&lt;br /&gt;
&lt;br /&gt;
* create a cws : explain the steps&lt;br /&gt;
&lt;br /&gt;
* start with new implementation (code and debug )&lt;br /&gt;
&lt;br /&gt;
* define tests to validate new features&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Agenda&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:left; background:ivory&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ &amp;#039;&amp;#039;&amp;#039;Imprpove Scanner Use on Mac OS X&lt;br /&gt;
|- style=&amp;quot;background:royalblue; color:white&amp;quot;&lt;br /&gt;
!  width=&amp;quot;150&amp;quot;|Task     !! week A !! week B !! week C !! week D !! week E !! week F !! Status !! Assigned to !! Comments&lt;br /&gt;
|- |&lt;br /&gt;
| task1 ||bgcolor=&amp;quot;#2a8ad8&amp;quot;|  ||  ||  ||  ||  ||  ||  ||  ||&lt;br /&gt;
|- |&lt;br /&gt;
|task2|| bgcolor=&amp;quot;#287cc1&amp;quot;|  ||bgcolor=&amp;quot;#287cc1&amp;quot;|   || bgcolor=&amp;quot;#287cc1&amp;quot; | ||  ||  ||  ||  ||  ||&lt;br /&gt;
|- |&lt;br /&gt;
| task3 ||  || bgcolor=&amp;quot;#2370b0&amp;quot;|  ||bgcolor=&amp;quot;#2370b0&amp;quot;|   ||  ||  ||  ||  ||  ||&lt;br /&gt;
|- |&lt;br /&gt;
| task4 ||  ||bgcolor=&amp;quot;#2370b0&amp;quot;|   ||bgcolor=&amp;quot;#2370b0&amp;quot;|  ||bgcolor=&amp;quot;#2370b0&amp;quot;|  ||  ||  ||  ||  ||&lt;br /&gt;
|-|&lt;br /&gt;
| task5 ||  ||  ||bgcolor=&amp;quot;#135892&amp;quot;|   ||bgcolor=&amp;quot;#135892&amp;quot;|  ||  ||  ||  ||  ||&lt;br /&gt;
|-|&lt;br /&gt;
| task6 ||  ||  || bgcolor=&amp;quot;#135892&amp;quot;|  ||bgcolor=&amp;quot;#135892&amp;quot;|   || bgcolor=&amp;quot;#135892&amp;quot;|   ||  ||  ||  ||&lt;br /&gt;
|-|&lt;br /&gt;
| Write specs || bgcolor=&amp;quot;#0c4676&amp;quot;|  ||bgcolor=&amp;quot;#0c4676&amp;quot;|   || bgcolor=&amp;quot;#0c4676&amp;quot;|  ||bgcolor=&amp;quot;#0c4676&amp;quot;|   || bgcolor=&amp;quot;#0c4676&amp;quot;|  ||  ||  ||  ||&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Current design in OpenOffice.org&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
===OpenOffice.org code location===&lt;br /&gt;
&lt;br /&gt;
extensions/source/scanner&lt;br /&gt;
&lt;br /&gt;
 [FIXME]: Twain interface should work on Mac OS X version of OpenOffice.org, and configure does accept &lt;br /&gt;
&lt;br /&gt;
 --with-system-sane&lt;br /&gt;
 --with-sane-headers &lt;br /&gt;
&lt;br /&gt;
 command line options. Tests scheduled&lt;br /&gt;
&lt;br /&gt;
===Products built === &lt;br /&gt;
&lt;br /&gt;
All :  scanner , scnserv  &lt;br /&gt;
&lt;br /&gt;
Windows( WNT) :  scanwin &lt;br /&gt;
&lt;br /&gt;
Other ( UNX or OS2 ) : &lt;br /&gt;
&lt;br /&gt;
sane, sandlg scanunx and grid&lt;br /&gt;
&lt;br /&gt;
=== Code documentation ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;See OpenOffice.org [http://eric.bachard.free.fr/Education/Documentation/AquaScanner/html/ extensions/source/scanner source code documentation]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Contains:  &lt;br /&gt;
&lt;br /&gt;
* Class description&lt;br /&gt;
* Methods description&lt;br /&gt;
* some diagrams (inheritance)&lt;br /&gt;
* source code&lt;br /&gt;
&lt;br /&gt;
important: the documentation above has been generated using &amp;#039;&amp;#039;&amp;#039;[http://www.stack.nl/~dimitri/doxygen/ Doxygen]&amp;#039;&amp;#039;&amp;#039;, made with current code (from DEV300_m0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Does not contain :  libscn generation + build process, and Design about the Mac OS X lib&lt;br /&gt;
&lt;br /&gt;
(FIXME )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
scanner.cxx: uses libsane (3rd part library, must be installed separately). All system calls in libscn extension, are using SANE macros constants, while Apple does provide Twain blob for all scanners.&lt;br /&gt;
&lt;br /&gt;
grid.*  : defines the look of the dialog box + the implementation.&lt;br /&gt;
&lt;br /&gt;
To be done:  thre is an existing Image Capture device, using Twain on Mac OS X. The idea is to bind with Image Capture device instead of the heavy SANE thing. &lt;br /&gt;
&lt;br /&gt;
The Apple Image Capture SDK does contain code sample ( Model View Controler paradigm in objective C ( to be modified in objc++ )&lt;br /&gt;
&lt;br /&gt;
=== Interface description ===&lt;br /&gt;
&lt;br /&gt;
==== Offapi ====&lt;br /&gt;
&lt;br /&gt;
The complete interface is defined in  (list to be confirmed ):&lt;br /&gt;
&lt;br /&gt;
In OpenOffice.org source code :  &lt;br /&gt;
&lt;br /&gt;
offapi/com/sun/star/scanner&lt;br /&gt;
&lt;br /&gt;
ScanError.idl&lt;br /&gt;
&lt;br /&gt;
ScannerContext.idl&lt;br /&gt;
&lt;br /&gt;
ScannerException.idl&lt;br /&gt;
&lt;br /&gt;
ScannerManager.idl&lt;br /&gt;
&lt;br /&gt;
XScannerManager.idl&lt;br /&gt;
&lt;br /&gt;
offapi/com/sun/star/awt   ( lot of references )&lt;br /&gt;
&lt;br /&gt;
+Includes : &lt;br /&gt;
&lt;br /&gt;
* grid.cxx &lt;br /&gt;
cstdio, cmath, grid.hxx, /* stl, for ::std::sort */  algorithm ,  &lt;br /&gt;
&lt;br /&gt;
+ (from grid.hxx) : vcl/window.hxx, vcl/button.hxx, vcl/listbox.hxx, vcl/dialog.hxx&lt;br /&gt;
&lt;br /&gt;
*&lt;br /&gt;
==== Dialog boxes ====&lt;br /&gt;
&lt;br /&gt;
The dialog boxes are defined in :&lt;br /&gt;
&lt;br /&gt;
extensions/source/scanner/sanedlg.src&lt;br /&gt;
&lt;br /&gt;
extensions/source/scanner/grid.src&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation description ==&lt;br /&gt;
&lt;br /&gt;
GridWindow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Important Links==&lt;br /&gt;
&lt;br /&gt;
===Mac port Links===&lt;br /&gt;
&lt;br /&gt;
This work is part of http://wiki.services.openoffice.org/wiki/Mac_OS_X_Porting_-_Work_Areas/Todo%27s&lt;br /&gt;
&lt;br /&gt;
[[MacOSX_Debug_OpenOffice.org_using_XCode | &amp;#039;&amp;#039;&amp;#039;Debug using Xcode (click me)&amp;#039;&amp;#039;&amp;#039;]]&lt;br /&gt;
&lt;br /&gt;
[[Mac_OS_X_Porting_-_Roadmap | &amp;#039;&amp;#039;&amp;#039;Aqua Roadmap&amp;#039;&amp;#039;&amp;#039;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mac OS X side===&lt;br /&gt;
&lt;br /&gt;
Links :&lt;br /&gt;
&lt;br /&gt;
[http://developer.apple.com/documentation/DeviceDrivers/Conceptual/AccessingHardware/AH_Intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40002714-BAJDAJDJ &amp;#039;&amp;#039;&amp;#039;Accessing Hardware from Applications&amp;#039;&amp;#039;&amp;#039; ]&lt;br /&gt;
&lt;br /&gt;
[http://www.twain.org/mac.htm &amp;#039;&amp;#039;&amp;#039;Twain Mac&amp;#039;&amp;#039;&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
[http://developer.apple.com/technotes/tn2002/tn2088.html#TAN4  &amp;#039;&amp;#039;&amp;#039;TN2088 / Twain Data Sources for Mac OS X&amp;#039;&amp;#039;&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
[http://www.twain.org/docs/TWAIN19.pdf &amp;#039;&amp;#039;&amp;#039;PDF : How use TWAIN&amp;#039;&amp;#039;&amp;#039;] (Direct link with a PDF)&lt;br /&gt;
&lt;br /&gt;
[http://dl.valeuf.org/AC20/mac_addendum.pdf &amp;#039;&amp;#039;&amp;#039;Some specification to use TWAIN with Mac OS&amp;#039;&amp;#039;&amp;#039;] (Direct link with a pdf)&lt;br /&gt;
&lt;br /&gt;
[http://developer.apple.com/documentation/Carbon/Conceptual/ImageCaptureServicesProgrammingGuide/01Introduction/chapter_1_section_1.html#//apple_ref/doc/uid/TP40005196-CH1-DontLinkElementID_23 &amp;#039;&amp;#039;&amp;#039;Image Capture Services Programming Guide for Carbon&amp;#039;&amp;#039;&amp;#039; ]&lt;br /&gt;
&lt;br /&gt;
SDK : &lt;br /&gt;
&lt;br /&gt;
[ftp://ftp.apple.com/developer/Development_Kits/ImageCapture_Tiger_SDK.dmg &amp;#039;&amp;#039;&amp;#039;Apple Image SDK&amp;#039;&amp;#039;&amp;#039; ]&lt;br /&gt;
&lt;br /&gt;
Other :&lt;br /&gt;
&lt;br /&gt;
[http://www.twain.org/docs/TWAIN2d_proposal.pdf  &amp;#039;&amp;#039;&amp;#039;Twain 2.0 specifications (draft)&amp;#039;&amp;#039;&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.sane-project.org/ Sane Project]&lt;br /&gt;
&lt;br /&gt;
[http://www.sane-project.org/sane-supported-devices.html Supported devices]&lt;br /&gt;
&lt;br /&gt;
[http://www.ellert.se/twain-sane/ Mac OS X Sane]&lt;br /&gt;
&lt;br /&gt;
[http://www.hamrick.com/vsm.html Vuescan]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[User:Ericb|Ericb]] 23:40, 5 October 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:MacOSX]]&lt;br /&gt;
[[Category:Aqua]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Education_Project/Effort&amp;diff=69886</id>
		<title>Education Project/Effort</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Education_Project/Effort&amp;diff=69886"/>
		<updated>2008-03-11T23:44:45Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: /* &amp;#039;&amp;#039;&amp;#039;Contacts&amp;#039;&amp;#039;&amp;#039; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:Uno/Term/Effort}}&lt;br /&gt;
&lt;br /&gt;
We propose &amp;#039;&amp;#039;&amp;#039;applications&amp;#039;&amp;#039;&amp;#039;, doable in one or two month of work for a student ( time to discover everything, and do the real work).&lt;br /&gt;
All these applications below are correlated with &amp;#039;&amp;#039;&amp;#039;IssueZilla issues&amp;#039;&amp;#039;&amp;#039;, and need new code to be solved.&lt;br /&gt;
&lt;br /&gt;
What we propose is to accompany the peers teachers/students solving the issues: the work must be done by the student, and we are resources. This means, most of the time, we have no clue about the solution (but we could work on it), or the needed changes, and sometimes, just a little change in the code can solve the issue. Sometimes, a lot of code can be needed.&lt;br /&gt;
&lt;br /&gt;
The most important is to work together, and make the students discover OpenOffice.org source code and organisation.&lt;br /&gt;
&lt;br /&gt;
The applications are classed &lt;br /&gt;
&lt;br /&gt;
- by difficulty level (more stars means means more work and more difficult to be solved )&lt;br /&gt;
&lt;br /&gt;
- by themes. e.g. Mac OS X &lt;br /&gt;
&lt;br /&gt;
Last but not least, have a look at [[Cpp_Coding_Standards]] cannot be bad :-)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Applications for Mac OS X only&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== [[Education_Project/Effort/Write_a_new_canvas | Implement new canvas using Core Graphics (click me)]]===&lt;br /&gt;
&lt;br /&gt;
FIXME: description needs to be updated&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Goal&amp;#039;&amp;#039;&amp;#039; : Implement a new canvas on Mac OS X&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Problem&amp;#039;&amp;#039;&amp;#039; : nothing yet&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Time plan&amp;#039;&amp;#039;&amp;#039; : TBD&lt;br /&gt;
&lt;br /&gt;
Contacts: &lt;br /&gt;
&lt;br /&gt;
* for Education project:  ericb , (please add your name )&lt;br /&gt;
&lt;br /&gt;
* for the task :  Thorsten Behrens thb/ Ismael Merzaq ismael87 / Eric Bachard ericb : all  @openofice.org&lt;br /&gt;
&lt;br /&gt;
Difficulty: *****&lt;br /&gt;
&lt;br /&gt;
Needs:&lt;br /&gt;
&lt;br /&gt;
* experimental tests in canvas, with dummy methods, for proof of concept&lt;br /&gt;
&lt;br /&gt;
* good Core Graphics understanding&lt;br /&gt;
&lt;br /&gt;
* good C++ skills &lt;br /&gt;
&lt;br /&gt;
* good Cairo understanding ( we use the existing implementation)&lt;br /&gt;
&lt;br /&gt;
=== [[Education_Project/Effort/Complete_feature_send_active_document_as | Support of more mail clients for send active document as (click me)]] ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Goal&amp;#039;&amp;#039;&amp;#039; : Support multiple mail client applications on Mac OS X (currently Mail.app only) and determine the user&amp;#039;s default mail client for the &amp;quot;send document as e-mail&amp;quot; feature&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Problem&amp;#039;&amp;#039;&amp;#039; : Only Mail.app support creating a new message with a document already attached using the &amp;#039;open -a&amp;#039; command.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Time plan&amp;#039;&amp;#039;&amp;#039; : TBD&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Contacts:&lt;br /&gt;
&lt;br /&gt;
* for Education project:  ericb , (please add your name )&lt;br /&gt;
* for the task :  obr @openofice.org&lt;br /&gt;
&lt;br /&gt;
Difficulty: ***&lt;br /&gt;
&lt;br /&gt;
=== [[Education_Project/Effort/Use_system_security_API | Use system security API ( click me)]] === &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Goal&amp;#039;&amp;#039;&amp;#039; : Make Apple key signing API work&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Problem&amp;#039;&amp;#039;&amp;#039; : currently, a strange hack does use Mozilla libnss and co, and this is not easy to maintain. Use Apple API would simplify the build, and help to improve the OpenOffice.org integration on Mac OS X.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Time plan&amp;#039;&amp;#039;&amp;#039; : long term work. TBD completely&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Links&amp;#039;&amp;#039;&amp;#039; : [http://developer.apple.com/documentation/Security/Conceptual/keychainServConcepts/01introduction/chapter_1_section_1.html  Apple Keychain Documentation]&lt;br /&gt;
&lt;br /&gt;
Contacts:&lt;br /&gt;
&lt;br /&gt;
* for Education project:  ericb , (please add your name )&lt;br /&gt;
* for the task :  jl/obr @openofice.org&lt;br /&gt;
&lt;br /&gt;
Difficulty: *****&lt;br /&gt;
&lt;br /&gt;
* no information available yet&lt;br /&gt;
&lt;br /&gt;
=== [[Education_Project/Effort/Improve_Scanner_Use | Improve Scanner Use (click me)]] === &lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;Description of the application&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Goal&amp;#039;&amp;#039;&amp;#039; : Implement Apple way of Image Capture&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Target&amp;#039;&amp;#039;&amp;#039; : Mac OS X Aqua version is concerned firstly (not sure a backport is possible)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Problem&amp;#039;&amp;#039;&amp;#039; : the current implementation :&lt;br /&gt;
&lt;br /&gt;
- needs a third part installation ( libsane , libusb ..etc )&lt;br /&gt;
&lt;br /&gt;
- is obsolete&lt;br /&gt;
&lt;br /&gt;
- is not User Experience compliant &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Strategy (draft, to be completed)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Mac OS X does use a blob interfaced with most of existing scanners (undocumented), named &amp;quot; Image Capture &amp;quot;. This blob seems to use Twain implementation.&lt;br /&gt;
&lt;br /&gt;
The scanner is an abstraction in every subpart like scandlg.cxx grid.cxx, and scnserv.cxx. &amp;#039;&amp;#039;&amp;#039;The Mac OS X implementation does only concern scanunx.cxx&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The problem is, scanunx.cxx does use SANE implementation, and will become useless. Thus, &amp;#039;&amp;#039;&amp;#039;the idea is to create scanmacosx.cxx, and use both scanwin.cxx existing implementation . the result will be a mix of  what Image Catpure SDK + Apple documentation will provide us, and the need we have for the implementation&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
We firstly have to :&lt;br /&gt;
&lt;br /&gt;
- analyze scanunx.cxx completely&lt;br /&gt;
&lt;br /&gt;
- design TwainHolder, TwainThread, BitmapManager, ScannerManager (reused from scanwin.cxx )  implementation in scanmacosx.cxx&lt;br /&gt;
&lt;br /&gt;
- define a process for the progressive implementation&lt;br /&gt;
&lt;br /&gt;
- FIXME: complete .. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Time plan&amp;#039;&amp;#039;&amp;#039; : a first try must work on early of June 2008&lt;br /&gt;
&lt;br /&gt;
====&amp;#039;&amp;#039;&amp;#039;Contacts&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* Volunteers : &lt;br /&gt;
&lt;br /&gt;
- &amp;#039;&amp;#039;&amp;#039;Valentin JANIAUT&amp;#039;&amp;#039;&amp;#039; student from [http://www.utbm.fr &amp;#039;&amp;#039;&amp;#039;UTBM (France )&amp;#039;&amp;#039;&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
- [[User:Dyrcona | &amp;#039;&amp;#039;&amp;#039;Jason STEPHENSON&amp;#039;&amp;#039;&amp;#039;]], from USA &lt;br /&gt;
&lt;br /&gt;
- [[User:Ericb | &amp;#039;&amp;#039;&amp;#039;Eric Bachard&amp;#039;&amp;#039;&amp;#039;]]&lt;br /&gt;
&lt;br /&gt;
Jason is a skilled developer ( Cocoa ) helping for the feature implementation.&lt;br /&gt;
&lt;br /&gt;
Valentin should be able to validate a Value Unit for his own cursus, writing code for OpenOffice.org project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Contact for School : Eric Bachard&lt;br /&gt;
&lt;br /&gt;
* for Education Project : ericb , (please add your name )&lt;br /&gt;
&lt;br /&gt;
*  To be defined&lt;br /&gt;
&lt;br /&gt;
This application is a try. Main idea is : analyse current interface, improve the current implementation, and more if possible. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Difficulty: ****&lt;br /&gt;
&lt;br /&gt;
Needs: &lt;br /&gt;
&lt;br /&gt;
* C++ skills&lt;br /&gt;
&lt;br /&gt;
* Twain and Sane skills &lt;br /&gt;
&lt;br /&gt;
* interface understanding (offapi )&lt;br /&gt;
&lt;br /&gt;
* Design skills&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Application concerning all ports&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
=== [[Education_Project/Effort/Math_baseline_alignment | Implement Math Baseline Alignement (click me)]] === &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Goal&amp;#039;&amp;#039;&amp;#039; : Fix [http://www.openoffice.org/issues/show_bug.cgi?id=972 issue972] Implementing a correct baseline alignment for equations anchored as characters in Writer documents ( should work for &amp;quot;to character&amp;quot; too ).&lt;br /&gt;
&lt;br /&gt;
Side effects: a change in .odt specification will result, and specs must be written in parallel&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Problem&amp;#039;&amp;#039;&amp;#039; : the current implementation does not work, and equations are misaligned. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Important consequence: OpenOffice.org acceptance is low in Educationnnal system (all locales concerned)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Time plan&amp;#039;&amp;#039;&amp;#039; : (will be defined soon)&lt;br /&gt;
&lt;br /&gt;
Note:  the application could be proposed as Google Summer of Code ( including other tasks.&lt;br /&gt;
&lt;br /&gt;
Contacts:&lt;br /&gt;
&lt;br /&gt;
* for Education Project : ericb , (please add your name )&lt;br /&gt;
* Framework/Starmath projects :  mba/tl @openoffice.org &lt;br /&gt;
&lt;br /&gt;
Difficulty: ****&lt;br /&gt;
&lt;br /&gt;
New:  needs &lt;br /&gt;
&lt;br /&gt;
* new interface definition ( offapi),&lt;br /&gt;
* new file format extension ( needs ODF TC agreement ),&lt;br /&gt;
* new implementation ( starmath )&lt;br /&gt;
* Serious QA&lt;br /&gt;
&lt;br /&gt;
Skills : C++&lt;br /&gt;
&lt;br /&gt;
=== [[Education_Project/Effort/Fix_Mousewheel_Jump_in_Calc | Fix MouseWheel jump in Calc (click me)]] === &lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;&amp;#039;Description of the application&amp;#039;&amp;#039;&amp;#039; ====&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Goal&amp;#039;&amp;#039;&amp;#039; : Fix [http://www.openoffice.org/issues/show_bug.cgi?id=81907 issue 81907] Implementing a method allowing smooth scrolling in Calc sheets, even when cells are half if the screen high&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Problem&amp;#039;&amp;#039;&amp;#039; : the current implementation uses integers for the scrolling, and whenever a cell is half of the screen high, some cells are no longer accessible. &lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Time plan&amp;#039;&amp;#039;&amp;#039; : (will be defined soon)&lt;br /&gt;
Contacts:&lt;br /&gt;
&lt;br /&gt;
* for Education Project : ericb , (please add your name )&lt;br /&gt;
&lt;br /&gt;
* Framework Project :  nn/ @openoffice.org &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Difficulty: **&lt;br /&gt;
&lt;br /&gt;
Needs: &lt;br /&gt;
&lt;br /&gt;
* a correct understanding of the existing code&lt;br /&gt;
&lt;br /&gt;
* define the new feature fixing the issue&lt;br /&gt;
&lt;br /&gt;
* implement it&lt;br /&gt;
&lt;br /&gt;
* integrate it respecting OpenOffice.org project rules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;#039;&amp;#039;&amp;#039;Other Applications (later)&amp;#039;&amp;#039;&amp;#039; ==&lt;br /&gt;
&lt;br /&gt;
===[[Education_Project/Effort/Maxima Integration |Maxima Integration (click me)]]  ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- === [[Education_Project/Effort/XY Graduations in Diagrams | XY Graduations in Diagrams]] === --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [[Education_Project/Effort/OpenOffice.org_Installation | Write OpenOffice.org Installation HowTo]] ===&lt;br /&gt;
&lt;br /&gt;
[[Category:Education]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Effort]]&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=68742</id>
		<title>User:Dyrcona</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=68742"/>
		<updated>2008-03-02T13:20:16Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.&lt;br /&gt;
&lt;br /&gt;
I have begun adding some of my tips for building OO.o on Mac OS X Leopard. Soon, I&amp;#039;ll have my complete build methodology laid out.&lt;br /&gt;
&lt;br /&gt;
One thing I do is put the following in a text file, so I can source it into my build environment before starting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CCACHE_DIR=&amp;quot;$(pwd)/.ccache&amp;quot;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I source the above in my DEV300_m0 directory so that the cache is stored there.&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=68657</id>
		<title>User:Dyrcona</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=68657"/>
		<updated>2008-03-01T21:46:04Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.&lt;br /&gt;
&lt;br /&gt;
I don&amp;#039;t have a lot of time to put stuff in this page right now, but in the coming days and weeks, I&amp;#039;ll add some tips for those who are also new to the Mac OS X port of OpenOffice.org. These tips will mostly cover working with the DEV300 source code branch.&lt;br /&gt;
&lt;br /&gt;
One thing I do is put the following in a text file, so I can source it into my build environment before starting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export CC=&amp;quot;ccache gcc&amp;quot;&lt;br /&gt;
export CXX=&amp;quot;ccache g++&amp;quot;&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export SYSTEM_OPENSSL=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=67765</id>
		<title>User:Dyrcona</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Dyrcona&amp;diff=67765"/>
		<updated>2008-02-24T15:04:43Z</updated>

		<summary type="html">&lt;p&gt;Dyrcona: New page: Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.  I don&amp;#039;t have a lot of time to put ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, there! My name is [http://www.sigio.com/~jason/ Jason Stephenson]. I am new to OpenOffice.org, but I plan to help out with the native Mac OS X port.&lt;br /&gt;
&lt;br /&gt;
I don&amp;#039;t have a lot of time to put stuff in this page right now, but in the coming days and weeks, I&amp;#039;ll add some tips for those who are also new to the Mac OS X port of OpenOffice.org. These tips will mostly cover working with the DEV300 source code branch.&lt;/div&gt;</summary>
		<author><name>Dyrcona</name></author>
	</entry>
</feed>