<?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=Mseidel</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=Mseidel"/>
	<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/wiki/Special:Contributions/Mseidel"/>
	<updated>2026-12-04T08:23:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=263420</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=263420"/>
		<updated>2026-02-26T21:04:49Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Windows 7, Windows 8.1, Windows 10, Windows 11 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build {{AOo}} from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10, Windows 11 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on [mailto:dev@openoffice.apache.org dev@openoffice.apache.org], if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.14-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.6.1-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; Cygwin 3.4.10 was the last major version supporting [https://cygwin.com/pipermail/cygwin-announce/2024-February/011524.html Windows 7 / 8].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Product_Release&amp;diff=263067</id>
		<title>Product Release</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Product_Release&amp;diff=263067"/>
		<updated>2025-11-12T18:21:06Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Apache OpenOffice 4.x */ AOO 4.1.16&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Apache OpenOffice ==&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org was [https://incubator.apache.org/projects/openofficeorg.html transferred] to the [https://www.apache.org/foundation/ Apache Software Foundation] on June 1st, 2011 and it [https://blogs.apache.org/OOo/entry/openoffice_graduates_from_the_apache became an Apache Top-Level Project] on October 17, 2012.&lt;br /&gt;
&lt;br /&gt;
The development model of the popular productivity suite changed to benefit from the huge experience the Foundation has with managing open source projects.&lt;br /&gt;
&lt;br /&gt;
New releases of the product are accordingly named &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Apache OpenOffice 4.x ===&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/stop_the_lazy_season_start Apache OpenOffice 4.2.0] (2026, exact date TBD)&lt;br /&gt;
* [https://openoffice.apache.org/blog/announcing-apache-openoffice-4-1-16 Apache OpenOffice 4.1.16] (November 10th, 2025)&lt;br /&gt;
* [https://openoffice.apache.org/blog/announcing-apache-openoffice-4-1-15 Apache OpenOffice 4.1.15] (December 22nd, 2023)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-110 Apache OpenOffice 4.1.14] (February 27th, 2023)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-19 Apache OpenOffice 4.1.13] (July 22nd, 2022)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-18 Apache OpenOffice 4.1.12] (May 4th, 2022)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-17 Apache OpenOffice 4.1.11] (October 6th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-16 Apache OpenOffice 4.1.10] (May 4th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-15 Apache OpenOffice 4.1.9] (February 7th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-14 Apache OpenOffice 4.1.8] (November 10th, 2020)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-13 Apache OpenOffice 4.1.7] (September 21st, 2019)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-12 Apache OpenOffice 4.1.6] (November 18th, 2018)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-11 Apache OpenOffice 4.1.5] (December 30th, 2017)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-1 Apache OpenOffice 4.1.4] (October 19th, 2017)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_12 Apache OpenOffice 4.1.3] (October 12th, 2016)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_11 Apache OpenOffice 4.1.2] (October 28th, 2015)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_1 Apache OpenOffice 4.1.1] (August 21st, 2014)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/the_apache_openoffice_project_announce Apache OpenOffice 4.1.0] (April 29th, 2014)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_0 Apache OpenOffice 4.0.1] (October 1st, 2013)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/a_short_celebration_and_then Apache OpenOffice 4.0.0] (July 23rd, 2013)&lt;br /&gt;
&lt;br /&gt;
=== Apache OpenOffice 3.4 ===&lt;br /&gt;
&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_3_41 Apache OpenOffice 3.4.1] (August 23rd, 2012)&lt;br /&gt;
** additional languages Danish, Norwegian, Swedish, Korean, Polish, Basque, Asturian and Scottish Gaelic (January 30th, 2013)&lt;br /&gt;
* [https://www.openoffice.org/news/aoo34.html Apache OpenOffice 3.4.0] (May 8th, 2012)&lt;br /&gt;
&lt;br /&gt;
== Older Product Releases of OpenOffice.org ==&lt;br /&gt;
&lt;br /&gt;
For release information please see the technical [https://development.openoffice.org/releases/index.html Release Notes] and a detailed [https://www.openoffice.org/dev_docs/features/index.html feature overview].&lt;br /&gt;
&lt;br /&gt;
For a list of uploaded Developer Snapshots and Release Candidates/Releases see the [[Product_Release/builds_uploaded | table of uploaded builds]]. The most recent builds can be downloaded on the [https://download.openoffice.org download webpage].&lt;br /&gt;
&lt;br /&gt;
For guidance on announcing new releases see [[PolicyMirrorLinking]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Released OpenOffice.org 3.x.x ===&lt;br /&gt;
&lt;br /&gt;
* [[OOoRelease33|OpenOffice.org 3.3.0]] (January 26th, 2011)&lt;br /&gt;
* [[OOoRelease321|OpenOffice.org 3.2.1]] (June 4th, 2010)&lt;br /&gt;
* [[OOoRelease32|OpenOffice.org 3.2.0]] (February 11th, 2010)&lt;br /&gt;
* [[OOoRelease311|OpenOffice.org 3.1.1]] (August 31st, 2009)&lt;br /&gt;
* [[OOoRelease31|OpenOffice.org 3.1.0]] (May 7th, 2009)&lt;br /&gt;
* [[OOoRelease301|OpenOffice.org 3.0.1]] (January 27th, 2009)&lt;br /&gt;
* [[OOoRelease30|OpenOffice.org 3.0.0]] (October 13th, 2008)&lt;br /&gt;
&lt;br /&gt;
=== Released OpenOffice.org 2.x.x ===&lt;br /&gt;
&lt;br /&gt;
* [[OOoRelease243|OpenOffice.org 2.4.3]] (September 04th, 2009)&lt;br /&gt;
* [[OOoRelease242|OpenOffice.org 2.4.2]] (October 28th, 2008)&lt;br /&gt;
* [[OOoRelease241|OpenOffice.org 2.4.1]] (June 10th, 2008)&lt;br /&gt;
* [[OOoRelease24|OpenOffice.org 2.4]] (March 27th, 2008)&lt;br /&gt;
* [[OOoRelease231|OpenOffice.org 2.3.1]] (December 4th, 2007)&lt;br /&gt;
* [[OOoRelease23|OpenOffice.org 2.3]] (September 17th, 2007)&lt;br /&gt;
* [[OOoRelease221|OpenOffice.org 2.2.1]] (June 12th, 2007)&lt;br /&gt;
* [[OOoRelease22|OpenOffice.org 2.2]] (March 29th, 2007)&lt;br /&gt;
* [[OOoRelease205|OpenOffice.org 2.1]] (December 12th, 2006)&lt;br /&gt;
* [[OOoRelease204|OpenOffice.org 2.0.4]] (October 13th, 2006)&lt;br /&gt;
* [[OOoRelease203|OpenOffice.org 2.0.3]] (June 29th, 2006)&lt;br /&gt;
* [[OOoRelease202|OpenOffice.org 2.0.2]] (March 8th, 2006)&lt;br /&gt;
* [[OOoRelease201|OpenOffice.org 2.0.1]] (December 21st, 2005)&lt;br /&gt;
* OpenOffice.org 2.0.0 (October 21st, 2005)&lt;br /&gt;
&lt;br /&gt;
=== OpenOffice.org 1.1 ===&lt;br /&gt;
&lt;br /&gt;
* OpenOffice.org 1.1.5 (September 9th, 2005)&lt;br /&gt;
* OpenOffice.org 1.1.4 (December 22th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.3 (October 4th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.2 (June 18th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.1 &lt;br /&gt;
* OpenOffice.org 1.1.0 (October 1st, 2003)&lt;br /&gt;
&lt;br /&gt;
=== OpenOffice.org 1.0 ===&lt;br /&gt;
&lt;br /&gt;
* OpenOffice.org 1.0.3 (April 10th, 2003)&lt;br /&gt;
* OpenOffice.org 1.0.2 (January 20th, 2003) (tag &amp;quot;OpenOffice_1_0_2&amp;quot;)&lt;br /&gt;
* OpenOffice.org 1.0.1 (July 17th, 2002) (tag &amp;quot;OpenOffice_1_0_1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Older releases can be retrieved via the [ftp://archive.services.openoffice.org/pub/openoffice-archive/stable Archive Server].&lt;br /&gt;
&lt;br /&gt;
[[Category:Releases]]&lt;br /&gt;
[[Category:Quality Assurance]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=263066</id>
		<title>Update Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=263066"/>
		<updated>2025-11-11T21:25:48Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Available Update Feeds */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Update Service for AOO/OOo is a service which provides via HTTP or HTTPS an Update Feed (or an Update Document) for installed AOO/OOo instances. This allows a requesting AOO/OOo instance to check if a new AOO version is available and to provide the result of this check to the user.&lt;br /&gt;
&lt;br /&gt;
Currently, the Update Service is implemented via static HTTP/HTTPS resources. No dynamic component is involved which processes the information given in the HTTP/HTTPS request of the AOO/OOo instance in order to generate a response.&lt;br /&gt;
&lt;br /&gt;
= Available Update Feeds =&lt;br /&gt;
&lt;br /&gt;
For the following AOO/OOo versions an Update Feed is made available.&lt;br /&gt;
The table contains the UpdateURL which an AOO/OOo instance of the specified version is requesting via HTTP/HTTPS and the resource in our svn repository which serves the HTTP/HTTPS resource behind the UpdateURL.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! AOO/OOo version&lt;br /&gt;
! UpdateURL&lt;br /&gt;
! Resource in repository&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2&lt;br /&gt;
| https://www.openoffice.org/projects/update34/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update34/ProductUpdateService/check.Update ooo-site/update34]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2.1&lt;br /&gt;
| https://www.openoffice.org/projects/update35/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update35/ProductUpdateService/check.Update ooo-site/update35]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.3&lt;br /&gt;
| https://www.openoffice.org/projects/update36/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update36/ProductUpdateService/check.Update ooo-site/update36]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.0&lt;br /&gt;
| https://www.openoffice.org/projects/update38/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update38/ProductUpdateService/check.Update ooo-site/update38]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.1&lt;br /&gt;
| https://www.openoffice.org/projects/update/aoo341/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update/aoo341/check.Update ooo-site/update/aoo341]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo40/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo40/check.Update updates-site/aoo40]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo401/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo401/check.Update updates-site/aoo401]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo410/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo410/check.Update updates-site/aoo410]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo411/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo411/check.Update updates-site/aoo411]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.2&lt;br /&gt;
| https://ooo-updates.apache.org/aoo412/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo412/check.Update updates-site/aoo412]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.3&lt;br /&gt;
| https://ooo-updates.apache.org/aoo413/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo413/check.Update updates-site/aoo413]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.4&lt;br /&gt;
| https://ooo-updates.apache.org/aoo414/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo414/check.Update updates-site/aoo414]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.5&lt;br /&gt;
| https://ooo-updates.apache.org/aoo415/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo415/check.Update updates-site/aoo415]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.6&lt;br /&gt;
| https://ooo-updates.apache.org/aoo416/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo416/check.Update updates-site/aoo416]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.7&lt;br /&gt;
| https://ooo-updates.apache.org/aoo417/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo417/check.Update updates-site/aoo417]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.8&lt;br /&gt;
| https://ooo-updates.apache.org/aoo418/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo418/check.Update updates-site/aoo418]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.9&lt;br /&gt;
| https://ooo-updates.apache.org/aoo419/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo419/check.Update updates-site/aoo419]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.10&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4110/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4110/check.Update updates-site/aoo4110]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.11&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4111/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4111/check.Update updates-site/aoo4111]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.12&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4112/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4112/check.Update updates-site/aoo4112]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.13&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4113/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4113/check.Update updates-site/aoo4113]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.14&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4114/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4114/check.Update updates-site/aoo4114]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.15&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4115/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4115/check.Update updates-site/aoo4115]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.16&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4116/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4116/check.Update updates-site/aoo4116]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.2.0&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo420/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo420/check.Update updates-site/aoo420]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Update Feeds for versions 3.2 to 3.4.1 are part of the user website content. Thus, a changed Update Feed needs to be published - as it is needed for changed usual user website content.&lt;br /&gt;
The Update Feeds for versions 4.0.0 to 4.2.0 only need to be changed as its publication is done automatically by certain services provided by ASF Infra.&lt;br /&gt;
&lt;br /&gt;
Update Feeds can be generated by using the bash script and corresponding meta data which is available at [https://svn.apache.org/repos/asf/openoffice/devtools/genUpdateFeed/ genUpdateFeed].&lt;br /&gt;
&lt;br /&gt;
= Update Notification Protocol =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Since version 2.0.3 OpenOffice.org users of builds providing an UpdateURL can manually check for available updates by invoking {{menu|Help|Check for Updates…}}. Starting with version 2.0.4 OpenOffice.org can perform this check automatically in a user configurable interval. &lt;br /&gt;
&lt;br /&gt;
This is an attempt to define a second version of the update notification protocol, which is better extendable, can also be used for [[Extensions | extensions]] and no longer uses HTTP post requests.&lt;br /&gt;
&lt;br /&gt;
{{Note|Note: Even though this document is a draft, it seems to be the actually implemented version as of OpenOffice.org 3.3. See http://s.apache.org/e2u for more information.}}&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&lt;br /&gt;
The update notification request is a https get request to an URL, which may contain the operating system and processor type the OpenOffice instance is compiled for either as part of the URL or as URL parameter.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://update.services.openoffice.org/ProductUpdateService/check.Update2?_OS=Solaris&amp;amp;_ARCH=SPARC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://www.example.org/MyProduct/MyOS/MyArch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== User-Agent field ==&lt;br /&gt;
&lt;br /&gt;
To reduce the amount of transfered data when asking for OpenOffice updates, the user agent field contains all information required to identify a specific build: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
User-Agent: OpenOffice.org/2.2 (680m212 (Build:9263); Solaris; SPARC; BundledLanguages=en-US_fr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Accept-Language field ==&lt;br /&gt;
&lt;br /&gt;
To be able to return language specific feeds, OpenOffice.org sets the Accept-Language http request header field to the UI language currently in use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Accept-Language: en-GB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Update documents and feeds ==&lt;br /&gt;
&lt;br /&gt;
The simplest possible reply is of the following form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
  &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
  &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
  &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
  &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/inst:description&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the type attribute of the update tag is &amp;quot;text/html&amp;quot;, OOo will pass the URL specified in the src attribute to a browser. If you specify a different type, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&amp;amp;os=solarissparcwjre&amp;amp;lang=en-US&amp;amp;version=2.4&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OOo will download the referenced file itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The other supported reply format, which also allows to include several components or several versions of a single component, is to embed the update document in an [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;OpenOffice.org Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;The OpenOffice.org Project&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;OpenOffice.org 2.2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9e&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;summary&amp;gt;Click here to go to the download page.&amp;lt;/summary&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;OpenOffice.org_2_en-US_fr&amp;quot; label=&amp;quot;OpenOffice.org 2.2 US english/french&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
        &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
        &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
        &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
        &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
    &amp;lt;/content&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; OpenOffice.org 3.x update information example&lt;br /&gt;
&lt;br /&gt;
The following content of a &amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; directly references update information for a German Windows OpenOffice.org 3.3.0:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang=&amp;quot;en-US&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Product Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
&amp;lt;author&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;The OpenOffice Project&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
        &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
&amp;lt;/author&amp;gt;&lt;br /&gt;
&amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
&amp;lt;entry&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Update available&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;!-- IMPORTANT: category MUST be equal with UpdateID in version.ini --&amp;gt;&lt;br /&gt;
        &amp;lt;category term=&amp;quot;OpenOffice.org_3_de&amp;quot; label=&amp;quot;OpenOffice.org update&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
        &amp;lt;summary&amp;gt;Text below download information (should be localized)&amp;lt;/summary&amp;gt;&lt;br /&gt;
        &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:id&amp;gt;OpenOffice.org_3_de&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:version&amp;gt;&amp;#039;new version information&amp;#039;&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- buildid must be higher as installed version --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:buildid&amp;gt;9580&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:os&amp;gt;Windows&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:arch&amp;gt;x86&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- app/octet-stream generates direct download as background-process --&amp;gt;&lt;br /&gt;
                        &amp;lt;!--&amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://download.services.openoffice.org/files/localized/de/3.3.0/OOo_3.3.0_Win_x86_install-wJRE_de.exe&amp;quot;/&amp;gt;--&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- text/html opens src-link in default browser --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://download.openoffice.org&amp;quot;/&amp;gt;&lt;br /&gt;
                &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
        &amp;lt;/content&amp;gt;&lt;br /&gt;
&amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;inst:id&amp;gt; string of the component to be updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extension developers might prefer to link to the update description file instead of embedding it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;My Extention Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;Extension Developer&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://example.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;update@example.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Version 2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://example.org/myextension/latest.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;MyExtension+version&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;MyExtension&amp;quot; label=&amp;quot;My Extension&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot; src=&amp;quot;http://example.org/myextension/latest/myextension.update.xml&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;identifier&amp;gt; value of the extension to be updated.&lt;br /&gt;
&lt;br /&gt;
= A glance on the code for the Apache OpenOffice 3.4 release =&lt;br /&gt;
&lt;br /&gt;
The following describes some deeper insight of the &amp;quot;Check for Updates...&amp;quot; code in the office. It should help us to re-activate a corresponding web service when Apache OpenOffice 3.4 has been released. (Do we need a real web service? Something to be discussed.)&lt;br /&gt;
&lt;br /&gt;
The information given here is based on the work of Regina (regina at apache dot org), Ariel (arielch at apache dot org) and Kay (kschenk at apache dot org) found in the corresponding mailing list thread on ooo-dev - see http://s.apache.org/e2u.&lt;br /&gt;
Having this information gave me (orw at apache dot org) the right pointers for deeper investigations.&lt;br /&gt;
&lt;br /&gt;
== summary information about request to &amp;lt;UpdateURL&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;UpdateURL&amp;gt;, found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the office installation is typically an HTTPS URL.&lt;br /&gt;
The office sends a GET request to this URL. Two header fields are included in this request which are already mentioned above.&lt;br /&gt;
These are &amp;quot;Accept-Language&amp;quot; and &amp;quot;User-Agent&amp;quot;.&lt;br /&gt;
* &amp;quot;Accept-Language&amp;quot; contains the language of current locale - found in configuration item &amp;quot;org.openoffice.Setup/L10N&amp;quot;, attribute &amp;quot;ooLocale&amp;quot;&lt;br /&gt;
* &amp;quot;User-Agent&amp;quot; contains needed information to identify the installed office version - see above. The information matches the following pattern which is found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt;:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;PRODUCT&amp;gt; (${buildid}; ${_OS}; ${_ARCH}; BundledLanguages=${AllLanguages}) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
On platforms other than Windows the &amp;lt;UpdateURL&amp;gt; contains (at least since OOo 3.3) a query part. It is &amp;#039;&amp;#039;?pkgfmt=&amp;lt;pkgformat&amp;gt;&amp;#039;&amp;#039; which especially for Linux platforms identifies the package format of the office installation.&lt;br /&gt;
&lt;br /&gt;
It reveals that this information can be used to create the corresponding information for the request response.&lt;br /&gt;
&lt;br /&gt;
== information about processing the request response ==&lt;br /&gt;
&lt;br /&gt;
The response is expected to be a corresponding XML snippet.&lt;br /&gt;
As shown in the above examples, two types of XML snippets as responses are possible:&lt;br /&gt;
a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response and a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. The distinction between the two is made by its first element. If it is &amp;lt;feed&amp;gt; it is treated as a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response, otherwise as a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response is an XML snippet which is expected to have the format as the XML snippet in file [http://svn.apache.org/repos/asf/incubator/ooo/trunk/main/instsetoo_native/util/update.xml update.xml], found in our source repository.&lt;br /&gt;
&lt;br /&gt;
The following conditions must hold to perform further evaluation of the response:&lt;br /&gt;
# value of &amp;lt;inst:os&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_ARCH}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:arch&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_OS}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; is greater than the one of the installed office - &amp;#039;&amp;#039;${buildid}&amp;#039;&amp;#039;.&lt;br /&gt;
If these conditions hold, the following information is retrieved:&lt;br /&gt;
# values of attributes &amp;lt;src&amp;gt; and &amp;lt;type&amp;gt; of &amp;lt;inst:update&amp;gt;&lt;br /&gt;
#* if value of &amp;lt;type&amp;gt; equals &amp;quot;text/html&amp;quot;, the value of &amp;lt;src&amp;gt; is taken as an website from which the new version can be downloaded manually. Otherwise (also in case that attribute &amp;lt;type&amp;gt; is missing) the value of &amp;lt;src&amp;gt; is interpreted as a download link to the new version.&lt;br /&gt;
#* all &amp;lt;inst:update&amp;gt; elements are evaluated. The information of the first one is used - provide download of version or provide link to download website. The purpose of the other is not known.&lt;br /&gt;
# value of &amp;lt;inst:version&amp;gt; - will be shown in the corresponding dialog.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; - currently its purpose is not known.&lt;br /&gt;
If the first information - download website or download link - can be found in the XML snippet, the corresponding dialog will state that a new version is available. The user can then download it manually or can trigger an automatic download.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response is expected to conform to [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed] - as stated above in the example area.&lt;br /&gt;
Each content of the &amp;lt;content&amp;gt; element of an atom entry (&amp;lt;entry&amp;gt; element) whose &amp;lt;category&amp;gt; element has an attribute &amp;lt;term&amp;gt; whose value matches the &amp;lt;UpdateId&amp;gt; value found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the installed office is treated as &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. &lt;br /&gt;
&lt;br /&gt;
The first of these &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; responses from which a download website or a download link could be retrieved that matches the above given conditions is taken - the following ones are not processed. It will be shown to the user that a new version is available, and the user can trigger the download manually or automatically. One further information is taken from this atom entry - the content of the &amp;lt;summary&amp;gt; element. It is shown in the corresponding dialog.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
[[Category:Spec]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=260282</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=260282"/>
		<updated>2025-04-11T21:17:40Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build {{AOo}} from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10, Windows 11 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on [mailto:dev@openoffice.apache.org dev@openoffice.apache.org], if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.14-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.6.1-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; Cygwin 3.4.10 was the last major version supporting [https://cygwin.com/pipermail/cygwin-announce/2024-February/011524.html Windows 7 / 8].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=260163</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=260163"/>
		<updated>2024-03-19T13:46:07Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build {{AOo}} from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10, Windows 11 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on [mailto:dev@openoffice.apache.org dev@openoffice.apache.org], if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.14-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.5.1-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; Cygwin 3.4.10 was the last major version supporting [https://cygwin.com/pipermail/cygwin-announce/2024-February/011524.html Windows 7 / 8].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=260162</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=260162"/>
		<updated>2024-03-19T13:39:57Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build {{AOo}} from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10, Windows 11 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on [mailto:dev@openoffice.apache.org dev@openoffice.apache.org], if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.14-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.5.1-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; Cygwin 3.4.10 was the last version supporting Window 7 / 8 [https://cygwin.com/pipermail/cygwin-announce/2024-February/011524.html].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=260161</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=260161"/>
		<updated>2024-03-19T13:38:29Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Add note about Cygwin 3.4.x&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build {{AOo}} from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10, Windows 11 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on [mailto:dev@openoffice.apache.org dev@openoffice.apache.org], if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.14-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.5.1-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; Cygwin 3.4.10 was the last version supporting Window 7 [https://cygwin.com/pipermail/cygwin-announce/2024-February/011524.html].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=260158</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=260158"/>
		<updated>2024-03-12T20:29:42Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Cygwin now at 3.5.1&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build {{AOo}} from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10, Windows 11 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on [mailto:dev@openoffice.apache.org dev@openoffice.apache.org], if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br/&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;big&amp;gt;Note:&amp;lt;/big&amp;gt; As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.14-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.5.1-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=258596</id>
		<title>Update Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=258596"/>
		<updated>2023-12-25T01:12:17Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Available Update Feeds */ Added Update Feed for AOO 4.1.16&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Update Service for AOO/OOo is a service which provides via HTTP or HTTPS an Update Feed (or an Update Document) for installed AOO/OOo instances. This allows a requesting AOO/OOo instance to check if a new AOO version is available and to provide the result of this check to the user.&lt;br /&gt;
&lt;br /&gt;
Currently, the Update Service is implemented via static HTTP/HTTPS resources. No dynamic component is involved which processes the information given in the HTTP/HTTPS request of the AOO/OOo instance in order to generate a response.&lt;br /&gt;
&lt;br /&gt;
= Available Update Feeds =&lt;br /&gt;
&lt;br /&gt;
For the following AOO/OOo versions an Update Feed is made available.&lt;br /&gt;
The table contains the UpdateURL which an AOO/OOo instance of the specified version is requesting via HTTP/HTTPS and the resource in our svn repository which serves the HTTP/HTTPS resource behind the UpdateURL.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! AOO/OOo version&lt;br /&gt;
! UpdateURL&lt;br /&gt;
! Resource in repository&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2&lt;br /&gt;
| https://www.openoffice.org/projects/update34/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update34/ProductUpdateService/check.Update ooo-site/update34]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2.1&lt;br /&gt;
| https://www.openoffice.org/projects/update35/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update35/ProductUpdateService/check.Update ooo-site/update35]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.3&lt;br /&gt;
| https://www.openoffice.org/projects/update36/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update36/ProductUpdateService/check.Update ooo-site/update36]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.0&lt;br /&gt;
| https://www.openoffice.org/projects/update38/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update38/ProductUpdateService/check.Update ooo-site/update38]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.1&lt;br /&gt;
| https://www.openoffice.org/projects/update/aoo341/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update/aoo341/check.Update ooo-site/update/aoo341]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo40/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo40/check.Update updates-site/aoo40]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo401/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo401/check.Update updates-site/aoo401]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo410/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo410/check.Update updates-site/aoo410]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo411/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo411/check.Update updates-site/aoo411]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.2&lt;br /&gt;
| https://ooo-updates.apache.org/aoo412/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo412/check.Update updates-site/aoo412]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.3&lt;br /&gt;
| https://ooo-updates.apache.org/aoo413/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo413/check.Update updates-site/aoo413]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.4&lt;br /&gt;
| https://ooo-updates.apache.org/aoo414/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo414/check.Update updates-site/aoo414]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.5&lt;br /&gt;
| https://ooo-updates.apache.org/aoo415/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo415/check.Update updates-site/aoo415]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.6&lt;br /&gt;
| https://ooo-updates.apache.org/aoo416/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo416/check.Update updates-site/aoo416]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.7&lt;br /&gt;
| https://ooo-updates.apache.org/aoo417/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo417/check.Update updates-site/aoo417]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.8&lt;br /&gt;
| https://ooo-updates.apache.org/aoo418/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo418/check.Update updates-site/aoo418]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.9&lt;br /&gt;
| https://ooo-updates.apache.org/aoo419/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo419/check.Update updates-site/aoo419]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.10&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4110/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4110/check.Update updates-site/aoo4110]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.11&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4111/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4111/check.Update updates-site/aoo4111]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.12&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4112/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4112/check.Update updates-site/aoo4112]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.13&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4113/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4113/check.Update updates-site/aoo4113]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.14&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4114/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4114/check.Update updates-site/aoo4114]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.15&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4115/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4115/check.Update updates-site/aoo4115]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.16&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4116/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4116/check.Update updates-site/aoo4116]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.2.0&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo420/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo420/check.Update updates-site/aoo420]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Update Feeds for versions 3.2 to 3.4.1 are part of the user website content. Thus, a changed Update Feed needs to be published - as it is needed for changed usual user website content.&lt;br /&gt;
The Update Feeds for versions 4.0.0 to 4.2.0 only need to be changed as its publication is done automatically by certain services provided by ASF Infra.&lt;br /&gt;
&lt;br /&gt;
Update Feeds can be generated by using the bash script and corresponding meta data which is available at [https://svn.apache.org/repos/asf/openoffice/devtools/genUpdateFeed/ genUpdateFeed].&lt;br /&gt;
&lt;br /&gt;
= Update Notification Protocol =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Since version 2.0.3 OpenOffice.org users of builds providing an UpdateURL can manually check for available updates by invoking {{menu|Help|Check for Updates…}}. Starting with version 2.0.4 OpenOffice.org can perform this check automatically in a user configurable interval. &lt;br /&gt;
&lt;br /&gt;
This is an attempt to define a second version of the update notification protocol, which is better extendable, can also be used for [[Extensions | extensions]] and no longer uses HTTP post requests.&lt;br /&gt;
&lt;br /&gt;
{{Note|Note: Even though this document is a draft, it seems to be the actually implemented version as of OpenOffice.org 3.3. See http://s.apache.org/e2u for more information.}}&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&lt;br /&gt;
The update notification request is a https get request to an URL, which may contain the operating system and processor type the OpenOffice instance is compiled for either as part of the URL or as URL parameter.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://update.services.openoffice.org/ProductUpdateService/check.Update2?_OS=Solaris&amp;amp;_ARCH=SPARC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://www.example.org/MyProduct/MyOS/MyArch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== User-Agent field ==&lt;br /&gt;
&lt;br /&gt;
To reduce the amount of transfered data when asking for OpenOffice updates, the user agent field contains all information required to identify a specific build: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
User-Agent: OpenOffice.org/2.2 (680m212 (Build:9263); Solaris; SPARC; BundledLanguages=en-US_fr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Accept-Language field ==&lt;br /&gt;
&lt;br /&gt;
To be able to return language specific feeds, OpenOffice.org sets the Accept-Language http request header field to the UI language currently in use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Accept-Language: en-GB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Update documents and feeds ==&lt;br /&gt;
&lt;br /&gt;
The simplest possible reply is of the following form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
  &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
  &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
  &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
  &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/inst:description&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the type attribute of the update tag is &amp;quot;text/html&amp;quot;, OOo will pass the URL specified in the src attribute to a browser. If you specify a different type, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&amp;amp;os=solarissparcwjre&amp;amp;lang=en-US&amp;amp;version=2.4&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OOo will download the referenced file itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The other supported reply format, which also allows to include several components or several versions of a single component, is to embed the update document in an [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;OpenOffice.org Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;The OpenOffice.org Project&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;OpenOffice.org 2.2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9e&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;summary&amp;gt;Click here to go to the download page.&amp;lt;/summary&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;OpenOffice.org_2_en-US_fr&amp;quot; label=&amp;quot;OpenOffice.org 2.2 US english/french&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
        &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
        &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
        &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
        &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
    &amp;lt;/content&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; OpenOffice.org 3.x update information example&lt;br /&gt;
&lt;br /&gt;
The following content of a &amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; directly references update information for a German Windows OpenOffice.org 3.3.0:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang=&amp;quot;en-US&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Product Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
&amp;lt;author&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;The OpenOffice Project&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
        &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
&amp;lt;/author&amp;gt;&lt;br /&gt;
&amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
&amp;lt;entry&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Update available&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;!-- IMPORTANT: category MUST be equal with UpdateID in version.ini --&amp;gt;&lt;br /&gt;
        &amp;lt;category term=&amp;quot;OpenOffice.org_3_de&amp;quot; label=&amp;quot;OpenOffice.org update&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
        &amp;lt;summary&amp;gt;Text below download information (should be localized)&amp;lt;/summary&amp;gt;&lt;br /&gt;
        &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:id&amp;gt;OpenOffice.org_3_de&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:version&amp;gt;&amp;#039;new version information&amp;#039;&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- buildid must be higher as installed version --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:buildid&amp;gt;9580&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:os&amp;gt;Windows&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:arch&amp;gt;x86&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- app/octet-stream generates direct download as background-process --&amp;gt;&lt;br /&gt;
                        &amp;lt;!--&amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://download.services.openoffice.org/files/localized/de/3.3.0/OOo_3.3.0_Win_x86_install-wJRE_de.exe&amp;quot;/&amp;gt;--&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- text/html opens src-link in default browser --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://download.openoffice.org&amp;quot;/&amp;gt;&lt;br /&gt;
                &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
        &amp;lt;/content&amp;gt;&lt;br /&gt;
&amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;inst:id&amp;gt; string of the component to be updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extension developers might prefer to link to the update description file instead of embedding it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;My Extention Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;Extension Developer&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://example.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;update@example.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Version 2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://example.org/myextension/latest.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;MyExtension+version&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;MyExtension&amp;quot; label=&amp;quot;My Extension&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot; src=&amp;quot;http://example.org/myextension/latest/myextension.update.xml&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;identifier&amp;gt; value of the extension to be updated.&lt;br /&gt;
&lt;br /&gt;
= A glance on the code for the Apache OpenOffice 3.4 release =&lt;br /&gt;
&lt;br /&gt;
The following describes some deeper insight of the &amp;quot;Check for Updates...&amp;quot; code in the office. It should help us to re-activate a corresponding web service when Apache OpenOffice 3.4 has been released. (Do we need a real web service? Something to be discussed.)&lt;br /&gt;
&lt;br /&gt;
The information given here is based on the work of Regina (regina at apache dot org), Ariel (arielch at apache dot org) and Kay (kschenk at apache dot org) found in the corresponding mailing list thread on ooo-dev - see http://s.apache.org/e2u.&lt;br /&gt;
Having this information gave me (orw at apache dot org) the right pointers for deeper investigations.&lt;br /&gt;
&lt;br /&gt;
== summary information about request to &amp;lt;UpdateURL&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;UpdateURL&amp;gt;, found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the office installation is typically an HTTPS URL.&lt;br /&gt;
The office sends a GET request to this URL. Two header fields are included in this request which are already mentioned above.&lt;br /&gt;
These are &amp;quot;Accept-Language&amp;quot; and &amp;quot;User-Agent&amp;quot;.&lt;br /&gt;
* &amp;quot;Accept-Language&amp;quot; contains the language of current locale - found in configuration item &amp;quot;org.openoffice.Setup/L10N&amp;quot;, attribute &amp;quot;ooLocale&amp;quot;&lt;br /&gt;
* &amp;quot;User-Agent&amp;quot; contains needed information to identify the installed office version - see above. The information matches the following pattern which is found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt;:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;PRODUCT&amp;gt; (${buildid}; ${_OS}; ${_ARCH}; BundledLanguages=${AllLanguages}) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
On platforms other than Windows the &amp;lt;UpdateURL&amp;gt; contains (at least since OOo 3.3) a query part. It is &amp;#039;&amp;#039;?pkgfmt=&amp;lt;pkgformat&amp;gt;&amp;#039;&amp;#039; which especially for Linux platforms identifies the package format of the office installation.&lt;br /&gt;
&lt;br /&gt;
It reveals that this information can be used to create the corresponding information for the request response.&lt;br /&gt;
&lt;br /&gt;
== information about processing the request response ==&lt;br /&gt;
&lt;br /&gt;
The response is expected to be a corresponding XML snippet.&lt;br /&gt;
As shown in the above examples, two types of XML snippets as responses are possible:&lt;br /&gt;
a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response and a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. The distinction between the two is made by its first element. If it is &amp;lt;feed&amp;gt; it is treated as a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response, otherwise as a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response is an XML snippet which is expected to have the format as the XML snippet in file [http://svn.apache.org/repos/asf/incubator/ooo/trunk/main/instsetoo_native/util/update.xml update.xml], found in our source repository.&lt;br /&gt;
&lt;br /&gt;
The following conditions must hold to perform further evaluation of the response:&lt;br /&gt;
# value of &amp;lt;inst:os&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_ARCH}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:arch&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_OS}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; is greater than the one of the installed office - &amp;#039;&amp;#039;${buildid}&amp;#039;&amp;#039;.&lt;br /&gt;
If these conditions hold, the following information is retrieved:&lt;br /&gt;
# values of attributes &amp;lt;src&amp;gt; and &amp;lt;type&amp;gt; of &amp;lt;inst:update&amp;gt;&lt;br /&gt;
#* if value of &amp;lt;type&amp;gt; equals &amp;quot;text/html&amp;quot;, the value of &amp;lt;src&amp;gt; is taken as an website from which the new version can be downloaded manually. Otherwise (also in case that attribute &amp;lt;type&amp;gt; is missing) the value of &amp;lt;src&amp;gt; is interpreted as a download link to the new version.&lt;br /&gt;
#* all &amp;lt;inst:update&amp;gt; elements are evaluated. The information of the first one is used - provide download of version or provide link to download website. The purpose of the other is not known.&lt;br /&gt;
# value of &amp;lt;inst:version&amp;gt; - will be shown in the corresponding dialog.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; - currently its purpose is not known.&lt;br /&gt;
If the first information - download website or download link - can be found in the XML snippet, the corresponding dialog will state that a new version is available. The user can then download it manually or can trigger an automatic download.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response is expected to conform to [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed] - as stated above in the example area.&lt;br /&gt;
Each content of the &amp;lt;content&amp;gt; element of an atom entry (&amp;lt;entry&amp;gt; element) whose &amp;lt;category&amp;gt; element has an attribute &amp;lt;term&amp;gt; whose value matches the &amp;lt;UpdateId&amp;gt; value found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the installed office is treated as &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. &lt;br /&gt;
&lt;br /&gt;
The first of these &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; responses from which a download website or a download link could be retrieved that matches the above given conditions is taken - the following ones are not processed. It will be shown to the user that a new version is available, and the user can trigger the download manually or automatically. One further information is taken from this atom entry - the content of the &amp;lt;summary&amp;gt; element. It is shown in the corresponding dialog.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
[[Category:Spec]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Product_Release&amp;diff=258595</id>
		<title>Product Release</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Product_Release&amp;diff=258595"/>
		<updated>2023-12-22T22:26:51Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Apache OpenOffice */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Apache OpenOffice ==&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org was [https://incubator.apache.org/projects/openofficeorg.html transferred] to the [https://www.apache.org/foundation/ Apache Software Foundation] on June 1st, 2011 and it [https://blogs.apache.org/OOo/entry/openoffice_graduates_from_the_apache became an Apache Top-Level Project] on October 17, 2012.&lt;br /&gt;
&lt;br /&gt;
The development model of the popular productivity suite changed to benefit from the huge experience the Foundation has with managing open source projects.&lt;br /&gt;
&lt;br /&gt;
New releases of the product are accordingly named &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Apache OpenOffice 4.x ===&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/stop_the_lazy_season_start Apache OpenOffice 4.2.0] (2024, exact date TBD)&lt;br /&gt;
* [https://openoffice.apache.org/blog/announcing-apache-openoffice-4-1-15 Apache OpenOffice 4.1.15] (December 22nd, 2023)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-110 Apache OpenOffice 4.1.14] (February 27th, 2023)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-19 Apache OpenOffice 4.1.13] (July 22nd, 2022)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-18 Apache OpenOffice 4.1.12] (May 4th, 2022)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-17 Apache OpenOffice 4.1.11] (October 6th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-16 Apache OpenOffice 4.1.10] (May 4th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-15 Apache OpenOffice 4.1.9] (February 7th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-14 Apache OpenOffice 4.1.8] (November 10th, 2020)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-13 Apache OpenOffice 4.1.7] (September 21st, 2019)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-12 Apache OpenOffice 4.1.6] (November 18th, 2018)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-11 Apache OpenOffice 4.1.5] (December 30th, 2017)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-1 Apache OpenOffice 4.1.4] (October 19th, 2017)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_12 Apache OpenOffice 4.1.3] (October 12th, 2016)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_11 Apache OpenOffice 4.1.2] (October 28th, 2015)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_1 Apache OpenOffice 4.1.1] (August 21st, 2014)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/the_apache_openoffice_project_announce Apache OpenOffice 4.1.0] (April 29th, 2014)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_0 Apache OpenOffice 4.0.1] (October 1st, 2013)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/a_short_celebration_and_then Apache OpenOffice 4.0.0] (July 23rd, 2013)&lt;br /&gt;
&lt;br /&gt;
=== Apache OpenOffice 3.4 ===&lt;br /&gt;
&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_3_41 Apache OpenOffice 3.4.1] (August 23rd, 2012)&lt;br /&gt;
** additional languages Danish, Norwegian, Swedish, Korean, Polish, Basque, Asturian and Scottish Gaelic (January 30th, 2013)&lt;br /&gt;
* [https://www.openoffice.org/news/aoo34.html Apache OpenOffice 3.4.0] (May 8th, 2012)&lt;br /&gt;
&lt;br /&gt;
== Older Product Releases of OpenOffice.org ==&lt;br /&gt;
&lt;br /&gt;
For release information please see the technical [https://development.openoffice.org/releases/index.html Release Notes] and a detailed [https://www.openoffice.org/dev_docs/features/index.html feature overview].&lt;br /&gt;
&lt;br /&gt;
For a list of uploaded Developer Snapshots and Release Candidates/Releases see the [[Product_Release/builds_uploaded | table of uploaded builds]]. The most recent builds can be downloaded on the [https://download.openoffice.org download webpage].&lt;br /&gt;
&lt;br /&gt;
For guidance on announcing new releases see [[PolicyMirrorLinking]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Released OpenOffice.org 3.x.x ===&lt;br /&gt;
&lt;br /&gt;
* [[OOoRelease33|OpenOffice.org 3.3.0]] (January 26th, 2011)&lt;br /&gt;
* [[OOoRelease321|OpenOffice.org 3.2.1]] (June 4th, 2010)&lt;br /&gt;
* [[OOoRelease32|OpenOffice.org 3.2.0]] (February 11th, 2010)&lt;br /&gt;
* [[OOoRelease311|OpenOffice.org 3.1.1]] (August 31st, 2009)&lt;br /&gt;
* [[OOoRelease31|OpenOffice.org 3.1.0]] (May 7th, 2009)&lt;br /&gt;
* [[OOoRelease301|OpenOffice.org 3.0.1]] (January 27th, 2009)&lt;br /&gt;
* [[OOoRelease30|OpenOffice.org 3.0.0]] (October 13th, 2008)&lt;br /&gt;
&lt;br /&gt;
=== Released OpenOffice.org 2.x.x ===&lt;br /&gt;
&lt;br /&gt;
* [[OOoRelease243|OpenOffice.org 2.4.3]] (September 04th, 2009)&lt;br /&gt;
* [[OOoRelease242|OpenOffice.org 2.4.2]] (October 28th, 2008)&lt;br /&gt;
* [[OOoRelease241|OpenOffice.org 2.4.1]] (June 10th, 2008)&lt;br /&gt;
* [[OOoRelease24|OpenOffice.org 2.4]] (March 27th, 2008)&lt;br /&gt;
* [[OOoRelease231|OpenOffice.org 2.3.1]] (December 4th, 2007)&lt;br /&gt;
* [[OOoRelease23|OpenOffice.org 2.3]] (September 17th, 2007)&lt;br /&gt;
* [[OOoRelease221|OpenOffice.org 2.2.1]] (June 12th, 2007)&lt;br /&gt;
* [[OOoRelease22|OpenOffice.org 2.2]] (March 29th, 2007)&lt;br /&gt;
* [[OOoRelease205|OpenOffice.org 2.1]] (December 12th, 2006)&lt;br /&gt;
* [[OOoRelease204|OpenOffice.org 2.0.4]] (October 13th, 2006)&lt;br /&gt;
* [[OOoRelease203|OpenOffice.org 2.0.3]] (June 29th, 2006)&lt;br /&gt;
* [[OOoRelease202|OpenOffice.org 2.0.2]] (March 8th, 2006)&lt;br /&gt;
* [[OOoRelease201|OpenOffice.org 2.0.1]] (December 21st, 2005)&lt;br /&gt;
* OpenOffice.org 2.0.0 (October 21st, 2005)&lt;br /&gt;
&lt;br /&gt;
=== OpenOffice.org 1.1 ===&lt;br /&gt;
&lt;br /&gt;
* OpenOffice.org 1.1.5 (September 9th, 2005)&lt;br /&gt;
* OpenOffice.org 1.1.4 (December 22th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.3 (October 4th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.2 (June 18th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.1 &lt;br /&gt;
* OpenOffice.org 1.1.0 (October 1st, 2003)&lt;br /&gt;
&lt;br /&gt;
=== OpenOffice.org 1.0 ===&lt;br /&gt;
&lt;br /&gt;
* OpenOffice.org 1.0.3 (April 10th, 2003)&lt;br /&gt;
* OpenOffice.org 1.0.2 (January 20th, 2003) (tag &amp;quot;OpenOffice_1_0_2&amp;quot;)&lt;br /&gt;
* OpenOffice.org 1.0.1 (July 17th, 2002) (tag &amp;quot;OpenOffice_1_0_1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Older releases can be retrieved via the [ftp://archive.services.openoffice.org/pub/openoffice-archive/stable Archive Server].&lt;br /&gt;
&lt;br /&gt;
[[Category:Releases]]&lt;br /&gt;
[[Category:Quality Assurance]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Product_Release&amp;diff=258594</id>
		<title>Product Release</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Product_Release&amp;diff=258594"/>
		<updated>2023-12-22T22:24:59Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Apache OpenOffice 4.x */ AOO 4.1.15 is released&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Apache OpenOffice ==&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org was [https://incubator.apache.org/projects/openofficeorg.html transferred] to the [https://www.apache.org/foundation/ Apache Software Foundation] on June 1st, 2011 and it [https://blogs.apache.org/OOo/entry/openoffice_graduates_from_the_apache became an Apache Top-Level Project] on October 17, 2012.&lt;br /&gt;
&lt;br /&gt;
The development model of the popular productivity suite changed to benefit from the huge experience the Foundation has with managing open source projects.&lt;br /&gt;
&lt;br /&gt;
New releases of the product are accordingly named &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Apache OpenOffice 4.x ===&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/stop_the_lazy_season_start Apache OpenOffice 4.2.0] (2024, exact date TBD)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-111 Apache OpenOffice 4.1.15] (December 22nd, 2023)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-110 Apache OpenOffice 4.1.14] (February 27th, 2023)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-19 Apache OpenOffice 4.1.13] (July 22nd, 2022)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-18 Apache OpenOffice 4.1.12] (May 4th, 2022)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-17 Apache OpenOffice 4.1.11] (October 6th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-16 Apache OpenOffice 4.1.10] (May 4th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-15 Apache OpenOffice 4.1.9] (February 7th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-14 Apache OpenOffice 4.1.8] (November 10th, 2020)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-13 Apache OpenOffice 4.1.7] (September 21st, 2019)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-12 Apache OpenOffice 4.1.6] (November 18th, 2018)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-11 Apache OpenOffice 4.1.5] (December 30th, 2017)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-1 Apache OpenOffice 4.1.4] (October 19th, 2017)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_12 Apache OpenOffice 4.1.3] (October 12th, 2016)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_11 Apache OpenOffice 4.1.2] (October 28th, 2015)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_1 Apache OpenOffice 4.1.1] (August 21st, 2014)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/the_apache_openoffice_project_announce Apache OpenOffice 4.1.0] (April 29th, 2014)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_0 Apache OpenOffice 4.0.1] (October 1st, 2013)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/a_short_celebration_and_then Apache OpenOffice 4.0.0] (July 23rd, 2013)&lt;br /&gt;
&lt;br /&gt;
=== Apache OpenOffice 3.4 ===&lt;br /&gt;
&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_3_41 Apache OpenOffice 3.4.1] (August 23rd, 2012)&lt;br /&gt;
** additional languages Danish, Norwegian, Swedish, Korean, Polish, Basque, Asturian and Scottish Gaelic (January 30th, 2013)&lt;br /&gt;
* [https://www.openoffice.org/news/aoo34.html Apache OpenOffice 3.4.0] (May 8th, 2012)&lt;br /&gt;
&lt;br /&gt;
== Older Product Releases of OpenOffice.org ==&lt;br /&gt;
&lt;br /&gt;
For release information please see the technical [https://development.openoffice.org/releases/index.html Release Notes] and a detailed [https://www.openoffice.org/dev_docs/features/index.html feature overview].&lt;br /&gt;
&lt;br /&gt;
For a list of uploaded Developer Snapshots and Release Candidates/Releases see the [[Product_Release/builds_uploaded | table of uploaded builds]]. The most recent builds can be downloaded on the [https://download.openoffice.org download webpage].&lt;br /&gt;
&lt;br /&gt;
For guidance on announcing new releases see [[PolicyMirrorLinking]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Released OpenOffice.org 3.x.x ===&lt;br /&gt;
&lt;br /&gt;
* [[OOoRelease33|OpenOffice.org 3.3.0]] (January 26th, 2011)&lt;br /&gt;
* [[OOoRelease321|OpenOffice.org 3.2.1]] (June 4th, 2010)&lt;br /&gt;
* [[OOoRelease32|OpenOffice.org 3.2.0]] (February 11th, 2010)&lt;br /&gt;
* [[OOoRelease311|OpenOffice.org 3.1.1]] (August 31st, 2009)&lt;br /&gt;
* [[OOoRelease31|OpenOffice.org 3.1.0]] (May 7th, 2009)&lt;br /&gt;
* [[OOoRelease301|OpenOffice.org 3.0.1]] (January 27th, 2009)&lt;br /&gt;
* [[OOoRelease30|OpenOffice.org 3.0.0]] (October 13th, 2008)&lt;br /&gt;
&lt;br /&gt;
=== Released OpenOffice.org 2.x.x ===&lt;br /&gt;
&lt;br /&gt;
* [[OOoRelease243|OpenOffice.org 2.4.3]] (September 04th, 2009)&lt;br /&gt;
* [[OOoRelease242|OpenOffice.org 2.4.2]] (October 28th, 2008)&lt;br /&gt;
* [[OOoRelease241|OpenOffice.org 2.4.1]] (June 10th, 2008)&lt;br /&gt;
* [[OOoRelease24|OpenOffice.org 2.4]] (March 27th, 2008)&lt;br /&gt;
* [[OOoRelease231|OpenOffice.org 2.3.1]] (December 4th, 2007)&lt;br /&gt;
* [[OOoRelease23|OpenOffice.org 2.3]] (September 17th, 2007)&lt;br /&gt;
* [[OOoRelease221|OpenOffice.org 2.2.1]] (June 12th, 2007)&lt;br /&gt;
* [[OOoRelease22|OpenOffice.org 2.2]] (March 29th, 2007)&lt;br /&gt;
* [[OOoRelease205|OpenOffice.org 2.1]] (December 12th, 2006)&lt;br /&gt;
* [[OOoRelease204|OpenOffice.org 2.0.4]] (October 13th, 2006)&lt;br /&gt;
* [[OOoRelease203|OpenOffice.org 2.0.3]] (June 29th, 2006)&lt;br /&gt;
* [[OOoRelease202|OpenOffice.org 2.0.2]] (March 8th, 2006)&lt;br /&gt;
* [[OOoRelease201|OpenOffice.org 2.0.1]] (December 21st, 2005)&lt;br /&gt;
* OpenOffice.org 2.0.0 (October 21st, 2005)&lt;br /&gt;
&lt;br /&gt;
=== OpenOffice.org 1.1 ===&lt;br /&gt;
&lt;br /&gt;
* OpenOffice.org 1.1.5 (September 9th, 2005)&lt;br /&gt;
* OpenOffice.org 1.1.4 (December 22th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.3 (October 4th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.2 (June 18th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.1 &lt;br /&gt;
* OpenOffice.org 1.1.0 (October 1st, 2003)&lt;br /&gt;
&lt;br /&gt;
=== OpenOffice.org 1.0 ===&lt;br /&gt;
&lt;br /&gt;
* OpenOffice.org 1.0.3 (April 10th, 2003)&lt;br /&gt;
* OpenOffice.org 1.0.2 (January 20th, 2003) (tag &amp;quot;OpenOffice_1_0_2&amp;quot;)&lt;br /&gt;
* OpenOffice.org 1.0.1 (July 17th, 2002) (tag &amp;quot;OpenOffice_1_0_1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Older releases can be retrieved via the [ftp://archive.services.openoffice.org/pub/openoffice-archive/stable Archive Server].&lt;br /&gt;
&lt;br /&gt;
[[Category:Releases]]&lt;br /&gt;
[[Category:Quality Assurance]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=258593</id>
		<title>Update Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=258593"/>
		<updated>2023-12-22T22:23:24Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Available Update Feeds */ AOO 4.1.15 is released&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Update Service for AOO/OOo is a service which provides via HTTP or HTTPS an Update Feed (or an Update Document) for installed AOO/OOo instances. This allows a requesting AOO/OOo instance to check if a new AOO version is available and to provide the result of this check to the user.&lt;br /&gt;
&lt;br /&gt;
Currently, the Update Service is implemented via static HTTP/HTTPS resources. No dynamic component is involved which processes the information given in the HTTP/HTTPS request of the AOO/OOo instance in order to generate a response.&lt;br /&gt;
&lt;br /&gt;
= Available Update Feeds =&lt;br /&gt;
&lt;br /&gt;
For the following AOO/OOo versions an Update Feed is made available.&lt;br /&gt;
The table contains the UpdateURL which an AOO/OOo instance of the specified version is requesting via HTTP/HTTPS and the resource in our svn repository which serves the HTTP/HTTPS resource behind the UpdateURL.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! AOO/OOo version&lt;br /&gt;
! UpdateURL&lt;br /&gt;
! Resource in repository&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2&lt;br /&gt;
| https://www.openoffice.org/projects/update34/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update34/ProductUpdateService/check.Update ooo-site/update34]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2.1&lt;br /&gt;
| https://www.openoffice.org/projects/update35/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update35/ProductUpdateService/check.Update ooo-site/update35]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.3&lt;br /&gt;
| https://www.openoffice.org/projects/update36/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update36/ProductUpdateService/check.Update ooo-site/update36]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.0&lt;br /&gt;
| https://www.openoffice.org/projects/update38/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update38/ProductUpdateService/check.Update ooo-site/update38]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.1&lt;br /&gt;
| https://www.openoffice.org/projects/update/aoo341/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update/aoo341/check.Update ooo-site/update/aoo341]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo40/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo40/check.Update updates-site/aoo40]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo401/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo401/check.Update updates-site/aoo401]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo410/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo410/check.Update updates-site/aoo410]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo411/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo411/check.Update updates-site/aoo411]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.2&lt;br /&gt;
| https://ooo-updates.apache.org/aoo412/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo412/check.Update updates-site/aoo412]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.3&lt;br /&gt;
| https://ooo-updates.apache.org/aoo413/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo413/check.Update updates-site/aoo413]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.4&lt;br /&gt;
| https://ooo-updates.apache.org/aoo414/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo414/check.Update updates-site/aoo414]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.5&lt;br /&gt;
| https://ooo-updates.apache.org/aoo415/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo415/check.Update updates-site/aoo415]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.6&lt;br /&gt;
| https://ooo-updates.apache.org/aoo416/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo416/check.Update updates-site/aoo416]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.7&lt;br /&gt;
| https://ooo-updates.apache.org/aoo417/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo417/check.Update updates-site/aoo417]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.8&lt;br /&gt;
| https://ooo-updates.apache.org/aoo418/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo418/check.Update updates-site/aoo418]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.9&lt;br /&gt;
| https://ooo-updates.apache.org/aoo419/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo419/check.Update updates-site/aoo419]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.10&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4110/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4110/check.Update updates-site/aoo4110]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.11&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4111/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4111/check.Update updates-site/aoo4111]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.12&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4112/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4112/check.Update updates-site/aoo4112]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.13&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4113/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4113/check.Update updates-site/aoo4113]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.14&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4114/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4114/check.Update updates-site/aoo4114]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.15&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4115/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4115/check.Update updates-site/aoo4115]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.2.0&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo420/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo420/check.Update updates-site/aoo420]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Update Feeds for versions 3.2 to 3.4.1 are part of the user website content. Thus, a changed Update Feed needs to be published - as it is needed for changed usual user website content.&lt;br /&gt;
The Update Feeds for versions 4.0.0 to 4.2.0 only need to be changed as its publication is done automatically by certain services provided by ASF Infra.&lt;br /&gt;
&lt;br /&gt;
Update Feeds can be generated by using the bash script and corresponding meta data which is available at [https://svn.apache.org/repos/asf/openoffice/devtools/genUpdateFeed/ genUpdateFeed].&lt;br /&gt;
&lt;br /&gt;
= Update Notification Protocol =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Since version 2.0.3 OpenOffice.org users of builds providing an UpdateURL can manually check for available updates by invoking {{menu|Help|Check for Updates…}}. Starting with version 2.0.4 OpenOffice.org can perform this check automatically in a user configurable interval. &lt;br /&gt;
&lt;br /&gt;
This is an attempt to define a second version of the update notification protocol, which is better extendable, can also be used for [[Extensions | extensions]] and no longer uses HTTP post requests.&lt;br /&gt;
&lt;br /&gt;
{{Note|Note: Even though this document is a draft, it seems to be the actually implemented version as of OpenOffice.org 3.3. See http://s.apache.org/e2u for more information.}}&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&lt;br /&gt;
The update notification request is a https get request to an URL, which may contain the operating system and processor type the OpenOffice instance is compiled for either as part of the URL or as URL parameter.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://update.services.openoffice.org/ProductUpdateService/check.Update2?_OS=Solaris&amp;amp;_ARCH=SPARC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://www.example.org/MyProduct/MyOS/MyArch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== User-Agent field ==&lt;br /&gt;
&lt;br /&gt;
To reduce the amount of transfered data when asking for OpenOffice updates, the user agent field contains all information required to identify a specific build: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
User-Agent: OpenOffice.org/2.2 (680m212 (Build:9263); Solaris; SPARC; BundledLanguages=en-US_fr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Accept-Language field ==&lt;br /&gt;
&lt;br /&gt;
To be able to return language specific feeds, OpenOffice.org sets the Accept-Language http request header field to the UI language currently in use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Accept-Language: en-GB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Update documents and feeds ==&lt;br /&gt;
&lt;br /&gt;
The simplest possible reply is of the following form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
  &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
  &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
  &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
  &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/inst:description&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the type attribute of the update tag is &amp;quot;text/html&amp;quot;, OOo will pass the URL specified in the src attribute to a browser. If you specify a different type, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&amp;amp;os=solarissparcwjre&amp;amp;lang=en-US&amp;amp;version=2.4&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OOo will download the referenced file itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The other supported reply format, which also allows to include several components or several versions of a single component, is to embed the update document in an [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;OpenOffice.org Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;The OpenOffice.org Project&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;OpenOffice.org 2.2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9e&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;summary&amp;gt;Click here to go to the download page.&amp;lt;/summary&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;OpenOffice.org_2_en-US_fr&amp;quot; label=&amp;quot;OpenOffice.org 2.2 US english/french&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
        &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
        &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
        &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
        &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
    &amp;lt;/content&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; OpenOffice.org 3.x update information example&lt;br /&gt;
&lt;br /&gt;
The following content of a &amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; directly references update information for a German Windows OpenOffice.org 3.3.0:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang=&amp;quot;en-US&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Product Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
&amp;lt;author&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;The OpenOffice Project&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
        &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
&amp;lt;/author&amp;gt;&lt;br /&gt;
&amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
&amp;lt;entry&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Update available&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;!-- IMPORTANT: category MUST be equal with UpdateID in version.ini --&amp;gt;&lt;br /&gt;
        &amp;lt;category term=&amp;quot;OpenOffice.org_3_de&amp;quot; label=&amp;quot;OpenOffice.org update&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
        &amp;lt;summary&amp;gt;Text below download information (should be localized)&amp;lt;/summary&amp;gt;&lt;br /&gt;
        &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:id&amp;gt;OpenOffice.org_3_de&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:version&amp;gt;&amp;#039;new version information&amp;#039;&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- buildid must be higher as installed version --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:buildid&amp;gt;9580&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:os&amp;gt;Windows&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:arch&amp;gt;x86&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- app/octet-stream generates direct download as background-process --&amp;gt;&lt;br /&gt;
                        &amp;lt;!--&amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://download.services.openoffice.org/files/localized/de/3.3.0/OOo_3.3.0_Win_x86_install-wJRE_de.exe&amp;quot;/&amp;gt;--&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- text/html opens src-link in default browser --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://download.openoffice.org&amp;quot;/&amp;gt;&lt;br /&gt;
                &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
        &amp;lt;/content&amp;gt;&lt;br /&gt;
&amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;inst:id&amp;gt; string of the component to be updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extension developers might prefer to link to the update description file instead of embedding it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;My Extention Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;Extension Developer&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://example.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;update@example.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Version 2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://example.org/myextension/latest.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;MyExtension+version&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;MyExtension&amp;quot; label=&amp;quot;My Extension&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot; src=&amp;quot;http://example.org/myextension/latest/myextension.update.xml&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;identifier&amp;gt; value of the extension to be updated.&lt;br /&gt;
&lt;br /&gt;
= A glance on the code for the Apache OpenOffice 3.4 release =&lt;br /&gt;
&lt;br /&gt;
The following describes some deeper insight of the &amp;quot;Check for Updates...&amp;quot; code in the office. It should help us to re-activate a corresponding web service when Apache OpenOffice 3.4 has been released. (Do we need a real web service? Something to be discussed.)&lt;br /&gt;
&lt;br /&gt;
The information given here is based on the work of Regina (regina at apache dot org), Ariel (arielch at apache dot org) and Kay (kschenk at apache dot org) found in the corresponding mailing list thread on ooo-dev - see http://s.apache.org/e2u.&lt;br /&gt;
Having this information gave me (orw at apache dot org) the right pointers for deeper investigations.&lt;br /&gt;
&lt;br /&gt;
== summary information about request to &amp;lt;UpdateURL&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;UpdateURL&amp;gt;, found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the office installation is typically an HTTPS URL.&lt;br /&gt;
The office sends a GET request to this URL. Two header fields are included in this request which are already mentioned above.&lt;br /&gt;
These are &amp;quot;Accept-Language&amp;quot; and &amp;quot;User-Agent&amp;quot;.&lt;br /&gt;
* &amp;quot;Accept-Language&amp;quot; contains the language of current locale - found in configuration item &amp;quot;org.openoffice.Setup/L10N&amp;quot;, attribute &amp;quot;ooLocale&amp;quot;&lt;br /&gt;
* &amp;quot;User-Agent&amp;quot; contains needed information to identify the installed office version - see above. The information matches the following pattern which is found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt;:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;PRODUCT&amp;gt; (${buildid}; ${_OS}; ${_ARCH}; BundledLanguages=${AllLanguages}) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
On platforms other than Windows the &amp;lt;UpdateURL&amp;gt; contains (at least since OOo 3.3) a query part. It is &amp;#039;&amp;#039;?pkgfmt=&amp;lt;pkgformat&amp;gt;&amp;#039;&amp;#039; which especially for Linux platforms identifies the package format of the office installation.&lt;br /&gt;
&lt;br /&gt;
It reveals that this information can be used to create the corresponding information for the request response.&lt;br /&gt;
&lt;br /&gt;
== information about processing the request response ==&lt;br /&gt;
&lt;br /&gt;
The response is expected to be a corresponding XML snippet.&lt;br /&gt;
As shown in the above examples, two types of XML snippets as responses are possible:&lt;br /&gt;
a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response and a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. The distinction between the two is made by its first element. If it is &amp;lt;feed&amp;gt; it is treated as a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response, otherwise as a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response is an XML snippet which is expected to have the format as the XML snippet in file [http://svn.apache.org/repos/asf/incubator/ooo/trunk/main/instsetoo_native/util/update.xml update.xml], found in our source repository.&lt;br /&gt;
&lt;br /&gt;
The following conditions must hold to perform further evaluation of the response:&lt;br /&gt;
# value of &amp;lt;inst:os&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_ARCH}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:arch&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_OS}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; is greater than the one of the installed office - &amp;#039;&amp;#039;${buildid}&amp;#039;&amp;#039;.&lt;br /&gt;
If these conditions hold, the following information is retrieved:&lt;br /&gt;
# values of attributes &amp;lt;src&amp;gt; and &amp;lt;type&amp;gt; of &amp;lt;inst:update&amp;gt;&lt;br /&gt;
#* if value of &amp;lt;type&amp;gt; equals &amp;quot;text/html&amp;quot;, the value of &amp;lt;src&amp;gt; is taken as an website from which the new version can be downloaded manually. Otherwise (also in case that attribute &amp;lt;type&amp;gt; is missing) the value of &amp;lt;src&amp;gt; is interpreted as a download link to the new version.&lt;br /&gt;
#* all &amp;lt;inst:update&amp;gt; elements are evaluated. The information of the first one is used - provide download of version or provide link to download website. The purpose of the other is not known.&lt;br /&gt;
# value of &amp;lt;inst:version&amp;gt; - will be shown in the corresponding dialog.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; - currently its purpose is not known.&lt;br /&gt;
If the first information - download website or download link - can be found in the XML snippet, the corresponding dialog will state that a new version is available. The user can then download it manually or can trigger an automatic download.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response is expected to conform to [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed] - as stated above in the example area.&lt;br /&gt;
Each content of the &amp;lt;content&amp;gt; element of an atom entry (&amp;lt;entry&amp;gt; element) whose &amp;lt;category&amp;gt; element has an attribute &amp;lt;term&amp;gt; whose value matches the &amp;lt;UpdateId&amp;gt; value found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the installed office is treated as &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. &lt;br /&gt;
&lt;br /&gt;
The first of these &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; responses from which a download website or a download link could be retrieved that matches the above given conditions is taken - the following ones are not processed. It will be shown to the user that a new version is available, and the user can trigger the download manually or automatically. One further information is taken from this atom entry - the content of the &amp;lt;summary&amp;gt; element. It is shown in the corresponding dialog.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
[[Category:Spec]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=258586</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=258586"/>
		<updated>2023-12-01T23:39:10Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Beter use 3.4.8 for the moment&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build {{AOo}} from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10, Windows 11 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.14-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.8-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=High_Contrast_Icons&amp;diff=258585</id>
		<title>High Contrast Icons</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=High_Contrast_Icons&amp;diff=258585"/>
		<updated>2023-11-30T17:54:24Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* How to see high contrast icons in the UI? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== How to see high contrast icons in the UI? ===&lt;br /&gt;
&lt;br /&gt;
==== Windows: ====&lt;br /&gt;
&lt;br /&gt;
* Switch to the [[accessibility]] mode (press shift key five times). The icon theme will change automatically to High Contrast set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Linux: ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Solaris: ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Mac OS X: ====&lt;br /&gt;
&lt;br /&gt;
* Switch to the [[accessibility]] mode (press &amp;quot;control&amp;quot;+&amp;quot;alt&amp;quot;+&amp;quot;apple&amp;quot;+&amp;quot;8&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
==== All Platforms: ====&lt;br /&gt;
&lt;br /&gt;
* Open the menu &amp;quot;Tools&amp;quot; -&amp;gt; &amp;quot;Options&amp;quot; -&amp;gt; &amp;quot;View&amp;quot;&lt;br /&gt;
* Choose &amp;quot;High Contrast&amp;quot; from the drop down menu of the [[Icon Themes]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Examples of High Contrast Icons ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example of small size high contrast icons:&lt;br /&gt;
&lt;br /&gt;
[[Image:small-HC.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example of large size high contrast icons:&lt;br /&gt;
&lt;br /&gt;
[[Image:large-HC.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Please note:&amp;#039;&amp;#039;&amp;#039; These High Contrast Icons are optimized for dark background colors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Accessibility]]&lt;br /&gt;
[[Category:Icons]]&lt;br /&gt;
[[Category:Visual Design]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Evolution_of_OpenOffice.org_Icons&amp;diff=258584</id>
		<title>Evolution of OpenOffice.org Icons</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Evolution_of_OpenOffice.org_Icons&amp;diff=258584"/>
		<updated>2023-11-30T17:49:00Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Evolution of toolbar icons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Evolution of toolbar icons ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:save_OOo1.png]]        [[Image:save_OOo2.png]]        [[Image:save_OOo3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some examples of [https://www.openoffice.org/ui/VisualDesign/OOo_icon_evolution.html most popular] toolbar icons.&lt;br /&gt;
&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;
=== Evolution of mime type icons ===&lt;br /&gt;
&lt;br /&gt;
The evolution of OpenOffife.org mime type icons&lt;br /&gt;
&lt;br /&gt;
[[Image:OOo_MimeType_History.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Overview of all [http://ui.openoffice.org/VisualDesign/OOo30MimeType.html OpenOffice.org 3.0 mime type icons]&lt;br /&gt;
&lt;br /&gt;
Overview of all [http://ui.openoffice.org/VisualDesign/OOo20MimeType.html OpenOffice.org 2.0 mime type icons]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Visual Design]]&lt;br /&gt;
[[Category:Icons]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=258580</id>
		<title>Update Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=258580"/>
		<updated>2023-11-25T15:32:03Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Available Update Feeds */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Update Service for AOO/OOo is a service which provides via HTTP or HTTPS an Update Feed (or an Update Document) for installed AOO/OOo instances. This allows a requesting AOO/OOo instance to check if a new AOO version is available and to provide the result of this check to the user.&lt;br /&gt;
&lt;br /&gt;
Currently, the Update Service is implemented via static HTTP/HTTPS resources. No dynamic component is involved which processes the information given in the HTTP/HTTPS request of the AOO/OOo instance in order to generate a response.&lt;br /&gt;
&lt;br /&gt;
= Available Update Feeds =&lt;br /&gt;
&lt;br /&gt;
For the following AOO/OOo versions an Update Feed is made available.&lt;br /&gt;
The table contains the UpdateURL which an AOO/OOo instance of the specified version is requesting via HTTP/HTTPS and the resource in our svn repository which serves the HTTP/HTTPS resource behind the UpdateURL.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! AOO/OOo version&lt;br /&gt;
! UpdateURL&lt;br /&gt;
! Resource in repository&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2&lt;br /&gt;
| https://www.openoffice.org/projects/update34/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update34/ProductUpdateService/check.Update ooo-site/update34]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2.1&lt;br /&gt;
| https://www.openoffice.org/projects/update35/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update35/ProductUpdateService/check.Update ooo-site/update35]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.3&lt;br /&gt;
| https://www.openoffice.org/projects/update36/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update36/ProductUpdateService/check.Update ooo-site/update36]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.0&lt;br /&gt;
| https://www.openoffice.org/projects/update38/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update38/ProductUpdateService/check.Update ooo-site/update38]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.1&lt;br /&gt;
| https://www.openoffice.org/projects/update/aoo341/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update/aoo341/check.Update ooo-site/update/aoo341]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo40/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo40/check.Update updates-site/aoo40]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo401/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo401/check.Update updates-site/aoo401]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo410/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo410/check.Update updates-site/aoo410]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo411/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo411/check.Update updates-site/aoo411]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.2&lt;br /&gt;
| https://ooo-updates.apache.org/aoo412/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo412/check.Update updates-site/aoo412]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.3&lt;br /&gt;
| https://ooo-updates.apache.org/aoo413/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo413/check.Update updates-site/aoo413]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.4&lt;br /&gt;
| https://ooo-updates.apache.org/aoo414/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo414/check.Update updates-site/aoo414]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.5&lt;br /&gt;
| https://ooo-updates.apache.org/aoo415/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo415/check.Update updates-site/aoo415]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.6&lt;br /&gt;
| https://ooo-updates.apache.org/aoo416/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo416/check.Update updates-site/aoo416]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.7&lt;br /&gt;
| https://ooo-updates.apache.org/aoo417/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo417/check.Update updates-site/aoo417]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.8&lt;br /&gt;
| https://ooo-updates.apache.org/aoo418/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo418/check.Update updates-site/aoo418]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.9&lt;br /&gt;
| https://ooo-updates.apache.org/aoo419/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo419/check.Update updates-site/aoo419]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.10&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4110/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4110/check.Update updates-site/aoo4110]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.11&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4111/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4111/check.Update updates-site/aoo4111]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.12&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4112/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4112/check.Update updates-site/aoo4112]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.13&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4113/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4113/check.Update updates-site/aoo4113]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.14&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4114/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4114/check.Update updates-site/aoo4114]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.15&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4115/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4115/check.Update updates-site/aoo4115]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.2.0&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo420/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo420/check.Update updates-site/aoo420]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Update Feeds for versions 3.2 to 3.4.1 are part of the user website content. Thus, a changed Update Feed needs to be published - as it is needed for changed usual user website content.&lt;br /&gt;
The Update Feeds for versions 4.0.0 to 4.2.0 only need to be changed as its publication is done automatically by certain services provided by ASF Infra.&lt;br /&gt;
&lt;br /&gt;
Update Feeds can be generated by using the bash script and corresponding meta data which is available at [https://svn.apache.org/repos/asf/openoffice/devtools/genUpdateFeed/ genUpdateFeed].&lt;br /&gt;
&lt;br /&gt;
= Update Notification Protocol =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Since version 2.0.3 OpenOffice.org users of builds providing an UpdateURL can manually check for available updates by invoking {{menu|Help|Check for Updates…}}. Starting with version 2.0.4 OpenOffice.org can perform this check automatically in a user configurable interval. &lt;br /&gt;
&lt;br /&gt;
This is an attempt to define a second version of the update notification protocol, which is better extendable, can also be used for [[Extensions | extensions]] and no longer uses HTTP post requests.&lt;br /&gt;
&lt;br /&gt;
{{Note|Note: Even though this document is a draft, it seems to be the actually implemented version as of OpenOffice.org 3.3. See http://s.apache.org/e2u for more information.}}&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&lt;br /&gt;
The update notification request is a https get request to an URL, which may contain the operating system and processor type the OpenOffice instance is compiled for either as part of the URL or as URL parameter.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://update.services.openoffice.org/ProductUpdateService/check.Update2?_OS=Solaris&amp;amp;_ARCH=SPARC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://www.example.org/MyProduct/MyOS/MyArch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== User-Agent field ==&lt;br /&gt;
&lt;br /&gt;
To reduce the amount of transfered data when asking for OpenOffice updates, the user agent field contains all information required to identify a specific build: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
User-Agent: OpenOffice.org/2.2 (680m212 (Build:9263); Solaris; SPARC; BundledLanguages=en-US_fr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Accept-Language field ==&lt;br /&gt;
&lt;br /&gt;
To be able to return language specific feeds, OpenOffice.org sets the Accept-Language http request header field to the UI language currently in use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Accept-Language: en-GB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Update documents and feeds ==&lt;br /&gt;
&lt;br /&gt;
The simplest possible reply is of the following form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
  &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
  &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
  &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
  &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/inst:description&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the type attribute of the update tag is &amp;quot;text/html&amp;quot;, OOo will pass the URL specified in the src attribute to a browser. If you specify a different type, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&amp;amp;os=solarissparcwjre&amp;amp;lang=en-US&amp;amp;version=2.4&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OOo will download the referenced file itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The other supported reply format, which also allows to include several components or several versions of a single component, is to embed the update document in an [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;OpenOffice.org Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;The OpenOffice.org Project&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;OpenOffice.org 2.2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9e&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;summary&amp;gt;Click here to go to the download page.&amp;lt;/summary&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;OpenOffice.org_2_en-US_fr&amp;quot; label=&amp;quot;OpenOffice.org 2.2 US english/french&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
        &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
        &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
        &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
        &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
    &amp;lt;/content&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; OpenOffice.org 3.x update information example&lt;br /&gt;
&lt;br /&gt;
The following content of a &amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; directly references update information for a German Windows OpenOffice.org 3.3.0:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang=&amp;quot;en-US&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Product Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
&amp;lt;author&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;The OpenOffice Project&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
        &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
&amp;lt;/author&amp;gt;&lt;br /&gt;
&amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
&amp;lt;entry&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Update available&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;!-- IMPORTANT: category MUST be equal with UpdateID in version.ini --&amp;gt;&lt;br /&gt;
        &amp;lt;category term=&amp;quot;OpenOffice.org_3_de&amp;quot; label=&amp;quot;OpenOffice.org update&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
        &amp;lt;summary&amp;gt;Text below download information (should be localized)&amp;lt;/summary&amp;gt;&lt;br /&gt;
        &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:id&amp;gt;OpenOffice.org_3_de&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:version&amp;gt;&amp;#039;new version information&amp;#039;&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- buildid must be higher as installed version --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:buildid&amp;gt;9580&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:os&amp;gt;Windows&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:arch&amp;gt;x86&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- app/octet-stream generates direct download as background-process --&amp;gt;&lt;br /&gt;
                        &amp;lt;!--&amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://download.services.openoffice.org/files/localized/de/3.3.0/OOo_3.3.0_Win_x86_install-wJRE_de.exe&amp;quot;/&amp;gt;--&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- text/html opens src-link in default browser --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://download.openoffice.org&amp;quot;/&amp;gt;&lt;br /&gt;
                &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
        &amp;lt;/content&amp;gt;&lt;br /&gt;
&amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;inst:id&amp;gt; string of the component to be updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extension developers might prefer to link to the update description file instead of embedding it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;My Extention Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;Extension Developer&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://example.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;update@example.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Version 2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://example.org/myextension/latest.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;MyExtension+version&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;MyExtension&amp;quot; label=&amp;quot;My Extension&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot; src=&amp;quot;http://example.org/myextension/latest/myextension.update.xml&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;identifier&amp;gt; value of the extension to be updated.&lt;br /&gt;
&lt;br /&gt;
= A glance on the code for the Apache OpenOffice 3.4 release =&lt;br /&gt;
&lt;br /&gt;
The following describes some deeper insight of the &amp;quot;Check for Updates...&amp;quot; code in the office. It should help us to re-activate a corresponding web service when Apache OpenOffice 3.4 has been released. (Do we need a real web service? Something to be discussed.)&lt;br /&gt;
&lt;br /&gt;
The information given here is based on the work of Regina (regina at apache dot org), Ariel (arielch at apache dot org) and Kay (kschenk at apache dot org) found in the corresponding mailing list thread on ooo-dev - see http://s.apache.org/e2u.&lt;br /&gt;
Having this information gave me (orw at apache dot org) the right pointers for deeper investigations.&lt;br /&gt;
&lt;br /&gt;
== summary information about request to &amp;lt;UpdateURL&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;UpdateURL&amp;gt;, found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the office installation is typically an HTTPS URL.&lt;br /&gt;
The office sends a GET request to this URL. Two header fields are included in this request which are already mentioned above.&lt;br /&gt;
These are &amp;quot;Accept-Language&amp;quot; and &amp;quot;User-Agent&amp;quot;.&lt;br /&gt;
* &amp;quot;Accept-Language&amp;quot; contains the language of current locale - found in configuration item &amp;quot;org.openoffice.Setup/L10N&amp;quot;, attribute &amp;quot;ooLocale&amp;quot;&lt;br /&gt;
* &amp;quot;User-Agent&amp;quot; contains needed information to identify the installed office version - see above. The information matches the following pattern which is found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt;:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;PRODUCT&amp;gt; (${buildid}; ${_OS}; ${_ARCH}; BundledLanguages=${AllLanguages}) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
On platforms other than Windows the &amp;lt;UpdateURL&amp;gt; contains (at least since OOo 3.3) a query part. It is &amp;#039;&amp;#039;?pkgfmt=&amp;lt;pkgformat&amp;gt;&amp;#039;&amp;#039; which especially for Linux platforms identifies the package format of the office installation.&lt;br /&gt;
&lt;br /&gt;
It reveals that this information can be used to create the corresponding information for the request response.&lt;br /&gt;
&lt;br /&gt;
== information about processing the request response ==&lt;br /&gt;
&lt;br /&gt;
The response is expected to be a corresponding XML snippet.&lt;br /&gt;
As shown in the above examples, two types of XML snippets as responses are possible:&lt;br /&gt;
a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response and a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. The distinction between the two is made by its first element. If it is &amp;lt;feed&amp;gt; it is treated as a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response, otherwise as a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response is an XML snippet which is expected to have the format as the XML snippet in file [http://svn.apache.org/repos/asf/incubator/ooo/trunk/main/instsetoo_native/util/update.xml update.xml], found in our source repository.&lt;br /&gt;
&lt;br /&gt;
The following conditions must hold to perform further evaluation of the response:&lt;br /&gt;
# value of &amp;lt;inst:os&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_ARCH}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:arch&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_OS}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; is greater than the one of the installed office - &amp;#039;&amp;#039;${buildid}&amp;#039;&amp;#039;.&lt;br /&gt;
If these conditions hold, the following information is retrieved:&lt;br /&gt;
# values of attributes &amp;lt;src&amp;gt; and &amp;lt;type&amp;gt; of &amp;lt;inst:update&amp;gt;&lt;br /&gt;
#* if value of &amp;lt;type&amp;gt; equals &amp;quot;text/html&amp;quot;, the value of &amp;lt;src&amp;gt; is taken as an website from which the new version can be downloaded manually. Otherwise (also in case that attribute &amp;lt;type&amp;gt; is missing) the value of &amp;lt;src&amp;gt; is interpreted as a download link to the new version.&lt;br /&gt;
#* all &amp;lt;inst:update&amp;gt; elements are evaluated. The information of the first one is used - provide download of version or provide link to download website. The purpose of the other is not known.&lt;br /&gt;
# value of &amp;lt;inst:version&amp;gt; - will be shown in the corresponding dialog.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; - currently its purpose is not known.&lt;br /&gt;
If the first information - download website or download link - can be found in the XML snippet, the corresponding dialog will state that a new version is available. The user can then download it manually or can trigger an automatic download.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response is expected to conform to [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed] - as stated above in the example area.&lt;br /&gt;
Each content of the &amp;lt;content&amp;gt; element of an atom entry (&amp;lt;entry&amp;gt; element) whose &amp;lt;category&amp;gt; element has an attribute &amp;lt;term&amp;gt; whose value matches the &amp;lt;UpdateId&amp;gt; value found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the installed office is treated as &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. &lt;br /&gt;
&lt;br /&gt;
The first of these &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; responses from which a download website or a download link could be retrieved that matches the above given conditions is taken - the following ones are not processed. It will be shown to the user that a new version is available, and the user can trigger the download manually or automatically. One further information is taken from this atom entry - the content of the &amp;lt;summary&amp;gt; element. It is shown in the corresponding dialog.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
[[Category:Spec]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=258579</id>
		<title>Update Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=258579"/>
		<updated>2023-11-22T23:14:28Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Available Update Feeds */ Added 4.2.0&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Update Service for AOO/OOo is a service which provides via HTTP or HTTPS an Update Feed (or an Update Document) for installed AOO/OOo instances. This allows a requesting AOO/OOo instance to check if a new AOO version is available and to provide the result of this check to the user.&lt;br /&gt;
&lt;br /&gt;
Currently, the Update Service is implemented via static HTTP/HTTPS resources. No dynamic component is involved which processes the information given in the HTTP/HTTPS request of the AOO/OOo instance in order to generate a response.&lt;br /&gt;
&lt;br /&gt;
= Available Update Feeds =&lt;br /&gt;
&lt;br /&gt;
For the following AOO/OOo versions an Update Feed is made available.&lt;br /&gt;
The table contains the UpdateURL which an AOO/OOo instance of the specified version is requesting via HTTP/HTTPS and the resource in our svn repository which serves the HTTP/HTTPS resource behind the UpdateURL.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! AOO/OOo version&lt;br /&gt;
! UpdateURL&lt;br /&gt;
! Resource in repository&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2&lt;br /&gt;
| https://www.openoffice.org/projects/update34/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update34/ProductUpdateService/check.Update ooo-site/update34]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2.1&lt;br /&gt;
| https://www.openoffice.org/projects/update35/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update35/ProductUpdateService/check.Update ooo-site/update35]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.3&lt;br /&gt;
| https://www.openoffice.org/projects/update36/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update36/ProductUpdateService/check.Update ooo-site/update36]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.0&lt;br /&gt;
| https://www.openoffice.org/projects/update38/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update38/ProductUpdateService/check.Update ooo-site/update38]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.1&lt;br /&gt;
| https://www.openoffice.org/projects/update/aoo341/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update/aoo341/check.Update ooo-site/update/aoo341]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo40/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo40/check.Update updates-site/aoo40]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo401/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo401/check.Update updates-site/aoo401]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo410/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo410/check.Update updates-site/aoo410]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo411/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo411/check.Update updates-site/aoo411]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.2&lt;br /&gt;
| https://ooo-updates.apache.org/aoo412/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo412/check.Update updates-site/aoo412]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.3&lt;br /&gt;
| https://ooo-updates.apache.org/aoo413/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo413/check.Update updates-site/aoo413]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.4&lt;br /&gt;
| https://ooo-updates.apache.org/aoo414/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo414/check.Update updates-site/aoo414]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.5&lt;br /&gt;
| https://ooo-updates.apache.org/aoo415/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo415/check.Update updates-site/aoo415]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.6&lt;br /&gt;
| https://ooo-updates.apache.org/aoo416/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo416/check.Update updates-site/aoo416]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.7&lt;br /&gt;
| https://ooo-updates.apache.org/aoo417/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo417/check.Update updates-site/aoo417]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.8&lt;br /&gt;
| https://ooo-updates.apache.org/aoo418/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo418/check.Update updates-site/aoo418]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.9&lt;br /&gt;
| https://ooo-updates.apache.org/aoo419/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo419/check.Update updates-site/aoo419]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.10&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4110/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4110/check.Update updates-site/aoo4110]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.11&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4111/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4111/check.Update updates-site/aoo4111]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.12&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4112/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4112/check.Update updates-site/aoo4112]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.13&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4113/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4113/check.Update updates-site/aoo4113]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.14&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4114/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4114/check.Update updates-site/aoo4114]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.15&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4115/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4115/check.Update updates-site/aoo4115]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.2.0&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo420/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo420/check.Update updates-site/aoo420]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Update Feeds for versions 3.2 to 3.4.1 are part of the user website content. Thus, a changed Update Feed needs to be published - as it is needed for changed usual user website content.&lt;br /&gt;
The Update Feeds for versions 4.0.0 to 4.1.15 only need to be changed as its publication is done automatically by certain services provided by ASF Infra.&lt;br /&gt;
&lt;br /&gt;
Update Feeds can be generated by using the bash script and corresponding meta data which is available at [https://svn.apache.org/repos/asf/openoffice/devtools/genUpdateFeed/ genUpdateFeed].&lt;br /&gt;
&lt;br /&gt;
= Update Notification Protocol =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Since version 2.0.3 OpenOffice.org users of builds providing an UpdateURL can manually check for available updates by invoking {{menu|Help|Check for Updates…}}. Starting with version 2.0.4 OpenOffice.org can perform this check automatically in a user configurable interval. &lt;br /&gt;
&lt;br /&gt;
This is an attempt to define a second version of the update notification protocol, which is better extendable, can also be used for [[Extensions | extensions]] and no longer uses HTTP post requests.&lt;br /&gt;
&lt;br /&gt;
{{Note|Note: Even though this document is a draft, it seems to be the actually implemented version as of OpenOffice.org 3.3. See http://s.apache.org/e2u for more information.}}&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&lt;br /&gt;
The update notification request is a https get request to an URL, which may contain the operating system and processor type the OpenOffice instance is compiled for either as part of the URL or as URL parameter.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://update.services.openoffice.org/ProductUpdateService/check.Update2?_OS=Solaris&amp;amp;_ARCH=SPARC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://www.example.org/MyProduct/MyOS/MyArch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== User-Agent field ==&lt;br /&gt;
&lt;br /&gt;
To reduce the amount of transfered data when asking for OpenOffice updates, the user agent field contains all information required to identify a specific build: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
User-Agent: OpenOffice.org/2.2 (680m212 (Build:9263); Solaris; SPARC; BundledLanguages=en-US_fr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Accept-Language field ==&lt;br /&gt;
&lt;br /&gt;
To be able to return language specific feeds, OpenOffice.org sets the Accept-Language http request header field to the UI language currently in use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Accept-Language: en-GB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Update documents and feeds ==&lt;br /&gt;
&lt;br /&gt;
The simplest possible reply is of the following form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
  &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
  &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
  &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
  &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/inst:description&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the type attribute of the update tag is &amp;quot;text/html&amp;quot;, OOo will pass the URL specified in the src attribute to a browser. If you specify a different type, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&amp;amp;os=solarissparcwjre&amp;amp;lang=en-US&amp;amp;version=2.4&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OOo will download the referenced file itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The other supported reply format, which also allows to include several components or several versions of a single component, is to embed the update document in an [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;OpenOffice.org Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;The OpenOffice.org Project&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;OpenOffice.org 2.2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9e&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;summary&amp;gt;Click here to go to the download page.&amp;lt;/summary&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;OpenOffice.org_2_en-US_fr&amp;quot; label=&amp;quot;OpenOffice.org 2.2 US english/french&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
        &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
        &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
        &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
        &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
    &amp;lt;/content&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; OpenOffice.org 3.x update information example&lt;br /&gt;
&lt;br /&gt;
The following content of a &amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; directly references update information for a German Windows OpenOffice.org 3.3.0:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang=&amp;quot;en-US&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Product Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
&amp;lt;author&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;The OpenOffice Project&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
        &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
&amp;lt;/author&amp;gt;&lt;br /&gt;
&amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
&amp;lt;entry&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Update available&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;!-- IMPORTANT: category MUST be equal with UpdateID in version.ini --&amp;gt;&lt;br /&gt;
        &amp;lt;category term=&amp;quot;OpenOffice.org_3_de&amp;quot; label=&amp;quot;OpenOffice.org update&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
        &amp;lt;summary&amp;gt;Text below download information (should be localized)&amp;lt;/summary&amp;gt;&lt;br /&gt;
        &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:id&amp;gt;OpenOffice.org_3_de&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:version&amp;gt;&amp;#039;new version information&amp;#039;&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- buildid must be higher as installed version --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:buildid&amp;gt;9580&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:os&amp;gt;Windows&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:arch&amp;gt;x86&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- app/octet-stream generates direct download as background-process --&amp;gt;&lt;br /&gt;
                        &amp;lt;!--&amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://download.services.openoffice.org/files/localized/de/3.3.0/OOo_3.3.0_Win_x86_install-wJRE_de.exe&amp;quot;/&amp;gt;--&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- text/html opens src-link in default browser --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://download.openoffice.org&amp;quot;/&amp;gt;&lt;br /&gt;
                &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
        &amp;lt;/content&amp;gt;&lt;br /&gt;
&amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;inst:id&amp;gt; string of the component to be updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extension developers might prefer to link to the update description file instead of embedding it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;My Extention Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;Extension Developer&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://example.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;update@example.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Version 2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://example.org/myextension/latest.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;MyExtension+version&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;MyExtension&amp;quot; label=&amp;quot;My Extension&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot; src=&amp;quot;http://example.org/myextension/latest/myextension.update.xml&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;identifier&amp;gt; value of the extension to be updated.&lt;br /&gt;
&lt;br /&gt;
= A glance on the code for the Apache OpenOffice 3.4 release =&lt;br /&gt;
&lt;br /&gt;
The following describes some deeper insight of the &amp;quot;Check for Updates...&amp;quot; code in the office. It should help us to re-activate a corresponding web service when Apache OpenOffice 3.4 has been released. (Do we need a real web service? Something to be discussed.)&lt;br /&gt;
&lt;br /&gt;
The information given here is based on the work of Regina (regina at apache dot org), Ariel (arielch at apache dot org) and Kay (kschenk at apache dot org) found in the corresponding mailing list thread on ooo-dev - see http://s.apache.org/e2u.&lt;br /&gt;
Having this information gave me (orw at apache dot org) the right pointers for deeper investigations.&lt;br /&gt;
&lt;br /&gt;
== summary information about request to &amp;lt;UpdateURL&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;UpdateURL&amp;gt;, found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the office installation is typically an HTTPS URL.&lt;br /&gt;
The office sends a GET request to this URL. Two header fields are included in this request which are already mentioned above.&lt;br /&gt;
These are &amp;quot;Accept-Language&amp;quot; and &amp;quot;User-Agent&amp;quot;.&lt;br /&gt;
* &amp;quot;Accept-Language&amp;quot; contains the language of current locale - found in configuration item &amp;quot;org.openoffice.Setup/L10N&amp;quot;, attribute &amp;quot;ooLocale&amp;quot;&lt;br /&gt;
* &amp;quot;User-Agent&amp;quot; contains needed information to identify the installed office version - see above. The information matches the following pattern which is found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt;:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;PRODUCT&amp;gt; (${buildid}; ${_OS}; ${_ARCH}; BundledLanguages=${AllLanguages}) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
On platforms other than Windows the &amp;lt;UpdateURL&amp;gt; contains (at least since OOo 3.3) a query part. It is &amp;#039;&amp;#039;?pkgfmt=&amp;lt;pkgformat&amp;gt;&amp;#039;&amp;#039; which especially for Linux platforms identifies the package format of the office installation.&lt;br /&gt;
&lt;br /&gt;
It reveals that this information can be used to create the corresponding information for the request response.&lt;br /&gt;
&lt;br /&gt;
== information about processing the request response ==&lt;br /&gt;
&lt;br /&gt;
The response is expected to be a corresponding XML snippet.&lt;br /&gt;
As shown in the above examples, two types of XML snippets as responses are possible:&lt;br /&gt;
a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response and a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. The distinction between the two is made by its first element. If it is &amp;lt;feed&amp;gt; it is treated as a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response, otherwise as a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response is an XML snippet which is expected to have the format as the XML snippet in file [http://svn.apache.org/repos/asf/incubator/ooo/trunk/main/instsetoo_native/util/update.xml update.xml], found in our source repository.&lt;br /&gt;
&lt;br /&gt;
The following conditions must hold to perform further evaluation of the response:&lt;br /&gt;
# value of &amp;lt;inst:os&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_ARCH}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:arch&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_OS}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; is greater than the one of the installed office - &amp;#039;&amp;#039;${buildid}&amp;#039;&amp;#039;.&lt;br /&gt;
If these conditions hold, the following information is retrieved:&lt;br /&gt;
# values of attributes &amp;lt;src&amp;gt; and &amp;lt;type&amp;gt; of &amp;lt;inst:update&amp;gt;&lt;br /&gt;
#* if value of &amp;lt;type&amp;gt; equals &amp;quot;text/html&amp;quot;, the value of &amp;lt;src&amp;gt; is taken as an website from which the new version can be downloaded manually. Otherwise (also in case that attribute &amp;lt;type&amp;gt; is missing) the value of &amp;lt;src&amp;gt; is interpreted as a download link to the new version.&lt;br /&gt;
#* all &amp;lt;inst:update&amp;gt; elements are evaluated. The information of the first one is used - provide download of version or provide link to download website. The purpose of the other is not known.&lt;br /&gt;
# value of &amp;lt;inst:version&amp;gt; - will be shown in the corresponding dialog.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; - currently its purpose is not known.&lt;br /&gt;
If the first information - download website or download link - can be found in the XML snippet, the corresponding dialog will state that a new version is available. The user can then download it manually or can trigger an automatic download.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response is expected to conform to [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed] - as stated above in the example area.&lt;br /&gt;
Each content of the &amp;lt;content&amp;gt; element of an atom entry (&amp;lt;entry&amp;gt; element) whose &amp;lt;category&amp;gt; element has an attribute &amp;lt;term&amp;gt; whose value matches the &amp;lt;UpdateId&amp;gt; value found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the installed office is treated as &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. &lt;br /&gt;
&lt;br /&gt;
The first of these &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; responses from which a download website or a download link could be retrieved that matches the above given conditions is taken - the following ones are not processed. It will be shown to the user that a new version is available, and the user can trigger the download manually or automatically. One further information is taken from this atom entry - the content of the &amp;lt;summary&amp;gt; element. It is shown in the corresponding dialog.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
[[Category:Spec]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=258578</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=258578"/>
		<updated>2023-11-22T17:17:06Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Windows 7, Windows 8.1, Windows 10, Windows 11 */ Ant now at 1.10.14&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build {{AOo}} from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10, Windows 11 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.14-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.9-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Product_Release&amp;diff=258576</id>
		<title>Product Release</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Product_Release&amp;diff=258576"/>
		<updated>2023-11-17T19:47:44Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Apache OpenOffice 4.x */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Apache OpenOffice ==&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org was [https://incubator.apache.org/projects/openofficeorg.html transferred] to the [https://www.apache.org/foundation/ Apache Software Foundation] on June 1st, 2011 and it [https://blogs.apache.org/OOo/entry/openoffice_graduates_from_the_apache became an Apache Top-Level Project] on October 17, 2012.&lt;br /&gt;
&lt;br /&gt;
The development model of the popular productivity suite changed to benefit from the huge experience the Foundation has with managing open source projects.&lt;br /&gt;
&lt;br /&gt;
New releases of the product are accordingly named &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Apache OpenOffice 4.x ===&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/stop_the_lazy_season_start Apache OpenOffice 4.2.0] (2024, exact date TBD)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-110 Apache OpenOffice 4.1.14] (February 27th, 2023)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-19 Apache OpenOffice 4.1.13] (July 22nd, 2022)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-18 Apache OpenOffice 4.1.12] (May 4th, 2022)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-17 Apache OpenOffice 4.1.11] (October 6th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-16 Apache OpenOffice 4.1.10] (May 4th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-15 Apache OpenOffice 4.1.9] (February 7th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-14 Apache OpenOffice 4.1.8] (November 10th, 2020)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-13 Apache OpenOffice 4.1.7] (September 21st, 2019)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-12 Apache OpenOffice 4.1.6] (November 18th, 2018)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-11 Apache OpenOffice 4.1.5] (December 30th, 2017)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-1 Apache OpenOffice 4.1.4] (October 19th, 2017)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_12 Apache OpenOffice 4.1.3] (October 12th, 2016)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_11 Apache OpenOffice 4.1.2] (October 28th, 2015)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_1 Apache OpenOffice 4.1.1] (August 21st, 2014)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/the_apache_openoffice_project_announce Apache OpenOffice 4.1.0] (April 29th, 2014)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_0 Apache OpenOffice 4.0.1] (October 1st, 2013)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/a_short_celebration_and_then Apache OpenOffice 4.0.0] (July 23rd, 2013)&lt;br /&gt;
&lt;br /&gt;
=== Apache OpenOffice 3.4 ===&lt;br /&gt;
&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_3_41 Apache OpenOffice 3.4.1] (August 23rd, 2012)&lt;br /&gt;
** additional languages Danish, Norwegian, Swedish, Korean, Polish, Basque, Asturian and Scottish Gaelic (January 30th, 2013)&lt;br /&gt;
* [https://www.openoffice.org/news/aoo34.html Apache OpenOffice 3.4.0] (May 8th, 2012)&lt;br /&gt;
&lt;br /&gt;
== Older Product Releases of OpenOffice.org ==&lt;br /&gt;
&lt;br /&gt;
For release information please see the technical [https://development.openoffice.org/releases/index.html Release Notes] and a detailed [https://www.openoffice.org/dev_docs/features/index.html feature overview].&lt;br /&gt;
&lt;br /&gt;
For a list of uploaded Developer Snapshots and Release Candidates/Releases see the [[Product_Release/builds_uploaded | table of uploaded builds]]. The most recent builds can be downloaded on the [https://download.openoffice.org download webpage].&lt;br /&gt;
&lt;br /&gt;
For guidance on announcing new releases see [[PolicyMirrorLinking]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Released OpenOffice.org 3.x.x ===&lt;br /&gt;
&lt;br /&gt;
* [[OOoRelease33|OpenOffice.org 3.3.0]] (January 26th, 2011)&lt;br /&gt;
* [[OOoRelease321|OpenOffice.org 3.2.1]] (June 4th, 2010)&lt;br /&gt;
* [[OOoRelease32|OpenOffice.org 3.2.0]] (February 11th, 2010)&lt;br /&gt;
* [[OOoRelease311|OpenOffice.org 3.1.1]] (August 31st, 2009)&lt;br /&gt;
* [[OOoRelease31|OpenOffice.org 3.1.0]] (May 7th, 2009)&lt;br /&gt;
* [[OOoRelease301|OpenOffice.org 3.0.1]] (January 27th, 2009)&lt;br /&gt;
* [[OOoRelease30|OpenOffice.org 3.0.0]] (October 13th, 2008)&lt;br /&gt;
&lt;br /&gt;
=== Released OpenOffice.org 2.x.x ===&lt;br /&gt;
&lt;br /&gt;
* [[OOoRelease243|OpenOffice.org 2.4.3]] (September 04th, 2009)&lt;br /&gt;
* [[OOoRelease242|OpenOffice.org 2.4.2]] (October 28th, 2008)&lt;br /&gt;
* [[OOoRelease241|OpenOffice.org 2.4.1]] (June 10th, 2008)&lt;br /&gt;
* [[OOoRelease24|OpenOffice.org 2.4]] (March 27th, 2008)&lt;br /&gt;
* [[OOoRelease231|OpenOffice.org 2.3.1]] (December 4th, 2007)&lt;br /&gt;
* [[OOoRelease23|OpenOffice.org 2.3]] (September 17th, 2007)&lt;br /&gt;
* [[OOoRelease221|OpenOffice.org 2.2.1]] (June 12th, 2007)&lt;br /&gt;
* [[OOoRelease22|OpenOffice.org 2.2]] (March 29th, 2007)&lt;br /&gt;
* [[OOoRelease205|OpenOffice.org 2.1]] (December 12th, 2006)&lt;br /&gt;
* [[OOoRelease204|OpenOffice.org 2.0.4]] (October 13th, 2006)&lt;br /&gt;
* [[OOoRelease203|OpenOffice.org 2.0.3]] (June 29th, 2006)&lt;br /&gt;
* [[OOoRelease202|OpenOffice.org 2.0.2]] (March 8th, 2006)&lt;br /&gt;
* [[OOoRelease201|OpenOffice.org 2.0.1]] (December 21st, 2005)&lt;br /&gt;
* OpenOffice.org 2.0.0 (October 21st, 2005)&lt;br /&gt;
&lt;br /&gt;
=== OpenOffice.org 1.1 ===&lt;br /&gt;
&lt;br /&gt;
* OpenOffice.org 1.1.5 (September 9th, 2005)&lt;br /&gt;
* OpenOffice.org 1.1.4 (December 22th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.3 (October 4th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.2 (June 18th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.1 &lt;br /&gt;
* OpenOffice.org 1.1.0 (October 1st, 2003)&lt;br /&gt;
&lt;br /&gt;
=== OpenOffice.org 1.0 ===&lt;br /&gt;
&lt;br /&gt;
* OpenOffice.org 1.0.3 (April 10th, 2003)&lt;br /&gt;
* OpenOffice.org 1.0.2 (January 20th, 2003) (tag &amp;quot;OpenOffice_1_0_2&amp;quot;)&lt;br /&gt;
* OpenOffice.org 1.0.1 (July 17th, 2002) (tag &amp;quot;OpenOffice_1_0_1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Older releases can be retrieved via the [ftp://archive.services.openoffice.org/pub/openoffice-archive/stable Archive Server].&lt;br /&gt;
&lt;br /&gt;
[[Category:Releases]]&lt;br /&gt;
[[Category:Quality Assurance]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=258575</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=258575"/>
		<updated>2023-11-16T19:43:20Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Cygwin is at 3.4.9 now&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build {{AOo}} from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10, Windows 11 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.13-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.9-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=257098</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=257098"/>
		<updated>2023-08-19T07:31:07Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Cygwin now at 3.4.8&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build {{AOo}} from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10, Windows 11 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.13-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.8-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=API/Tutorials/PDF_export&amp;diff=257097</id>
		<title>API/Tutorials/PDF export</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=API/Tutorials/PDF_export&amp;diff=257097"/>
		<updated>2023-08-18T16:55:42Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Security */ Typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;PDF export is an important and useful feature of {{AOo}} that can completely be automatized using {{AOo}} API, quite every aspect of exporting to PDF in the graphical user interface is also available for programming: documents can be exported directly with default settings just passing the proper filter name and an URL, every option the user can set in the GUI can also be set programmatically in the filter options, also these settings are configurable via the API (they can be accessed, changed, or reset to their default values), and even the options dialog for exporting to PDF can be used through pure API calls.&lt;br /&gt;
&lt;br /&gt;
This tutorial will show how to use {{AOo}} API to export documents to PDF. The  reader should have at least a basic knowledge about handling office documents (how to load and store a document), and should also know how to access {{AOo}} configuration.&lt;br /&gt;
&lt;br /&gt;
This tutorial also aims to provide a full up-to-date documentation about the PDF export filter options, as these specific properties are usually not documented and only available in the core {{AOo}} source code (thus not accessible for developers aiming to work only with its API).&lt;br /&gt;
&lt;br /&gt;
The sources for this tutorial can be found [https://www.openoffice.org/api/  here]. They are not intended to provide a ready-to-use PDF export application, but to give you a tool for doing your own experiments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= PDF Export basics =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A document can be exported by saving it to a different location and using a special filter capable to write the document to the desired format. In the API, documents are storable through their interface &amp;lt;idl&amp;gt;com.sun.star.frame.XStorable&amp;lt;/idl&amp;gt;, as discussed in detail in [[Documentation/DevGuide/OfficeDev/Storing Documents|Developer&amp;#039;s Guide - Office Development - Storing Documents]].&lt;br /&gt;
&lt;br /&gt;
For exporting, besides the location (in URL notation) where the exported document is to be stored, a filter name must be passed to &amp;lt;code&amp;gt;XStorable.storeAsURL()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;XStorable.storeToURL()&amp;lt;/code&amp;gt;. The property needed for this purpose is the string argument &amp;lt;idlm&amp;gt;com.sun.star.document.MediaDescriptor:FilterName&amp;lt;/idlm&amp;gt; that takes the name of a filter already known by {{AOo}}.&lt;br /&gt;
&lt;br /&gt;
In the simplest case, all you need for exporting to PDF is the URL where you want to export the document and the filter name; this way, the document will be exported using the current PDF export settings (the ones used the last time, or the default values stipulated by the filter configuration, if this is first time).&lt;br /&gt;
&lt;br /&gt;
The following code shows the basic procedure:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
XComponent xComponent = null;&lt;br /&gt;
// create a new Writer document using a helper&lt;br /&gt;
xComponent = Helper.createNewDoc(m_xContext, &amp;quot;swriter&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// access its XTextDocument interface&lt;br /&gt;
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(&lt;br /&gt;
        XTextDocument.class, xComponent);&lt;br /&gt;
&lt;br /&gt;
// access the text body and set a string&lt;br /&gt;
XText xText = xTextDocument.getText();&lt;br /&gt;
xText.setString(&amp;quot;Simple PDF export demo.&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// XStorable to store the document&lt;br /&gt;
XStorable xStorable = (XStorable) UnoRuntime.queryInterface(&lt;br /&gt;
        XStorable.class, xComponent);&lt;br /&gt;
&lt;br /&gt;
// XStorable.storeToURL() expects an URL telling where to store the document&lt;br /&gt;
// and an array of PropertyValue indicating how to store it&lt;br /&gt;
&lt;br /&gt;
// URL = use helper method to get the home directory&lt;br /&gt;
String sURL = Helper.getHomeDir(m_xContext) + &amp;quot;/Simple_PDF_EXPORT_demo.pdf&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// Exporting to PDF consists of giving the proper&lt;br /&gt;
// filter name in the property &amp;quot;FilterName&amp;quot;&lt;br /&gt;
// With only this, the document will be exported&lt;br /&gt;
// using the existing PDF export settings&lt;br /&gt;
// (the one used the last time, or the default if the first time)&lt;br /&gt;
PropertyValue[] aMediaDescriptor = new PropertyValue[1];&lt;br /&gt;
aMediaDescriptor[0] = new PropertyValue();&lt;br /&gt;
aMediaDescriptor[0].Name = &amp;quot;FilterName&amp;quot;;&lt;br /&gt;
aMediaDescriptor[0].Value = &amp;quot;writer_pdf_Export&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
xStorable.storeToURL(sURL, aMediaDescriptor);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As the code shows, &amp;lt;code&amp;gt;XStorable.storeToURL()&amp;lt;/code&amp;gt; expects an URL as first parameter, and an array of &amp;lt;idl&amp;gt;com.sun.star.beans.PropertyValue&amp;lt;/idl&amp;gt; structs as second parameter, which implements the &amp;lt;idl&amp;gt;com.sun.star.document.MediaDescriptor&amp;lt;/idl&amp;gt; service, consisting of property definitions. The media descriptor is used for loading/importing and saving/exporting  documents, please refer to the [[Documentation/DevGuide/OfficeDev/Handling_Documents#MediaDescriptor|Developer&amp;#039;s Guide]] for a detailed explanation. In this case, it includes only the struct for the &amp;lt;idlm&amp;gt;com.sun.star.document.MediaDescriptor:FilterName&amp;lt;/idlm&amp;gt;, indicating the name of the filter for exporting Writer documents to PDF.&lt;br /&gt;
&lt;br /&gt;
You can fully customize the PDF export process by adding another &amp;lt;code&amp;gt;PropertyValue&amp;lt;/code&amp;gt; struct to the MediaDescriptor array: &amp;lt;idlm&amp;gt;com.sun.star.document.MediaDescriptor:FilterData&amp;lt;/idlm&amp;gt;. This parameter is used to pass properties specific for a special filter type. In the case of the PDF export filter, another array of &amp;lt;code&amp;gt;PropertyValue&amp;lt;/code&amp;gt; structs is expected.&lt;br /&gt;
&lt;br /&gt;
In the next section, we will describe the complete list of specific properties available at the present for the PDF export filter.&lt;br /&gt;
&lt;br /&gt;
= PDF Export filter data =&lt;br /&gt;
&lt;br /&gt;
The following tables contain all the properties available in the PDF export filter implementation since OpenOffice.org 2.4 up to OpenOffice.org 3.2. You must be aware of the fact that they are &amp;#039;&amp;#039;implementation specific&amp;#039;&amp;#039;, so you may not find all of them in previous versions (nor expect that they remain the same in the future).&lt;br /&gt;
&lt;br /&gt;
The tables follow the order of the PDF Export dialog tab pages, so that you can easily understand their meaning just comparing them with this dialog.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
* The &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039; column contains descriptions taken mainly from the PDF Export Dialog configuration, found in &lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;&amp;lt;/nowiki&amp;gt;opt/openoffice.org2.X&amp;lt;nowiki&amp;gt;&amp;gt;&amp;lt;/nowiki&amp;gt;/share/registry/schema/org/openoffice/Office/Common.xcs&amp;lt;/code&amp;gt; (for OOo 2.x)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;&amp;lt;/nowiki&amp;gt;opt/openoffice.org/basis3.X&amp;lt;nowiki&amp;gt;&amp;gt;&amp;lt;/nowiki&amp;gt;/share/registry/schema/org/openoffice/Office/Common.xcs&amp;lt;/code&amp;gt;  (for OpenOffice.org 3.x)&lt;br /&gt;
* The &amp;#039;&amp;#039;&amp;#039;Type&amp;#039;&amp;#039;&amp;#039; column refers to the UNO IDL data types (see [[Documentation/DevGuide/ProUNO/Simple Types | Developer&amp;#039;s Guide - Professional UNO - Simple Types]]), not the {{AOo}} Registry data types (see [[Documentation/DevGuide/Config/Object Model | Developer&amp;#039;s Guide - Configuration Management - Object Model]] and [https://wiki.openoffice.org/wiki/OOR-document-format#Registry_Object_Model OpenOffice Registry Format - Registry Object Model]). For the &amp;#039;&amp;#039;&amp;#039;mapping&amp;#039;&amp;#039;&amp;#039; refer to [http://util.openoffice.org/common/configuration/api_spec.html#Types%20Objects%20and%20Values   Configuration API Overview - Types, Objects and Values].&lt;br /&gt;
* The &amp;#039;&amp;#039;&amp;#039;Default value&amp;#039;&amp;#039;&amp;#039; column contains the default value as indicated in the PDF Export Dialog configuration mentioned above.&lt;br /&gt;
&lt;br /&gt;
== General properties ==&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=4 style=&amp;quot;border-collapse:collapse;&amp;quot;&lt;br /&gt;
|-bgcolor=#EDEDED&lt;br /&gt;
| &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Property Name&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Type&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Default value&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;PageRange&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;PageRange&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;If this property is set, it indicates the range of pages to be printed.&lt;br /&gt;
&lt;br /&gt;
If you want to print all the pages, leave this property unset.&lt;br /&gt;
&lt;br /&gt;
If you want to export a selection, leave this property unset, setting only the property &amp;#039;&amp;#039;&amp;#039;Selection&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
| &amp;lt;center&amp;gt;string&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;empty&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;(all pages are printed)&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Selection&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;Selection&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;An &amp;#039;&amp;#039;&amp;#039;any&amp;#039;&amp;#039;&amp;#039; corresponding to the current selection in the document.&lt;br /&gt;
| &amp;lt;center&amp;gt;any&amp;lt;/center&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;UseLosslessCompression&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;UseLosslessCompression&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies if graphics are exported to PDF using a lossless compression eg. &amp;#039;&amp;#039;&amp;#039;PNG&amp;#039;&amp;#039;&amp;#039; or if they are compressed using the &amp;#039;&amp;#039;&amp;#039;JPEG&amp;#039;&amp;#039;&amp;#039; format.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Quality&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;Quality&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies quality of the JPG export. A higher value results in higher quality and file.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Minimum inclusive value&amp;#039;&amp;#039;: 1. Represents lowest value that can be used. The lower the value, the less good is the compression quality and the bigger is be the file size.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Maximum inclusive value&amp;#039;&amp;#039;:100. Represents highest value that can be used. The higher the value, the better is the compression quality and the smaller is the file size.&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;90&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ReduceImageResolution&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;ReduceImageResolution&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies if the resolution of each image is reduced to the resolution specified by the property MaxImageResolution.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;MaxImageResolution&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;MaxImageResolution&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;If the property ReduceImageResolution is set to true all images will be reduced to the given value in DPI.&lt;br /&gt;
&lt;br /&gt;
Posible values:&lt;br /&gt;
&lt;br /&gt;
* 75&lt;br /&gt;
* 150&lt;br /&gt;
* 300&lt;br /&gt;
* 600&lt;br /&gt;
* 1200&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;300&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;SelectPdfVersion&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;SelectPdfVersion&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies the version of PDF to emit.&lt;br /&gt;
&lt;br /&gt;
Possible values:&lt;br /&gt;
&lt;br /&gt;
* 0 = PDF 1.4 (default selection).&lt;br /&gt;
* 1 = PDF/A-1 (ISO 19005-1:2005)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;0&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;UseTaggedPDF&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;UseTaggedPDF&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Determines if PDF are created by using special tags also known as Tagged PDF.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ExportFormFields&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;ExportFormFields&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies whether form fields are exported as widgets or only their fixed print representation is exported.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;true&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;FormsType&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;FormsType&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies the submitted format of a PDF form.&lt;br /&gt;
&lt;br /&gt;
Possible values:&lt;br /&gt;
&lt;br /&gt;
* 0= Specifies that forms type &amp;#039;&amp;#039;&amp;#039;FDF&amp;#039;&amp;#039;&amp;#039; is used.&lt;br /&gt;
* 1= Specifies that forms type &amp;#039;&amp;#039;&amp;#039;PDF&amp;#039;&amp;#039;&amp;#039; is used.&lt;br /&gt;
* 2= Specifies that forms type &amp;#039;&amp;#039;&amp;#039;HTML&amp;#039;&amp;#039;&amp;#039; is used.&lt;br /&gt;
* 3= Specifies that forms type &amp;#039;&amp;#039;&amp;#039;XML&amp;#039;&amp;#039;&amp;#039; is used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;0&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;AllowDuplicateFieldNames&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;AllowDuplicateFieldNames&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies whether multiple form fields exported are allowed to have the same field name.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Since&amp;#039;&amp;#039;&amp;#039;: OOo 3.3 &amp;lt;nowiki&amp;gt;[DEV300_m65]&amp;lt;/nowiki&amp;gt; (See [https://bz.apache.org/ooo/show_bug.cgi?id=103932 i103932])&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ExportBookmarks&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;ExportBookmarks&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies if bookmarks are exported to PDF.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;true&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ExportNotes&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;ExportNotes&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies if notes are exported to PDF.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ExportNotesPages&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;ExportNotesPages&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies if notes pages are exported to PDF. (Notes pages are available in &amp;#039;&amp;#039;&amp;#039;Impress&amp;#039;&amp;#039;&amp;#039; documents only).&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;IsSkipEmptyPages&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;IsSkipEmptyPages&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies that automatically inserted empty pages are suppressed. This option is active only if storing Writer documents.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;EmbedStandardFonts&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;EmbedStandardFonts&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies whether to embed the 14 standard PDF fonts or not.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Since&amp;#039;&amp;#039;&amp;#039;: OOo 3.3 &amp;lt;nowiki&amp;gt;[DEV300_m78]&amp;lt;/nowiki&amp;gt; (See [https://bz.apache.org/ooo/show_bug.cgi?id=87968  i87968])&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;IsAddStream&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;IsAddStream&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies that a stream is inserted to the PDF file which contains the original document for archiving purposes. &lt;br /&gt;
&lt;br /&gt;
This option is active only if the PDF Import extension is installed.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Watermark&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;Watermark&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies the text for a watermark to be drawn on every page of the exported PDF file.&lt;br /&gt;
| &amp;lt;center&amp;gt;any (string)&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;empty&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Initial view ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=4 style=&amp;quot;border-collapse:collapse;&amp;quot;&lt;br /&gt;
|-bgcolor=#EDEDED&lt;br /&gt;
! &amp;lt;center&amp;gt;Property Name&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Description&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Type&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Default value&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;InitialView&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;InitialView&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies how the PDF document should be displayed when opened.&lt;br /&gt;
&lt;br /&gt;
Possible values:&lt;br /&gt;
&lt;br /&gt;
* 0= Select the default viewer mode, neither outlines or thumbnails.&lt;br /&gt;
* 1= The document is opened with outline pane opened&lt;br /&gt;
* 2= The document is opened with thumbnail pane opened&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;0&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;InitialPage&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;InitialPage&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies the page on which a PDF document should be opened in the viewer application.&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;1&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Magnification&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;Magnification&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies the action to be performed when the PDF document is opened.&lt;br /&gt;
&lt;br /&gt;
Possible values:&lt;br /&gt;
&lt;br /&gt;
* 0= Opens with &amp;#039;&amp;#039;&amp;#039;default&amp;#039;&amp;#039;&amp;#039; zoom magnification.&lt;br /&gt;
* 1= Opens magnified to &amp;#039;&amp;#039;&amp;#039;fit&amp;#039;&amp;#039;&amp;#039; the entire page &amp;#039;&amp;#039;&amp;#039;within&amp;#039;&amp;#039;&amp;#039; the &amp;#039;&amp;#039;&amp;#039;window&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* 2= Opens magnified to &amp;#039;&amp;#039;&amp;#039;fit&amp;#039;&amp;#039;&amp;#039; the entire &amp;#039;&amp;#039;&amp;#039;page&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;width&amp;#039;&amp;#039;&amp;#039; within the window.&lt;br /&gt;
* 3= Opens magnified to fit the entire width of its &amp;#039;&amp;#039;&amp;#039;boundig&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;box&amp;#039;&amp;#039;&amp;#039; within the window (cuts out margins).&lt;br /&gt;
* 4= Opens with the &amp;#039;&amp;#039;&amp;#039;zoom&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;level&amp;#039;&amp;#039;&amp;#039; specified in the Zoom property.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;0&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Zoom&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;Zoom&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;specifies the zoom level a PDF document is opened with. Only valid if &amp;quot;Magnification&amp;quot; is set to &amp;quot;4&amp;quot;.&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;100&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;PageLayout&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;PageLayout&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies the page layout to be used when the document is opened.&lt;br /&gt;
&lt;br /&gt;
Possible values:&lt;br /&gt;
&lt;br /&gt;
* 0= Display the pages according to the reader configuration.&lt;br /&gt;
* 1= Display one page at a time.&lt;br /&gt;
* 2= Display the pages in one column.&lt;br /&gt;
* 3= Display the pages in two columns odd pages on the right, to have the odd pages on the left the FirstPageOnLeft property should be used as well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;0&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;FirstPageOnLeft&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;FirstPageOnLeft&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Used with the value 3 of the PageLayout property above, true if the first page (odd) should be on the left side of the screen.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== User interface ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=4 style=&amp;quot;border-collapse:collapse;&amp;quot;&lt;br /&gt;
|-bgcolor=#EDEDED&lt;br /&gt;
! &amp;lt;center&amp;gt;Property Name&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Description&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Type&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Default value&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ResizeWindowToInitialPage&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;ResizeWindowToInitialPage&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies that the PDF viewer window is opened &amp;#039;&amp;#039;&amp;#039;full screen&amp;#039;&amp;#039;&amp;#039; when the document is opened.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;CenterWindow&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;CenterWindow&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies that the PDF viewer window is centered to the screen when the PDF document is opened.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;OpenInFullScreenMode&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;OpenInFullScreenMode&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies that the PDF viewer window is opened full screen, on top of all windows.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;DisplayPDFDocumentTitle&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;DisplayPDFDocumentTitle&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies that the title of the document, if present in the document properties, is displayed in the PDF viewer window title bar.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;true&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;HideViewerMenubar&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;HideViewerMenubar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies whether to hide the PDF viewer menubar when the document is active.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;HideViewerToolbar&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;HideViewerToolbar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies whether to hide the PDF viewer toolbar when the document is active.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;HideViewerWindowControls&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;HideViewerWindowControls&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies whether to hide the PDF viewer controls when the document is active.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;UseTransitionEffects&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;UseTransitionEffects&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies slide transitions are exported to PDF. This option is active only if storing &amp;#039;&amp;#039;&amp;#039;Impress&amp;#039;&amp;#039;&amp;#039; documents.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;true&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;OpenBookmarkLevels&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;OpenBookmarkLevels&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies how many bookmark levels should be opened in the reader application when the PDF gets opened.&lt;br /&gt;
&lt;br /&gt;
Possible values:&lt;br /&gt;
&lt;br /&gt;
* -1: all bookmark levels are opened&lt;br /&gt;
* 1 – 10: indicate a bookmark level (from 1 to 10)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;-1&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=4 style=&amp;quot;border-collapse:collapse;&amp;quot;&lt;br /&gt;
|-bgcolor=#EDEDED&lt;br /&gt;
! &amp;lt;center&amp;gt;Property Name&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Description&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Type&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Default value&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ExportBookmarksToPDFDestination&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;ExportBookmarksToPDFDestination&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies that the bookmarks contained in the source {{AOo}} file should be exported to the PDF file as Named Destination (see PDF 1.4 section 8.2.1).&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ConvertOOoTargetToPDFTarget&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;ConvertOOoTargetToPDFTarget&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;nowiki&amp;gt;Specifies that the target documents with .od[tpgs] extension, will have that extension changed to .pdf when the link is exported to PDF. The source document remains untouched.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ExportLinksRelativeFsys&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;ExportLinksRelativeFsys&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies that the file system related hyperlinks (file:// protocol) present in the document will be exported as relative to the source document location.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;PDFViewSelection&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;PDFViewSelection&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies the way the exported PDF will be viewed (experienced) by the user.&lt;br /&gt;
&lt;br /&gt;
Possible values:&lt;br /&gt;
&lt;br /&gt;
* 0 = Specifies that the PDF will be exported with all the links external to the document treated as URI. This is the Default&lt;br /&gt;
* 1 = Specifies that the PDF will be exported in order to be viewed through a PDF reader application only. Valid only if not exporting to PDF/A-1 (e.g. SelectPdfVersion not set to 1).&lt;br /&gt;
* 2 = Specifies that the PDF will be exported in order to be viewed through an Internet browser, using the PDF plug-in provided with it. The bookmark of the URI will be rendered compatible with the target bookmark generated with OOo PDF Export feature (see ExportBookmarksToPDFDestination, below).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;0&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Security ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=4 style=&amp;quot;border-collapse:collapse;&amp;quot;&lt;br /&gt;
|-bgcolor=#EDEDED&lt;br /&gt;
! &amp;lt;center&amp;gt;Property Name&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Description&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Type&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Default value&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;EncryptFile&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;EncryptFile&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;If true, selects to encrypt the PDF document with a password. The PDF file can be opened only when the user enters the correct password.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;DocumentOpenPassword&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;DocumentOpenPassword&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;This is the password that allows the user to open the PDF file if &amp;quot;EncryptFile&amp;quot; is set to true.&lt;br /&gt;
| &amp;lt;center&amp;gt;string&amp;lt;/center&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;RestrictPermissions&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;RestrictPermissions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;If true, selects to restrict some permissions. The permissions can be changed only when the user enters the correct password.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;false&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;PermissionPassword&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;PermissionPassword&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;This is the password that allows the user to access some permissions restricted if &amp;quot;RestrictPermissions&amp;quot; is set to true.&lt;br /&gt;
| &amp;lt;center&amp;gt;string&amp;lt;/center&amp;gt;&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Printing&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;Printing&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies what printing is allowed.&lt;br /&gt;
&lt;br /&gt;
Possible values:&lt;br /&gt;
&lt;br /&gt;
* 0 = The document cannot be printed.&lt;br /&gt;
* 1 = The document can be printed at low resolution only.&lt;br /&gt;
* 2 = The document can be printed at maximum resolution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;2&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Changes&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;Changes&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies the change allowed to the document.&lt;br /&gt;
&lt;br /&gt;
Possible values:&lt;br /&gt;
&lt;br /&gt;
* 0 = The document cannot be changed.&lt;br /&gt;
* 1 = Inserting deleting and rotating pages is allowed.&lt;br /&gt;
* 2 = Filling of form field is allowed.&lt;br /&gt;
* 3 = Both filling of form field and commenting is allowed.&lt;br /&gt;
* 4 = All the changes of the previous selections are permitted, with the only exclusion of page extraction (copy).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;center&amp;gt;long&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;4&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;EnableCopyingOfContent&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;EnableCopyingOfContent&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies that the pages and the document content can be extracted to be used in other documents (copy and paste).&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;true&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;EnableTextAccessForAccessibilityTools&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;span id=&amp;quot;EnableTextAccessForAccessibilityTools&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Specifies that the document content can be extracted to be used in accessibility applications.&lt;br /&gt;
| &amp;lt;center&amp;gt;boolean&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;true&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Filter data demo =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following sample shows how to use the filer data to set some PDF export filter options.&lt;br /&gt;
&lt;br /&gt;
We will create a new Writer document, insert some text in it and draw two shapes. Then we will show how to export only these two shapes, setting also some view preferences (the PDF will open in full screen mode).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    // create a new Writer document using a helper&lt;br /&gt;
    xComponent = Helper.createNewDoc(m_xContext, &amp;quot;swriter&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    // access its XTextDocument interface&lt;br /&gt;
    XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(&lt;br /&gt;
            XTextDocument.class, xComponent);&lt;br /&gt;
&lt;br /&gt;
    // draw a group of shapes&lt;br /&gt;
    // so that then we can select them and export ONLY them to PDF&lt;br /&gt;
    XShapeGroup xShapes = drawShapeGroup(xTextDocument);&lt;br /&gt;
&lt;br /&gt;
    // XStorable to store the document&lt;br /&gt;
    XStorable xStorable = (XStorable) UnoRuntime.queryInterface(&lt;br /&gt;
        XStorable.class, xComponent);&lt;br /&gt;
&lt;br /&gt;
    // XStorable.storeToURL() expects an URL telling where to store the document&lt;br /&gt;
    // and an array of PropertyValue indicating how to store it&lt;br /&gt;
&lt;br /&gt;
    // URL = use helper method to get the home directory&lt;br /&gt;
    String sURL = Helper.getHomeDir(m_xContext) + &amp;quot;/PDF_EXPORT_FilterData_demo.pdf&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
    // Exporting to PDF consists of giving the proper&lt;br /&gt;
    // filter name in the property &amp;quot;FilterName&amp;quot;&lt;br /&gt;
    // With only this, the WHOLE document will be exported&lt;br /&gt;
    // using the existing PDF export settings&lt;br /&gt;
    // (the one used the last time, or the default if the first time)&lt;br /&gt;
    PropertyValue[] aMediaDescriptor = new PropertyValue[2];&lt;br /&gt;
    aMediaDescriptor[0] = new PropertyValue();&lt;br /&gt;
    aMediaDescriptor[0].Name = &amp;quot;FilterName&amp;quot;;&lt;br /&gt;
    aMediaDescriptor[0].Value = &amp;quot;writer_pdf_Export&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
    // By adding the &amp;quot;FilterData&amp;quot; we can control what is exported and how&lt;br /&gt;
    // For example, we will export ONLY the current selection&lt;br /&gt;
&lt;br /&gt;
    PropertyValue[] aFilterData = new PropertyValue[3];&lt;br /&gt;
    aFilterData[0] = new PropertyValue();&lt;br /&gt;
    aFilterData[0].Name = &amp;quot;Selection&amp;quot;;&lt;br /&gt;
    aFilterData[0].Value = select(xTextDocument, xShapes);&lt;br /&gt;
    // there was really no need to retrieve the selection&lt;br /&gt;
    // we could have used the XShapeGroup reference&lt;br /&gt;
&lt;br /&gt;
    aFilterData[1] = new PropertyValue();&lt;br /&gt;
    aFilterData[1].Name = &amp;quot;DisplayPDFDocumentTitle&amp;quot;;&lt;br /&gt;
    aFilterData[1].Value = Boolean.FALSE;&lt;br /&gt;
&lt;br /&gt;
    aFilterData[2] = new PropertyValue();&lt;br /&gt;
    aFilterData[2].Name = &amp;quot;OpenInFullScreenMode&amp;quot;;&lt;br /&gt;
    aFilterData[2].Value = Boolean.TRUE;&lt;br /&gt;
&lt;br /&gt;
    aMediaDescriptor[1] = new PropertyValue();&lt;br /&gt;
    aMediaDescriptor[1].Name = &amp;quot;FilterData&amp;quot;;&lt;br /&gt;
    aMediaDescriptor[1].Value = aFilterData;&lt;br /&gt;
&lt;br /&gt;
    xStorable.storeToURL(sURL, aMediaDescriptor);            &lt;br /&gt;
&lt;br /&gt;
    // open the PDF with your default PDF viewer&lt;br /&gt;
    // to check how it worked!&lt;br /&gt;
    Helper.executeSystemCommand(m_xContext, sURL);&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To export the selection, there must be something currently selected in the document&amp;#039;s &amp;#039;&amp;#039;view&amp;#039;&amp;#039;; that is, if you &amp;quot;select&amp;quot; for example a text range by means of expanding a text cursor &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
    XTextCursor xCursor = xTextDocument.getText().createTextCursor();&lt;br /&gt;
&lt;br /&gt;
    // The text cursor can travel through the text&lt;br /&gt;
    // as a &amp;quot;collapsed&amp;quot; text range&lt;br /&gt;
    // with identical start and end as a point in text,&lt;br /&gt;
    // or it can expand while it moves to contain a target string.&lt;br /&gt;
    // This is controlled with the XTextCursor methods&lt;br /&gt;
    // having a boolean parameter, for example XTextCursor.gotoEnd(bExpand)&lt;br /&gt;
    // If bExpand is true, the cursor expands while it travels&lt;br /&gt;
&lt;br /&gt;
    xCursor.gotoStart(false); // go to the start&lt;br /&gt;
    xCursor.gotoEnd(true);    // go to the end, expanding the cursor&amp;#039;s text range&lt;br /&gt;
&lt;br /&gt;
    // now the cursor&amp;#039;s text range covers all the document&amp;#039;s text&lt;br /&gt;
&lt;br /&gt;
    //...&lt;br /&gt;
&lt;br /&gt;
    aFilterData[0] = new PropertyValue();&lt;br /&gt;
    aFilterData[0].Name = &amp;quot;Selection&amp;quot;;&lt;br /&gt;
    aFilterData[0].Value = xCursor;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
the PDF export filter will not recognize this as a selection: the text cursor is not collapsed (start and end are not the same), but nothing is selected in the document&amp;#039;s view.&lt;br /&gt;
&lt;br /&gt;
To select an object in the document&amp;#039;s view is really simple: just get the current &amp;lt;idl&amp;gt;com.sun.star.frame.XController&amp;lt;/idl&amp;gt; from the document &amp;lt;idl&amp;gt;com.sun.star.frame.XModel&amp;lt;/idl&amp;gt;, query for the &amp;lt;code&amp;gt;XController&amp;lt;/code&amp;gt;&amp;#039;s &amp;lt;idl&amp;gt;com.sun.star.view.XSelectionSupplier&amp;lt;/idl&amp;gt;,and select the object (a cursor&amp;#039;s text, a group of shapes, etc.):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
private Object select(XInterface xInterface, Object aAny){&lt;br /&gt;
        Object oSelection = null;&lt;br /&gt;
        try {&lt;br /&gt;
            XModel xModel = (XModel) UnoRuntime.queryInterface(&lt;br /&gt;
                    XModel.class, xInterface);&lt;br /&gt;
            if (xModel != null){&lt;br /&gt;
                XController xController = xModel.getCurrentController();&lt;br /&gt;
                XSelectionSupplier xSelectionSupplier = &lt;br /&gt;
                        (XSelectionSupplier) UnoRuntime.queryInterface(&lt;br /&gt;
                        XSelectionSupplier.class, xController);&lt;br /&gt;
                xSelectionSupplier.select(aAny);&lt;br /&gt;
                // there is really no need to retrieve the selection&lt;br /&gt;
                oSelection = xSelectionSupplier.getSelection();&lt;br /&gt;
            }&lt;br /&gt;
        } finally {&lt;br /&gt;
            return oSelection;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= PDF Export Configuration =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most of the PDF export filter properties seen in the tables above are stored in the {{AOo}} configuration. &lt;br /&gt;
&lt;br /&gt;
When the user clicks the toolbar icon to export the current document (command &amp;lt;code&amp;gt;&amp;quot;.uno:ExportDirectToPDF&amp;quot;&amp;lt;/code&amp;gt;), s/he  will only see the &amp;quot;Export&amp;quot; dialog, not the &amp;quot;PDF Options&amp;quot; dialog. In this case, the filter will export reading the settings the user defined the last time in the PDF Options dialog (or the default settings if the dialog has never been used before).&lt;br /&gt;
&lt;br /&gt;
If the user chooses the command in the &amp;quot;File&amp;quot; menu (&amp;lt;code&amp;gt;&amp;quot;.uno:ExportToPDF&amp;quot;&amp;lt;/code&amp;gt;), s/he will see two dialogs in succession: first the PDF Options dialog, where s/he chooses the export settings; then the &amp;quot;Export&amp;quot; dialog, where s/he enters a file name. The settings entered int the PDF Options dialog are made persistent.&lt;br /&gt;
&lt;br /&gt;
The PDF export filter configuration is stored in the path &amp;lt;code&amp;gt;org.openoffice.Office/Common/PDF/Export&amp;lt;/code&amp;gt;, its schema can be found in the office installation inside  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;&amp;lt;/nowiki&amp;gt;opt/openoffice.org2.X&amp;lt;nowiki&amp;gt;&amp;gt;&amp;lt;/nowiki&amp;gt;/share/registry/schema/org/openoffice/Office/Common.xcs&amp;lt;/code&amp;gt; (for OOo 2.x)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;&amp;lt;/nowiki&amp;gt;opt/openoffice.org/basis3.X&amp;lt;nowiki&amp;gt;&amp;gt;&amp;lt;/nowiki&amp;gt;/share/registry/schema/org/openoffice/Office/Common.xcs&amp;lt;/code&amp;gt;  (for OOo 3.x)&lt;br /&gt;
&lt;br /&gt;
Not all properties passed to the PDF filter are stored in the registry (as it makes no sense, for example to make persistent the page range to be exported, or the passwords for protecting the document). The following is a list of the properties not stored in the OpenOffice registry:&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;code&amp;gt;DocumentOpenPassword&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;EncryptFile&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;PageRange&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;PermissionPassword&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;RestrictPermissions&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;Selection&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;Watermark&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following property is present, but deprecated (that&amp;#039;s why we didn&amp;#039;t include in the tables above):&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;code&amp;gt;CompressMode&amp;lt;/code&amp;gt; &amp;lt;nowiki&amp;gt;[deprecated]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the next sections, we will show how to access this configuration, change it, and restore it to its default values. The reader should be familiar with {{AOo}} configuration API, as explained in [[Documentation/DevGuide/Config/Configuration Management|Developer&amp;#039;s Guide – Configuration Management]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Accessing the configuration==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To access the PDF export configuration, we must follow two steps, as explained in  [[Documentation/DevGuide/Config/Configuration_Data_Sources|Developer&amp;#039;s Guide – Configuration Management - Configuration Data Sources]]:&lt;br /&gt;
&lt;br /&gt;
# connect to the {{AOo}} registry that stores the user configuration data by creating an instance of a &amp;lt;idl&amp;gt;com.sun.star.configuration.ConfigurationProvider&amp;lt;/idl&amp;gt; at the global service manager&lt;br /&gt;
# ask the &amp;lt;code&amp;gt;ConfigurationProvider&amp;lt;/code&amp;gt; to create an access object for the nodepath &amp;lt;code&amp;gt;&amp;quot;/org.openoffice.Office/Common/PDF/Export&amp;quot;&amp;lt;/code&amp;gt;, using &amp;lt;idlm&amp;gt;com.sun.star.lang.XMultiServiceFactory:createInstanceWithArguments&amp;lt;/idlm&amp;gt;. Depending on if we want a read-only view of the configuration data, or we want it to be modifiable, we must pass to &amp;lt;code&amp;gt;createInstanceWithArguments()&amp;lt;/code&amp;gt; the name of the service &amp;lt;idl&amp;gt;com.sun.star.configuration.ConfigurationAccess&amp;lt;/idl&amp;gt;, for read-only access, or &amp;lt;idl&amp;gt;com.sun.star.configuration.ConfigurationUpdateAccess&amp;lt;/idl&amp;gt;, for updatable access.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To create a &amp;#039;&amp;#039;&amp;#039;read-only&amp;#039;&amp;#039;&amp;#039; view on the PDF export filter configuration data in the user layer, the service &amp;lt;idl&amp;gt;com.sun.star.configuration.ConfigurationAccess&amp;lt;/idl&amp;gt; is requested to the &amp;lt;idls&amp;gt;com.sun.star.configuration.ConfigurationProvider&amp;lt;/idls&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   public static Object getPDFConfigAccess(XComponentContext xContext){&lt;br /&gt;
        &lt;br /&gt;
        Object oPDFExportConfig = null;&lt;br /&gt;
        try {&lt;br /&gt;
            XMultiComponentFactory xMCF = xContext.getServiceManager();&lt;br /&gt;
&lt;br /&gt;
            // instantiate the ConfigurationProvider at the ServiceManager&lt;br /&gt;
            Object oConfigProvider = xMCF.createInstanceWithContext(&lt;br /&gt;
                    &amp;quot;com.sun.star.configuration.ConfigurationProvider&amp;quot;, xContext);&lt;br /&gt;
&lt;br /&gt;
            // query its XMultiServiceFactory: &lt;br /&gt;
            // the ConfigurationProvider serves as a FACTORY for objects &lt;br /&gt;
            // that provide access to a subset of the configuration.&lt;br /&gt;
            XMultiServiceFactory oConfigProvMSF = &lt;br /&gt;
                    (XMultiServiceFactory) UnoRuntime.queryInterface(&lt;br /&gt;
                XMultiServiceFactory.class, oConfigProvider);&lt;br /&gt;
            &lt;br /&gt;
            // createInstanceWithArguments(sServiceSpecifier, aArguments) &lt;br /&gt;
            // first parameter is the service specifier, in this case for read-only access:&lt;br /&gt;
            String sServiceName = &amp;quot;com.sun.star.configuration.ConfigurationAccess&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
            // createInstanceWithArguments(sServiceSpecifier, aArguments)&lt;br /&gt;
            // second parameter takes a sequence&amp;lt; any &amp;gt; for the arguments, &lt;br /&gt;
            // mapped in Java to Object[]&lt;br /&gt;
            Object[] args = new Object[1];&lt;br /&gt;
&lt;br /&gt;
            // The arguments passed to createInstanceWithArguments() &lt;br /&gt;
            // in parameter aArguments specify the view of the configuration &lt;br /&gt;
            // that should be created.&lt;br /&gt;
            // Each element of the argument sequence should be a &lt;br /&gt;
            // PropertyValue or a NamedValue.&lt;br /&gt;
            &lt;br /&gt;
            // The &amp;quot;nodepath&amp;quot; argument contains the absolute path to &lt;br /&gt;
            // the element of the configuration we want to create a view for.&lt;br /&gt;
            NamedValue  aNodepath= new NamedValue();&lt;br /&gt;
            aNodepath.Name = &amp;quot;nodepath&amp;quot;;&lt;br /&gt;
            aNodepath.Value = &amp;quot;/org.openoffice.Office.Common/Filter/PDF/Export/&amp;quot;;&lt;br /&gt;
            &lt;br /&gt;
            args[0] = aNodepath;&lt;br /&gt;
&lt;br /&gt;
            // create the view&lt;br /&gt;
            oPDFExportConfig = oConfigProvMSF.createInstanceWithArguments(&lt;br /&gt;
                    sServiceName, args);&lt;br /&gt;
            &lt;br /&gt;
        } catch (Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        } finally {&lt;br /&gt;
            return oPDFExportConfig;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The method for creating an &amp;#039;&amp;#039;&amp;#039;updatable&amp;#039;&amp;#039;&amp;#039; view is quite the same as the above, we only have to change the service specifier, so that &amp;lt;idl&amp;gt;com.sun.star.configuration.ConfigurationUpdateAccess&amp;lt;/idl&amp;gt; is requested. In this case, there are other additional creation parameters available that control the caching behavior of the configuration management component, refer to [[Documentation/DevGuide/Config/Using_a_Data_Source|Developer&amp;#039;s Guide - Configuration Mamagement - Using a Data Source]]. In the following sample, we use the defaults:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
    public static Object getPDFConfigUpdateAccess(XComponentContext xContext){&lt;br /&gt;
        &lt;br /&gt;
        Object oPDFExportConfig = null;&lt;br /&gt;
        try {&lt;br /&gt;
            XMultiComponentFactory xMCF = xContext.getServiceManager();&lt;br /&gt;
&lt;br /&gt;
            // instantiate the ConfigurationProvider at the ServiceManager&lt;br /&gt;
            Object oConfigProvider = xMCF.createInstanceWithContext(&lt;br /&gt;
                    &amp;quot;com.sun.star.configuration.ConfigurationProvider&amp;quot;, xContext);&lt;br /&gt;
&lt;br /&gt;
            // query its XMultiServiceFactory: &lt;br /&gt;
            // the ConfigurationProvider serves as a FACTORY for objects &lt;br /&gt;
            // that provide access to a subset of the configuration.&lt;br /&gt;
            XMultiServiceFactory oConfigProvMSF = &lt;br /&gt;
                    (XMultiServiceFactory) UnoRuntime.queryInterface(&lt;br /&gt;
                XMultiServiceFactory.class, oConfigProvider);&lt;br /&gt;
            &lt;br /&gt;
            // createInstanceWithArguments(sServiceSpecifier, aArguments) &lt;br /&gt;
            // first parameter is the service specifier, in this case for UPDATE access:&lt;br /&gt;
            String sServiceName = &amp;quot;com.sun.star.configuration.ConfigurationUpdateAccess&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
            // createInstanceWithArguments(sServiceSpecifier, aArguments)&lt;br /&gt;
            // second parameter takes a sequence&amp;lt; any &amp;gt; for the arguments, &lt;br /&gt;
            // mapped in Java to Object[]&lt;br /&gt;
            Object[] args = new Object[1];&lt;br /&gt;
            &lt;br /&gt;
            // The &amp;quot;nodepath&amp;quot; argument contains the absolute path to &lt;br /&gt;
            // the element of the configuration we want to create a view for.&lt;br /&gt;
            NamedValue  aNodepath= new NamedValue();&lt;br /&gt;
            aNodepath.Name = &amp;quot;nodepath&amp;quot;;&lt;br /&gt;
            aNodepath.Value = &amp;quot;/org.openoffice.Office.Common/Filter/PDF/Export/&amp;quot;;&lt;br /&gt;
            &lt;br /&gt;
            args[0] = aNodepath;&lt;br /&gt;
&lt;br /&gt;
            // create the view&lt;br /&gt;
            oPDFExportConfig = oConfigProvMSF.createInstanceWithArguments(&lt;br /&gt;
                    sServiceName, args);&lt;br /&gt;
            &lt;br /&gt;
        } catch (Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        } finally {&lt;br /&gt;
            return oPDFExportConfig;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Both methods return in the Java sample a &amp;lt;code&amp;gt;java.lang.Object&amp;lt;/code&amp;gt; (use &amp;lt;idl&amp;gt;com.sun.star.uno.XInterface&amp;lt;/idl&amp;gt; in C++, and &amp;lt;code&amp;gt;Object&amp;lt;/code&amp;gt; in {{AOo}} Basic), as the view implements different interfaces you must query according to your needs.&lt;br /&gt;
&lt;br /&gt;
==Read-only access==&lt;br /&gt;
&lt;br /&gt;
The read-only view of the PDF export filter configuration we accessed with our method, supports the following services:&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.ConfigurationAccess&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.AccessRootElement&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.GroupAccess&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.HierarchyAccess&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.HierarchyElement&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.PropertyHierarchy&amp;lt;/idl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To access the PDF export filter properties we will query &amp;lt;idl&amp;gt;com.sun.star.beans.XPropertySet&amp;lt;/idl&amp;gt;, and use its methods &amp;lt;idlm&amp;gt;com.sun.star.beans.XPropertySet:getPropertyValue&amp;lt;/idlm&amp;gt; and &amp;lt;idlm&amp;gt;com.sun.star.beans.XPropertySet:getPropertySetInfo&amp;lt;/idlm&amp;gt;. Notice that any attempt to invoke &amp;lt;idlm&amp;gt;com.sun.star.beans.XPropertySet:setPropertyValue&amp;lt;/idlm&amp;gt; will throw an exception, as this is a read-only view.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
    public void run(){&lt;br /&gt;
        &lt;br /&gt;
        Object oConfig = getPDFConfigAccess(m_xContext);&lt;br /&gt;
        &lt;br /&gt;
        if (oConfig == null ) {&lt;br /&gt;
            System.out.println(&amp;quot;Impossible to access the PDF configuration&amp;quot;);&lt;br /&gt;
            return;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        XPropertySet xPropertySet = (XPropertySet) UnoRuntime.queryInterface(&lt;br /&gt;
                XPropertySet.class, oConfig);&lt;br /&gt;
        &lt;br /&gt;
        XPropertySetInfo xPropertySetInfo = xPropertySet.getPropertySetInfo();&lt;br /&gt;
        &lt;br /&gt;
        Property[] properties = xPropertySetInfo.getProperties();&lt;br /&gt;
        &lt;br /&gt;
        System.out.println(&amp;quot;\nProperties and values\n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        for (Property property : properties) {&lt;br /&gt;
            String sValue = &amp;quot;&amp;quot;;&lt;br /&gt;
            try {&lt;br /&gt;
                Object aValue = xPropertySet.getPropertyValue( property.Name );&lt;br /&gt;
                sValue = String.valueOf( aValue );&lt;br /&gt;
            } catch (Exception ex) {&lt;br /&gt;
                ex.printStackTrace();&lt;br /&gt;
            }&lt;br /&gt;
            System.out.println(property.Name + &amp;quot; =\t&amp;quot; + sValue);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Update access==&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;updatable&amp;#039;&amp;#039;&amp;#039; view of the PDF export filter configuration we accessed with our method, supports the following services:&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.ConfigurationAccess&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.ConfigurationUpdateAccess&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.AccessRootElement&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.UpdateRootElement&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.GroupAccess&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.GroupUpdate&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.HierarchyAccess&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.HierarchyElement&amp;lt;/idl&amp;gt;&lt;br /&gt;
# &amp;lt;idl&amp;gt;com.sun.star.configuration.PropertyHierarchy&amp;lt;/idl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change the configuration properties we proceed as above: query &amp;lt;idl&amp;gt;com.sun.star.beans.XPropertySet&amp;lt;/idl&amp;gt;, but in this case we are able to invoke &amp;lt;idlm&amp;gt;com.sun.star.beans.XPropertySet:setPropertyValue&amp;lt;/idlm&amp;gt;. Note that for better performance, you should try to use &amp;lt;idlm&amp;gt;com.sun.star.beans.XMultiPropertySet:setPropertyValues&amp;lt;/idlm&amp;gt; instead.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
    public void run() {&lt;br /&gt;
        &lt;br /&gt;
        Object oConfig = getPDFConfigUpdateAccess(m_xContext);&lt;br /&gt;
&lt;br /&gt;
        if (oConfig == null) {&lt;br /&gt;
            System.out.println(&amp;quot;Impossible to access the PDF configuration&amp;quot;);&lt;br /&gt;
            return;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        XPropertySet xPropertySet = (XPropertySet) UnoRuntime.queryInterface(&lt;br /&gt;
                XPropertySet.class, oConfig);&lt;br /&gt;
        &lt;br /&gt;
        // for better performance use XMultiPropertySet&lt;br /&gt;
        XMultiPropertySet xMultiPropertySet = &lt;br /&gt;
                (XMultiPropertySet) UnoRuntime.queryInterface(&lt;br /&gt;
                    XMultiPropertySet.class, oConfig);&lt;br /&gt;
        &lt;br /&gt;
        try {&lt;br /&gt;
            // change some properties&lt;br /&gt;
            &lt;br /&gt;
            /**&lt;br /&gt;
             * The first property specifies that the resolution of each image&lt;br /&gt;
             * must be reduced to the resolution specified by the second property&lt;br /&gt;
             * The value is given in DPI.&lt;br /&gt;
             */&lt;br /&gt;
            xPropertySet.setPropertyValue(&amp;quot;ReduceImageResolution&amp;quot;, Boolean.TRUE);&lt;br /&gt;
            xPropertySet.setPropertyValue(&amp;quot;MaxImageResolution&amp;quot;, new Integer(600));&lt;br /&gt;
            &lt;br /&gt;
            /**&lt;br /&gt;
             * When exporting a document to PDF, the default is PDF 1.4&lt;br /&gt;
             * Since OOo 2.4 the PDF/A-1a is also supported.&lt;br /&gt;
             * PDF/A-1a is an ISO 19005-1:2005 International Standard.&lt;br /&gt;
             * &lt;br /&gt;
             * NOTE that some other options WILL NOT be available if this format&lt;br /&gt;
             * is selected (UseTaggedPDF, ExportFormFileds, FormsType,&lt;br /&gt;
             * all security options)&lt;br /&gt;
             */&lt;br /&gt;
            xPropertySet.setPropertyValue(&amp;quot;SelectPdfVersion&amp;quot;, new Integer(1));&lt;br /&gt;
            &lt;br /&gt;
            /**&lt;br /&gt;
             * &amp;quot;Magnification&amp;quot; specifies the action to be performed &lt;br /&gt;
             * when the PDF document is opened.&lt;br /&gt;
             * A value of 4 opens with the zoom level specified in the &lt;br /&gt;
             * &amp;quot;Zoom&amp;quot; property.&lt;br /&gt;
             */&lt;br /&gt;
            xPropertySet.setPropertyValue(&amp;quot;Magnification&amp;quot;, new Integer(4));&lt;br /&gt;
            xPropertySet.setPropertyValue(&amp;quot;Zoom&amp;quot;, new Integer(60));&lt;br /&gt;
            &lt;br /&gt;
            // When using XMultiPropertySet:setPropertyValues(),&lt;br /&gt;
            // properties must be alphabetically sorted!&lt;br /&gt;
            String[] aProperties = { &amp;quot;CenterWindow&amp;quot;, &amp;quot;DisplayPDFDocumentTitle&amp;quot;, &lt;br /&gt;
                    &amp;quot;InitialView&amp;quot;, &amp;quot;PageLayout&amp;quot; };&lt;br /&gt;
            Object[] aValues = { Boolean.TRUE, Boolean.FALSE, &lt;br /&gt;
                    new Integer(2), new Integer(1)};&lt;br /&gt;
            &lt;br /&gt;
            xMultiPropertySet.setPropertyValues(aProperties, aValues);&lt;br /&gt;
            &lt;br /&gt;
            // commit the changes, otherwise they will be lost!&lt;br /&gt;
            XChangesBatch xChangesBatch = (XChangesBatch) UnoRuntime.queryInterface(&lt;br /&gt;
                    XChangesBatch.class, oConfig);&lt;br /&gt;
            &lt;br /&gt;
            xChangesBatch.commitChanges();&lt;br /&gt;
            &lt;br /&gt;
        } catch (UnknownPropertyException ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        } catch (PropertyVetoException ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        } catch (IllegalArgumentException ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        } catch (WrappedTargetException ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Resetting the configuration==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Setting the configuration to its default values is very simple, just query the &amp;lt;idls&amp;gt;com.sun.star.configuration.ConfigurationUpdateAccess&amp;lt;/idls&amp;gt;&amp;#039;s &amp;lt;idl&amp;gt;com.sun.star.beans.XMultiPropertyStates&amp;lt;/idl&amp;gt;, and use its method &amp;lt;idlm&amp;gt;com.sun.star.beans.XMultiPropertyStates:setAllPropertiesToDefault&amp;lt;/idlm&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
        // get an updatable view&lt;br /&gt;
        Object oConfig = ConfigUpdateAccess.getPDFConfigUpdateAccess(m_xContext);&lt;br /&gt;
&lt;br /&gt;
        if (oConfig == null) {&lt;br /&gt;
            System.out.println(&amp;quot;Impossible to access the PDF configuration&amp;quot;);&lt;br /&gt;
            return;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        XMultiPropertyStates xMultiPropertyStates = &lt;br /&gt;
                (XMultiPropertyStates) UnoRuntime.queryInterface(&lt;br /&gt;
                XMultiPropertyStates.class, oConfig);&lt;br /&gt;
        try {&lt;br /&gt;
            // set all the properties to default values&lt;br /&gt;
            xMultiPropertyStates.setAllPropertiesToDefault();&lt;br /&gt;
&lt;br /&gt;
            //you must commit the changes, if not they will be lost&lt;br /&gt;
            XChangesBatch xChangesBatch = (XChangesBatch) UnoRuntime.queryInterface(&lt;br /&gt;
                    XChangesBatch.class, xMultiPropertyStates);&lt;br /&gt;
&lt;br /&gt;
            xChangesBatch.commitChanges();&lt;br /&gt;
            &lt;br /&gt;
        } catch (WrappedTargetException ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=PDF Export Dialog=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How to use it from Java==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import com.sun.star.beans.PropertyValue;&lt;br /&gt;
import com.sun.star.beans.XPropertyAccess;&lt;br /&gt;
import com.sun.star.io.IOException;&lt;br /&gt;
import com.sun.star.uno.XComponentContext;&lt;br /&gt;
import com.sun.star.comp.helper.Bootstrap;&lt;br /&gt;
import com.sun.star.document.XExporter;&lt;br /&gt;
import com.sun.star.frame.XComponentLoader;&lt;br /&gt;
import com.sun.star.frame.XStorable;&lt;br /&gt;
import com.sun.star.lang.XComponent;&lt;br /&gt;
import com.sun.star.lang.XMultiComponentFactory;&lt;br /&gt;
import com.sun.star.ui.dialogs.ExecutableDialogResults;&lt;br /&gt;
import com.sun.star.ui.dialogs.XExecutableDialog;&lt;br /&gt;
import com.sun.star.uno.AnyConverter;&lt;br /&gt;
import com.sun.star.uno.UnoRuntime;&lt;br /&gt;
import com.sun.star.util.CloseVetoException;&lt;br /&gt;
import com.sun.star.util.XCloseable;&lt;br /&gt;
import com.sun.star.util.XStringSubstitution;&lt;br /&gt;
&lt;br /&gt;
public class PDFExportDialog {&lt;br /&gt;
&lt;br /&gt;
    private final XComponentContext m_xContext;&lt;br /&gt;
    &lt;br /&gt;
    public PDFExportDialog(XComponentContext xContext){&lt;br /&gt;
        m_xContext = xContext;        &lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    public static void main(String[] args) {&lt;br /&gt;
        try {&lt;br /&gt;
            // get the remote office component context&lt;br /&gt;
            XComponentContext xContext = Bootstrap.bootstrap();&lt;br /&gt;
            &lt;br /&gt;
            PDFExportDialog demo = new PDFExportDialog(xContext);&lt;br /&gt;
            demo.run();&lt;br /&gt;
            &lt;br /&gt;
        } catch (java.lang.Exception e){&lt;br /&gt;
            e.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
        finally {&lt;br /&gt;
            System.exit( 0 );&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    public void run() {&lt;br /&gt;
&lt;br /&gt;
        XMultiComponentFactory xMCF = m_xContext.getServiceManager();&lt;br /&gt;
&lt;br /&gt;
        Object oPDFDialog = null;&lt;br /&gt;
&lt;br /&gt;
        try {&lt;br /&gt;
            oPDFDialog = xMCF.createInstanceWithContext(&lt;br /&gt;
                    &amp;quot;com.sun.star.document.PDFDialog&amp;quot;, m_xContext);&lt;br /&gt;
        } catch (com.sun.star.uno.Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        // get all interface references&lt;br /&gt;
        XExecutableDialog xExecutableDialog = &lt;br /&gt;
                (XExecutableDialog) UnoRuntime.queryInterface(&lt;br /&gt;
                    XExecutableDialog.class, oPDFDialog);&lt;br /&gt;
&lt;br /&gt;
        XExporter xExporter = (XExporter) UnoRuntime.queryInterface(&lt;br /&gt;
                XExporter.class, xExecutableDialog);&lt;br /&gt;
&lt;br /&gt;
        XPropertyAccess xPropertyAccess = &lt;br /&gt;
                (XPropertyAccess) UnoRuntime.queryInterface(&lt;br /&gt;
                    XPropertyAccess.class, xExporter);&lt;br /&gt;
        &lt;br /&gt;
        // check them all&lt;br /&gt;
        if (xExecutableDialog == null || &lt;br /&gt;
                xExporter == null || xPropertyAccess == null) {&lt;br /&gt;
            System.out.println(&amp;quot;something went wrong with the PDFDialog!&amp;quot;);&lt;br /&gt;
            return;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        XComponent xComponent = null;&lt;br /&gt;
        try {&lt;br /&gt;
            // change the following to test with different doc. types&lt;br /&gt;
            // but remember to change the filter name below&lt;br /&gt;
            xComponent = createNewDoc(m_xContext, &amp;quot;swriter&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
            // set the source document&lt;br /&gt;
            xExporter.setSourceDocument(xComponent);&lt;br /&gt;
&lt;br /&gt;
            // set the title&lt;br /&gt;
            xExecutableDialog.setTitle(&amp;quot;Demo Export PDF Dialog OOo API&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
            // execute the dialog&lt;br /&gt;
            int nResult = xExecutableDialog.execute();&lt;br /&gt;
&lt;br /&gt;
            if (nResult != ExecutableDialogResults.OK) {&lt;br /&gt;
                System.out.println(&amp;quot;you didn&amp;#039;t press OK! so do nothing...&amp;quot;);&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            // get the options the user has choosen&lt;br /&gt;
            PropertyValue[] aFilterData = null;&lt;br /&gt;
&lt;br /&gt;
            PropertyValue[] aPropertyValues = xPropertyAccess.getPropertyValues();&lt;br /&gt;
            for (int i = 0; i &amp;lt; aPropertyValues.length; i++) {&lt;br /&gt;
                PropertyValue propertyValue = aPropertyValues[i];&lt;br /&gt;
                if (propertyValue.Name.equals(&amp;quot;FilterData&amp;quot;)) {&lt;br /&gt;
                    try {&lt;br /&gt;
                        aFilterData = (PropertyValue[]) AnyConverter.toObject(&lt;br /&gt;
                                PropertyValue[].class, propertyValue.Value);&lt;br /&gt;
&lt;br /&gt;
                    } catch (com.sun.star.lang.IllegalArgumentException ex) {&lt;br /&gt;
                        ex.printStackTrace();&lt;br /&gt;
                    }&lt;br /&gt;
                    break;&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            if (aFilterData != null) {&lt;br /&gt;
                // print the properties and their values&lt;br /&gt;
                printPropertyValues(aFilterData);&lt;br /&gt;
                &lt;br /&gt;
                // finally export!                &lt;br /&gt;
                // location where to export the doc.&lt;br /&gt;
                String sURL = getHomeDir(m_xContext) + &amp;quot;/PDF_EXPORT_DIALOG_demo.pdf&amp;quot;;                &lt;br /&gt;
                // choose the proper filter            &lt;br /&gt;
                String sFilter = &amp;quot;writer_pdf_Export&amp;quot;;&lt;br /&gt;
                &lt;br /&gt;
                boolean bExport = doExport(xComponent, sURL, sFilter, aFilterData);&lt;br /&gt;
                &lt;br /&gt;
                System.out.println( (bExport) ? &amp;quot;\nExported!&amp;quot; : &lt;br /&gt;
                    &amp;quot;\nCouldn&amp;#039;t export the document!&amp;quot; );&lt;br /&gt;
            }&lt;br /&gt;
            &lt;br /&gt;
        } catch (java.lang.Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        } finally {&lt;br /&gt;
            if (xComponent != null) {&lt;br /&gt;
                try {&lt;br /&gt;
                    XCloseable xCloseable = (XCloseable) UnoRuntime.queryInterface(&lt;br /&gt;
                            XCloseable.class, xComponent);&lt;br /&gt;
                    xCloseable.close(true);&lt;br /&gt;
                } catch (CloseVetoException ex) {&lt;br /&gt;
                    ex.printStackTrace();&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    private boolean doExport(&lt;br /&gt;
                                XComponent xComponent,&lt;br /&gt;
                                String aURL,&lt;br /&gt;
                                String sFilterName,&lt;br /&gt;
                                PropertyValue[] aFilterData)&lt;br /&gt;
    {&lt;br /&gt;
        XStorable xStorable = (XStorable) UnoRuntime.queryInterface(&lt;br /&gt;
                XStorable.class, xComponent);&lt;br /&gt;
        if (xStorable == null) {&lt;br /&gt;
            return false;&lt;br /&gt;
        } else {&lt;br /&gt;
            try {&lt;br /&gt;
                PropertyValue[] aMediaDescriptor = new PropertyValue[2];&lt;br /&gt;
&lt;br /&gt;
                aMediaDescriptor[0] = new PropertyValue();&lt;br /&gt;
                aMediaDescriptor[0].Name = &amp;quot;FilterName&amp;quot;;&lt;br /&gt;
                aMediaDescriptor[0].Value = sFilterName;&lt;br /&gt;
&lt;br /&gt;
                aMediaDescriptor[1] = new PropertyValue();&lt;br /&gt;
                aMediaDescriptor[1].Name = &amp;quot;FilterData&amp;quot;;&lt;br /&gt;
                aMediaDescriptor[1].Value = aFilterData;&lt;br /&gt;
&lt;br /&gt;
                xStorable.storeToURL(aURL, aMediaDescriptor);                &lt;br /&gt;
                return true;&lt;br /&gt;
                &lt;br /&gt;
            } catch (IOException ex) {&lt;br /&gt;
                ex.printStackTrace();&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        return false;&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    public static void printPropertyValues(PropertyValue[] aPropertyValues) &lt;br /&gt;
    {&lt;br /&gt;
        System.out.println(&amp;quot;\nProperties and values\n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        for (PropertyValue property : aPropertyValues) {&lt;br /&gt;
            String sValue = &amp;quot;&amp;quot;;&lt;br /&gt;
            try {&lt;br /&gt;
                sValue = String.valueOf(property.Value);&lt;br /&gt;
            } catch (Exception ex) {&lt;br /&gt;
                ex.printStackTrace();&lt;br /&gt;
            }&lt;br /&gt;
            System.out.println(property.Name + &amp;quot; = &amp;quot; + sValue);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
    //*************************************************************************&lt;br /&gt;
    &lt;br /&gt;
    public static XComponent loadComponent(&lt;br /&gt;
                                    XComponentContext xContext, &lt;br /&gt;
                                    String sURL, &lt;br /&gt;
                                    PropertyValue[] aMediaDescriptor)&lt;br /&gt;
    {&lt;br /&gt;
        XComponent xComp = null;&lt;br /&gt;
        try {&lt;br /&gt;
            XComponentLoader xComponentLoader = (XComponentLoader) UnoRuntime.queryInterface(&lt;br /&gt;
                    XComponentLoader.class, &lt;br /&gt;
                    xContext.getServiceManager().createInstanceWithContext(&lt;br /&gt;
                    &amp;quot;com.sun.star.frame.Desktop&amp;quot;, xContext));&lt;br /&gt;
            xComp = xComponentLoader.loadComponentFromURL(&lt;br /&gt;
                    sURL, &amp;quot;_default&amp;quot;, 0, aMediaDescriptor);&lt;br /&gt;
        } catch (Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
        return xComp;&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    public static XComponent createNewDoc(&lt;br /&gt;
                                    XComponentContext xContext, &lt;br /&gt;
                                    String sDocType, &lt;br /&gt;
                                    PropertyValue[] aMediaDescriptor)&lt;br /&gt;
    {&lt;br /&gt;
        XComponent xComp = null;&lt;br /&gt;
        try {&lt;br /&gt;
            xComp = loadComponent(xContext, &amp;quot;private:factory/&amp;quot; + &lt;br /&gt;
                    sDocType, aMediaDescriptor);&lt;br /&gt;
        } catch (Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
        return xComp;&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    public static XComponent createNewDoc(&lt;br /&gt;
                                    XComponentContext xContext, &lt;br /&gt;
                                    String sDocType)&lt;br /&gt;
    {&lt;br /&gt;
        XComponent xComp = null;&lt;br /&gt;
        try {&lt;br /&gt;
            xComp = createNewDoc(xContext, sDocType, new PropertyValue[0]);&lt;br /&gt;
        } catch (Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
        return xComp;&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    public static XComponent createNewHiddenDoc(&lt;br /&gt;
                                    XComponentContext xContext, &lt;br /&gt;
                                    String sDocType)&lt;br /&gt;
    {&lt;br /&gt;
        XComponent xComp = null;&lt;br /&gt;
        try {&lt;br /&gt;
            PropertyValue[] aMediaDescriptor = new PropertyValue[1];&lt;br /&gt;
            aMediaDescriptor[0] = new PropertyValue();&lt;br /&gt;
            aMediaDescriptor[0].Name = &amp;quot;Hidden&amp;quot;;&lt;br /&gt;
            aMediaDescriptor[0].Value = Boolean.TRUE;&lt;br /&gt;
            &lt;br /&gt;
            xComp = createNewDoc(xContext, sDocType, aMediaDescriptor);&lt;br /&gt;
            &lt;br /&gt;
        } catch (Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
        return xComp;&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    //************************************************************************&lt;br /&gt;
    //*************************************************************************&lt;br /&gt;
    &lt;br /&gt;
    public static String getHomeDir(XComponentContext xContext) {&lt;br /&gt;
        return getPathSubstitution(xContext, &amp;quot;$(home)&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public static String getWorkDir(XComponentContext xContext) {&lt;br /&gt;
        return getPathSubstitution(xContext, &amp;quot;$(work)&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public static String getUserDir(XComponentContext xContext) {&lt;br /&gt;
        return getPathSubstitution(xContext, &amp;quot;$(user)&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     *&lt;br /&gt;
     *      com.sun.star.util.PathSubstitution&lt;br /&gt;
     *&lt;br /&gt;
     *      $(inst)     Installation path of the Office. &lt;br /&gt;
     *      $(prog)     Program path of the Office. &lt;br /&gt;
     *      $(user)     The user installation directory. &lt;br /&gt;
     *      $(work)     The work directory of the user. &lt;br /&gt;
     *                      Under Windows this would be the &amp;quot;MyDocuments&amp;quot; subdirectory. &lt;br /&gt;
     *                      Under Unix this would be the home-directory&lt;br /&gt;
     *      $(home)     The home directory of the user.&lt;br /&gt;
     *                      Under Unix this would be the home- directory. &lt;br /&gt;
     *                      Under Windows this would be the &amp;quot;Documents and Settings\ &amp;quot; subdirectory.&lt;br /&gt;
     *      $(temp)     The current temporary directory. &lt;br /&gt;
     *      $(path)     The value of PATH environment variable.&lt;br /&gt;
     *      $(lang)     The country code used by the Office, like &lt;br /&gt;
     *                      01=english, &lt;br /&gt;
     *                      49=german.&lt;br /&gt;
     *      $(langid)   The language code used by the Office, like &lt;br /&gt;
     *                      0x0009=english, &lt;br /&gt;
     *                      0x0409=english us.&lt;br /&gt;
     *      $(vlang)    The language used by the Office as a string. Like &lt;br /&gt;
     *                      &amp;quot;german&amp;quot; for a german Office.&lt;br /&gt;
     *&lt;br /&gt;
     */    &lt;br /&gt;
    public static String getPathSubstitution(&lt;br /&gt;
            XComponentContext xContext, String aVariable)&lt;br /&gt;
    {&lt;br /&gt;
        String variableSubst = null;&lt;br /&gt;
        try {&lt;br /&gt;
            XStringSubstitution xStringSubstitution = getPathSubstitution(xContext);&lt;br /&gt;
            variableSubst = xStringSubstitution.getSubstituteVariableValue(aVariable);                &lt;br /&gt;
            &lt;br /&gt;
        } catch (com.sun.star.container.NoSuchElementException e) {&lt;br /&gt;
            e.printStackTrace();&lt;br /&gt;
        } catch (com.sun.star.uno.Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        } finally {&lt;br /&gt;
            return variableSubst;&lt;br /&gt;
        }        &lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    public static String getPathSubstitution(&lt;br /&gt;
            XComponentContext xContext, String aText, boolean bSubstRequired)&lt;br /&gt;
    {&lt;br /&gt;
        String variableSubst = null;&lt;br /&gt;
        try {&lt;br /&gt;
            XStringSubstitution xStringSubstitution = getPathSubstitution(xContext);&lt;br /&gt;
            variableSubst = xStringSubstitution.substituteVariables(&lt;br /&gt;
                    aText, bSubstRequired);                &lt;br /&gt;
            &lt;br /&gt;
        } catch (com.sun.star.container.NoSuchElementException e) {&lt;br /&gt;
            e.printStackTrace();&lt;br /&gt;
        } catch (Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        } finally {&lt;br /&gt;
            return variableSubst;&lt;br /&gt;
        }        &lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    public static XStringSubstitution getPathSubstitution(&lt;br /&gt;
                                                XComponentContext xContext)&lt;br /&gt;
    {&lt;br /&gt;
        XStringSubstitution xPathSubstitution = null;        &lt;br /&gt;
        XMultiComponentFactory xMCF = xContext.getServiceManager();        &lt;br /&gt;
        try {&lt;br /&gt;
            xPathSubstitution = (XStringSubstitution) UnoRuntime.queryInterface(&lt;br /&gt;
                    XStringSubstitution.class, &lt;br /&gt;
                    xMCF.createInstanceWithContext(&lt;br /&gt;
                        &amp;quot;com.sun.star.util.PathSubstitution&amp;quot;, xContext));            &lt;br /&gt;
        } catch (com.sun.star.uno.Exception ex) {&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        } finally {&lt;br /&gt;
            return xPathSubstitution;&lt;br /&gt;
        }        &lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How to use it from C++==&lt;br /&gt;
&lt;br /&gt;
ToDo&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How to use it from OOo Basic==&lt;br /&gt;
&lt;br /&gt;
ToDo&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
[[Category:API]]&lt;br /&gt;
[[Category:Tutorial]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=257078</id>
		<title>Documentation/FAQ/Installation/How do I install Apache OpenOffice on Windows?</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=257078"/>
		<updated>2023-08-02T18:21:45Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: How do I install OpenOffice on Microsoft Windows?}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=question/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How do I install OpenOffice on Microsoft Windows?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;section end=question/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download from OpenOffice website (Example for Windows 7 / 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The installation file for Windows from [https://www.openoffice.org/download OpenOffice download] is a self-extracting EXE file. Download the file. Your browser will save the file to your hard drive.&lt;br /&gt;
&lt;br /&gt;
* Locate the downloaded file on your hard drive and double-click the file to start the installation.&lt;br /&gt;
:You will be asked for a temporary folder to extract the files that are needed for installation. By default, this is a new folder on your desktop. You can enter any other drive and folder.&lt;br /&gt;
:Next, the files will be extracted to the folder and the Setup.exe program inside that folder is started automatically. Double-click the file named Setup.exe if it does not start automatically.&lt;br /&gt;
* A guided installation dialog will begin and will step you through the installation process.&lt;br /&gt;
* If you want to install to another drive and folder than the default &amp;#039;C:\Program files (x86)&amp;#039;, choose the User Defined setup and change the path.&lt;br /&gt;
:For AOO 4.x, the next folder will be created:&lt;br /&gt;
 &amp;#039;C:\Program Files (x86)\OpenOffice 4&amp;#039;&lt;br /&gt;
* After installation finished, you should not delete the folder with the extracted files, because these files will be required for a repair via Windows system manager.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Installation from Microsoft Store (Example for Windows 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Open the Microsoft Store App on your computer and search for &amp;quot;{{AOo}}&amp;quot;. Alternatively you can go to the [https://apps.microsoft.com/store/detail/apache-openoffice/XP89J5462CMGJD?mode=full Web Store] and open the Store App from there.&lt;br /&gt;
&lt;br /&gt;
* Click on the &amp;quot;Install&amp;quot; button.&lt;br /&gt;
* After downloading the installation file you will be asked for permission to install. After successful installation the button changes to &amp;quot;Installed&amp;quot;.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Installation with winget Windows Package Manager (Example for Windows 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Open the command line on your computer. Note: If you run winget for the first time you will be asked for a confirmation.&lt;br /&gt;
&lt;br /&gt;
* Type &amp;quot;winget install XP89J5462CMGJD&amp;quot; and press ENTER.&lt;br /&gt;
* After downloading the installation file you will be asked for permission to install. After successful installation you get a notification.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&lt;br /&gt;
If you want to install {{AOo}} in a language different from your OS, simply add &amp;quot;--locale &amp;lt;language code&amp;gt;&amp;quot; to the install instruction.&lt;br /&gt;
&lt;br /&gt;
For English (US) that would be &amp;quot;winget install XP89J5462CMGJD --locale en-US&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/FAQ/Installation|1 Installation]]&lt;br /&gt;
[[nl:NL/Documentation/FAQ/Installation/How_do_I_install_OpenOffice.org_on_Windows?]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=257077</id>
		<title>Documentation/FAQ/Installation/How do I install Apache OpenOffice on Windows?</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=257077"/>
		<updated>2023-08-02T18:20:41Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: Added instructions for winget install in another language&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: How do I install OpenOffice on Microsoft Windows?}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=question/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How do I install OpenOffice on Microsoft Windows?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;section end=question/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download from OpenOffice website (Example for Windows 7 / 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The installation file for Windows from [https://www.openoffice.org/download OpenOffice download] is a self-extracting EXE file. Download the file. Your browser will save the file to your hard drive.&lt;br /&gt;
&lt;br /&gt;
* Locate the downloaded file on your hard drive and double-click the file to start the installation.&lt;br /&gt;
:You will be asked for a temporary folder to extract the files that are needed for installation. By default, this is a new folder on your desktop. You can enter any other drive and folder.&lt;br /&gt;
:Next, the files will be extracted to the folder and the Setup.exe program inside that folder is started automatically. Double-click the file named Setup.exe if it does not start automatically.&lt;br /&gt;
* A guided installation dialog will begin and will step you through the installation process.&lt;br /&gt;
* If you want to install to another drive and folder than the default &amp;#039;C:\Program files (x86)&amp;#039;, choose the User Defined setup and change the path.&lt;br /&gt;
:For AOO 4.x, the next folder will be created:&lt;br /&gt;
 &amp;#039;C:\Program Files (x86)\OpenOffice 4&amp;#039;&lt;br /&gt;
* After installation finished, you should not delete the folder with the extracted files, because these files will be required for a repair via Windows system manager.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Installation from Microsoft Store (Example for Windows 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Open the Microsoft Store App on your computer and search for &amp;quot;{{AOo}}&amp;quot;. Alternatively you can go to the [https://apps.microsoft.com/store/detail/apache-openoffice/XP89J5462CMGJD?mode=full Web Store] and open the Store App from there.&lt;br /&gt;
&lt;br /&gt;
* Click on the &amp;quot;Install&amp;quot; button.&lt;br /&gt;
* After downloading the installation file you will be asked for permission to install. After successful installation the button changes to &amp;quot;Installed&amp;quot;.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Installation with winget Windows Package Manager (Example for Windows 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Open the command line on your computer. Note: If you run winget for the first time you will be asked for a confirmation.&lt;br /&gt;
&lt;br /&gt;
* Type &amp;quot;winget install XP89J5462CMGJD&amp;quot; and press ENTER.&lt;br /&gt;
* After downloading the installation file you will be asked for permission to install. After successful installation you get a notification.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&lt;br /&gt;
If you want to install {{AOo}} in a language different from your OS, simply add &amp;quot;--locale &amp;lt;country code&amp;gt;&amp;quot; to the install instruction.&lt;br /&gt;
&lt;br /&gt;
For English (US) that would be &amp;quot;winget install XP89J5462CMGJD --locale en-US&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/FAQ/Installation|1 Installation]]&lt;br /&gt;
[[nl:NL/Documentation/FAQ/Installation/How_do_I_install_OpenOffice.org_on_Windows?]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256815</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256815"/>
		<updated>2023-06-16T16:57:53Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Cygwin-DLL now at 3.4.7&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.13-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.7-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=256809</id>
		<title>Documentation/FAQ/Installation/How do I install Apache OpenOffice on Windows?</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=256809"/>
		<updated>2023-06-04T21:39:25Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: Added instructions for winget&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: How do I install OpenOffice on Microsoft Windows?}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=question/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How do I install OpenOffice on Microsoft Windows?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;section end=question/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download from OpenOffice website (Example for Windows 7 / 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The installation file for Windows from [https://www.openoffice.org/download OpenOffice download] is a self-extracting EXE file. Download the file. Your browser will save the file to your hard drive.&lt;br /&gt;
&lt;br /&gt;
* Locate the downloaded file on your hard drive and double-click the file to start the installation.&lt;br /&gt;
:You will be asked for a temporary folder to extract the files that are needed for installation. By default, this is a new folder on your desktop. You can enter any other drive and folder.&lt;br /&gt;
:Next, the files will be extracted to the folder and the Setup.exe program inside that folder is started automatically. Double-click the file named Setup.exe if it does not start automatically.&lt;br /&gt;
* A guided installation dialog will begin and will step you through the installation process.&lt;br /&gt;
* If you want to install to another drive and folder than the default &amp;#039;C:\Program files (x86)&amp;#039;, choose the User Defined setup and change the path.&lt;br /&gt;
:For AOO 4.x, the next folder will be created:&lt;br /&gt;
 &amp;#039;C:\Program Files (x86)\OpenOffice 4&amp;#039;&lt;br /&gt;
* After installation finished, you should not delete the folder with the extracted files, because these files will be required for a repair via Windows system manager.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Installation from Microsoft Store (Example for Windows 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Open the Microsoft Store App on your computer and search for &amp;quot;{{AOo}}&amp;quot;. Alternatively you can go to the [https://apps.microsoft.com/store/detail/apache-openoffice/XP89J5462CMGJD?mode=full Web Store] and open the Store App from there.&lt;br /&gt;
&lt;br /&gt;
* Click on the &amp;quot;Install&amp;quot; button.&lt;br /&gt;
* After downloading the installation file you will be asked for permission to install. After successful installation the button changes to &amp;quot;Installed&amp;quot;.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Installation with winget Windows Package Manager (Example for Windows 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Open the command line on your computer. Note: If you run winget for the first time you will be asked for a confirmation.&lt;br /&gt;
&lt;br /&gt;
* Type &amp;quot;winget install XP89J5462CMGJD&amp;quot; and press ENTER.&lt;br /&gt;
* After downloading the installation file you will be asked for permission to install. After successful installation you get a notification.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/FAQ/Installation|1 Installation]]&lt;br /&gt;
[[nl:NL/Documentation/FAQ/Installation/How_do_I_install_OpenOffice.org_on_Windows?]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=256808</id>
		<title>Documentation/FAQ/Installation/How do I install Apache OpenOffice on Windows?</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=256808"/>
		<updated>2023-06-04T09:29:18Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: Added parameter for Store&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: How do I install OpenOffice on Microsoft Windows?}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=question/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How do I install OpenOffice on Microsoft Windows?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;section end=question/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download from OpenOffice website (Example for Windows 7 / 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The installation file for Windows from [https://www.openoffice.org/download OpenOffice download] is a self-extracting EXE file. Download the file. Your browser will save the file to your hard drive.&lt;br /&gt;
&lt;br /&gt;
* Locate the downloaded file on your hard drive and double-click the file to start the installation.&lt;br /&gt;
:You will be asked for a temporary folder to extract the files that are needed for installation. By default, this is a new folder on your desktop. You can enter any other drive and folder.&lt;br /&gt;
:Next, the files will be extracted to the folder and the Setup.exe program inside that folder is started automatically. Double-click the file named Setup.exe if it does not start automatically.&lt;br /&gt;
* A guided installation dialog will begin and will step you through the installation process.&lt;br /&gt;
* If you want to install to another drive and folder than the default &amp;#039;C:\Program files (x86)&amp;#039;, choose the User Defined setup and change the path.&lt;br /&gt;
:For AOO 4.x, the next folder will be created:&lt;br /&gt;
 &amp;#039;C:\Program Files (x86)\OpenOffice 4&amp;#039;&lt;br /&gt;
* After installation finished, you should not delete the folder with the extracted files, because these files will be required for a repair via Windows system manager.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install via Microsoft Store (Example for Windows 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Open the Microsoft Store App on your computer and search for &amp;quot;{{AOo}}&amp;quot;. Alternatively you can go to the [https://apps.microsoft.com/store/detail/apache-openoffice/XP89J5462CMGJD?mode=full Web Store] and open the Store App from there.&lt;br /&gt;
&lt;br /&gt;
* Click on the &amp;quot;Install&amp;quot; button.&lt;br /&gt;
* After downloading the installation file you will be asked for permission to install. After successful installation the button changes to &amp;quot;Installed&amp;quot;.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/FAQ/Installation|1 Installation]]&lt;br /&gt;
[[nl:NL/Documentation/FAQ/Installation/How_do_I_install_OpenOffice.org_on_Windows?]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=User:Mseidel&amp;diff=256807</id>
		<title>User:Mseidel</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=User:Mseidel&amp;diff=256807"/>
		<updated>2023-05-10T22:32:39Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: Update age ;-)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About me: ==&lt;br /&gt;
Name: Matthias Seidel&lt;br /&gt;
&lt;br /&gt;
Age: 57&lt;br /&gt;
&lt;br /&gt;
Location: Hamburg, Germany&lt;br /&gt;
&lt;br /&gt;
You can find my unofficial Apache OpenOffice Test Builds for Windows here:&lt;br /&gt;
&lt;br /&gt;
https://home.apache.org/~mseidel/AOO-builds/&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256727</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256727"/>
		<updated>2023-03-25T18:48:01Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.13-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.6-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256726</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256726"/>
		<updated>2023-03-19T21:03:06Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.13-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.6-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: At the moment &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building trunk/AOO42X.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Product_Release&amp;diff=256725</id>
		<title>Product Release</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Product_Release&amp;diff=256725"/>
		<updated>2023-03-03T18:23:16Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Apache OpenOffice 4.x */ AOO 4.1.14 released&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Apache OpenOffice ==&lt;br /&gt;
&lt;br /&gt;
OpenOffice.org was [https://incubator.apache.org/projects/openofficeorg.html transferred] to the [https://www.apache.org/foundation/ Apache Software Foundation] on June 1st, 2011 and it [https://blogs.apache.org/OOo/entry/openoffice_graduates_from_the_apache became an Apache Top-Level Project] on October 17, 2012.&lt;br /&gt;
&lt;br /&gt;
The development model of the popular productivity suite changed to benefit from the huge experience the Foundation has with managing open source projects.&lt;br /&gt;
&lt;br /&gt;
New releases of the product are accordingly named &amp;#039;&amp;#039;&amp;#039;Apache OpenOffice&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Apache OpenOffice 4.x ===&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/stop_the_lazy_season_start Apache OpenOffice 4.2.0] (2023, exact date TBD)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-110 Apache OpenOffice 4.1.14] (February 27th, 2023)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-19 Apache OpenOffice 4.1.13] (July 22nd, 2022)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-18 Apache OpenOffice 4.1.12] (May 4th, 2022)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-17 Apache OpenOffice 4.1.11] (October 6th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-16 Apache OpenOffice 4.1.10] (May 4th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-15 Apache OpenOffice 4.1.9] (February 7th, 2021)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-14 Apache OpenOffice 4.1.8] (November 10th, 2020)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-13 Apache OpenOffice 4.1.7] (September 21st, 2019)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-12 Apache OpenOffice 4.1.6] (November 18th, 2018)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-11 Apache OpenOffice 4.1.5] (December 30th, 2017)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing-apache-openoffice-4-1 Apache OpenOffice 4.1.4] (October 19th, 2017)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_12 Apache OpenOffice 4.1.3] (October 12th, 2016)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_11 Apache OpenOffice 4.1.2] (October 28th, 2015)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_1 Apache OpenOffice 4.1.1] (August 21st, 2014)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/the_apache_openoffice_project_announce Apache OpenOffice 4.1.0] (April 29th, 2014)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_4_0 Apache OpenOffice 4.0.1] (October 1st, 2013)&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/a_short_celebration_and_then Apache OpenOffice 4.0.0] (July 23rd, 2013)&lt;br /&gt;
&lt;br /&gt;
=== Apache OpenOffice 3.4 ===&lt;br /&gt;
&lt;br /&gt;
* [https://blogs.apache.org/OOo/entry/announcing_apache_openoffice_3_41 Apache OpenOffice 3.4.1] (August 23rd, 2012)&lt;br /&gt;
** additional languages Danish, Norwegian, Swedish, Korean, Polish, Basque, Asturian and Scottish Gaelic (January 30th, 2013)&lt;br /&gt;
* [https://www.openoffice.org/news/aoo34.html Apache OpenOffice 3.4.0] (May 8th, 2012)&lt;br /&gt;
&lt;br /&gt;
== Older Product Releases of OpenOffice.org ==&lt;br /&gt;
&lt;br /&gt;
For release information please see the technical [https://development.openoffice.org/releases/index.html Release Notes] and a detailed [https://www.openoffice.org/dev_docs/features/index.html feature overview].&lt;br /&gt;
&lt;br /&gt;
For a list of uploaded Developer Snapshots and Release Candidates/Releases see the [[Product_Release/builds_uploaded | table of uploaded builds]]. The most recent builds can be downloaded on the [https://download.openoffice.org download webpage].&lt;br /&gt;
&lt;br /&gt;
For guidance on announcing new releases see [[PolicyMirrorLinking]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Released OpenOffice.org 3.x.x ===&lt;br /&gt;
&lt;br /&gt;
* [[OOoRelease33|OpenOffice.org 3.3.0]] (January 26th, 2011)&lt;br /&gt;
* [[OOoRelease321|OpenOffice.org 3.2.1]] (June 4th, 2010)&lt;br /&gt;
* [[OOoRelease32|OpenOffice.org 3.2.0]] (February 11th, 2010)&lt;br /&gt;
* [[OOoRelease311|OpenOffice.org 3.1.1]] (August 31st, 2009)&lt;br /&gt;
* [[OOoRelease31|OpenOffice.org 3.1.0]] (May 7th, 2009)&lt;br /&gt;
* [[OOoRelease301|OpenOffice.org 3.0.1]] (January 27th, 2009)&lt;br /&gt;
* [[OOoRelease30|OpenOffice.org 3.0.0]] (October 13th, 2008)&lt;br /&gt;
&lt;br /&gt;
=== Released OpenOffice.org 2.x.x ===&lt;br /&gt;
&lt;br /&gt;
* [[OOoRelease243|OpenOffice.org 2.4.3]] (September 04th, 2009)&lt;br /&gt;
* [[OOoRelease242|OpenOffice.org 2.4.2]] (October 28th, 2008)&lt;br /&gt;
* [[OOoRelease241|OpenOffice.org 2.4.1]] (June 10th, 2008)&lt;br /&gt;
* [[OOoRelease24|OpenOffice.org 2.4]] (March 27th, 2008)&lt;br /&gt;
* [[OOoRelease231|OpenOffice.org 2.3.1]] (December 4th, 2007)&lt;br /&gt;
* [[OOoRelease23|OpenOffice.org 2.3]] (September 17th, 2007)&lt;br /&gt;
* [[OOoRelease221|OpenOffice.org 2.2.1]] (June 12th, 2007)&lt;br /&gt;
* [[OOoRelease22|OpenOffice.org 2.2]] (March 29th, 2007)&lt;br /&gt;
* [[OOoRelease205|OpenOffice.org 2.1]] (December 12th, 2006)&lt;br /&gt;
* [[OOoRelease204|OpenOffice.org 2.0.4]] (October 13th, 2006)&lt;br /&gt;
* [[OOoRelease203|OpenOffice.org 2.0.3]] (June 29th, 2006)&lt;br /&gt;
* [[OOoRelease202|OpenOffice.org 2.0.2]] (March 8th, 2006)&lt;br /&gt;
* [[OOoRelease201|OpenOffice.org 2.0.1]] (December 21st, 2005)&lt;br /&gt;
* OpenOffice.org 2.0.0 (October 21st, 2005)&lt;br /&gt;
&lt;br /&gt;
=== OpenOffice.org 1.1 ===&lt;br /&gt;
&lt;br /&gt;
* OpenOffice.org 1.1.5 (September 9th, 2005)&lt;br /&gt;
* OpenOffice.org 1.1.4 (December 22th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.3 (October 4th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.2 (June 18th, 2004)&lt;br /&gt;
* OpenOffice.org 1.1.1 &lt;br /&gt;
* OpenOffice.org 1.1.0 (October 1st, 2003)&lt;br /&gt;
&lt;br /&gt;
=== OpenOffice.org 1.0 ===&lt;br /&gt;
&lt;br /&gt;
* OpenOffice.org 1.0.3 (April 10th, 2003)&lt;br /&gt;
* OpenOffice.org 1.0.2 (January 20th, 2003) (tag &amp;quot;OpenOffice_1_0_2&amp;quot;)&lt;br /&gt;
* OpenOffice.org 1.0.1 (July 17th, 2002) (tag &amp;quot;OpenOffice_1_0_1&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Older releases can be retrieved via the [ftp://archive.services.openoffice.org/pub/openoffice-archive/stable Archive Server].&lt;br /&gt;
&lt;br /&gt;
[[Category:Releases]]&lt;br /&gt;
[[Category:Quality Assurance]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=256724</id>
		<title>Update Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=256724"/>
		<updated>2023-03-03T08:48:13Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Available Update Feeds */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Update Service for AOO/OOo is a service which provides via HTTP or HTTPS an Update Feed (or an Update Document) for installed AOO/OOo instances. This allows a requesting AOO/OOo instance to check if a new AOO version is available and to provide the result of this check to the user.&lt;br /&gt;
&lt;br /&gt;
Currently, the Update Service is implemented via static HTTP/HTTPS resources. No dynamic component is involved which processes the information given in the HTTP/HTTPS request of the AOO/OOo instance in order to generate a response.&lt;br /&gt;
&lt;br /&gt;
= Available Update Feeds =&lt;br /&gt;
&lt;br /&gt;
For the following AOO/OOo versions an Update Feed is made available.&lt;br /&gt;
The table contains the UpdateURL which an AOO/OOo instance of the specified version is requesting via HTTP/HTTPS and the resource in our svn repository which serves the HTTP/HTTPS resource behind the UpdateURL.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! AOO/OOo version&lt;br /&gt;
! UpdateURL&lt;br /&gt;
! Resource in repository&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2&lt;br /&gt;
| https://www.openoffice.org/projects/update34/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update34/ProductUpdateService/check.Update ooo-site/update34]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2.1&lt;br /&gt;
| https://www.openoffice.org/projects/update35/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update35/ProductUpdateService/check.Update ooo-site/update35]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.3&lt;br /&gt;
| https://www.openoffice.org/projects/update36/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update36/ProductUpdateService/check.Update ooo-site/update36]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.0&lt;br /&gt;
| https://www.openoffice.org/projects/update38/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update38/ProductUpdateService/check.Update ooo-site/update38]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.1&lt;br /&gt;
| https://www.openoffice.org/projects/update/aoo341/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update/aoo341/check.Update ooo-site/update/aoo341]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo40/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo40/check.Update updates-site/aoo40]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo401/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo401/check.Update updates-site/aoo401]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo410/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo410/check.Update updates-site/aoo410]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo411/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo411/check.Update updates-site/aoo411]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.2&lt;br /&gt;
| https://ooo-updates.apache.org/aoo412/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo412/check.Update updates-site/aoo412]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.3&lt;br /&gt;
| https://ooo-updates.apache.org/aoo413/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo413/check.Update updates-site/aoo413]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.4&lt;br /&gt;
| https://ooo-updates.apache.org/aoo414/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo414/check.Update updates-site/aoo414]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.5&lt;br /&gt;
| https://ooo-updates.apache.org/aoo415/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo415/check.Update updates-site/aoo415]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.6&lt;br /&gt;
| https://ooo-updates.apache.org/aoo416/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo416/check.Update updates-site/aoo416]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.7&lt;br /&gt;
| https://ooo-updates.apache.org/aoo417/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo417/check.Update updates-site/aoo417]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.8&lt;br /&gt;
| https://ooo-updates.apache.org/aoo418/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo418/check.Update updates-site/aoo418]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.9&lt;br /&gt;
| https://ooo-updates.apache.org/aoo419/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo419/check.Update updates-site/aoo419]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.10&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4110/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4110/check.Update updates-site/aoo4110]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.11&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4111/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4111/check.Update updates-site/aoo4111]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.12&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4112/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4112/check.Update updates-site/aoo4112]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.13&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4113/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4113/check.Update updates-site/aoo4113]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.14&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4114/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4114/check.Update updates-site/aoo4114]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.15&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4115/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4115/check.Update updates-site/aoo4115]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Update Feeds for versions 3.2 to 3.4.1 are part of the user website content. Thus, a changed Update Feed needs to be published - as it is needed for changed usual user website content.&lt;br /&gt;
The Update Feeds for versions 4.0.0 to 4.1.15 only need to be changed as its publication is done automatically by certain services provided by ASF Infra.&lt;br /&gt;
&lt;br /&gt;
Update Feeds can be generated by using the bash script and corresponding meta data which is available at [https://svn.apache.org/repos/asf/openoffice/devtools/genUpdateFeed/ genUpdateFeed].&lt;br /&gt;
&lt;br /&gt;
= Update Notification Protocol =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Since version 2.0.3 OpenOffice.org users of builds providing an UpdateURL can manually check for available updates by invoking {{menu|Help|Check for Updates…}}. Starting with version 2.0.4 OpenOffice.org can perform this check automatically in a user configurable interval. &lt;br /&gt;
&lt;br /&gt;
This is an attempt to define a second version of the update notification protocol, which is better extendable, can also be used for [[Extensions | extensions]] and no longer uses HTTP post requests.&lt;br /&gt;
&lt;br /&gt;
{{Note|Note: Even though this document is a draft, it seems to be the actually implemented version as of OpenOffice.org 3.3. See http://s.apache.org/e2u for more information.}}&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&lt;br /&gt;
The update notification request is a https get request to an URL, which may contain the operating system and processor type the OpenOffice instance is compiled for either as part of the URL or as URL parameter.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://update.services.openoffice.org/ProductUpdateService/check.Update2?_OS=Solaris&amp;amp;_ARCH=SPARC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://www.example.org/MyProduct/MyOS/MyArch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== User-Agent field ==&lt;br /&gt;
&lt;br /&gt;
To reduce the amount of transfered data when asking for OpenOffice updates, the user agent field contains all information required to identify a specific build: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
User-Agent: OpenOffice.org/2.2 (680m212 (Build:9263); Solaris; SPARC; BundledLanguages=en-US_fr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Accept-Language field ==&lt;br /&gt;
&lt;br /&gt;
To be able to return language specific feeds, OpenOffice.org sets the Accept-Language http request header field to the UI language currently in use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Accept-Language: en-GB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Update documents and feeds ==&lt;br /&gt;
&lt;br /&gt;
The simplest possible reply is of the following form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
  &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
  &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
  &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
  &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/inst:description&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the type attribute of the update tag is &amp;quot;text/html&amp;quot;, OOo will pass the URL specified in the src attribute to a browser. If you specify a different type, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&amp;amp;os=solarissparcwjre&amp;amp;lang=en-US&amp;amp;version=2.4&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OOo will download the referenced file itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The other supported reply format, which also allows to include several components or several versions of a single component, is to embed the update document in an [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;OpenOffice.org Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;The OpenOffice.org Project&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;OpenOffice.org 2.2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9e&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;summary&amp;gt;Click here to go to the download page.&amp;lt;/summary&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;OpenOffice.org_2_en-US_fr&amp;quot; label=&amp;quot;OpenOffice.org 2.2 US english/french&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
        &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
        &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
        &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
        &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
    &amp;lt;/content&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; OpenOffice.org 3.x update information example&lt;br /&gt;
&lt;br /&gt;
The following content of a &amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; directly references update information for a German Windows OpenOffice.org 3.3.0:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang=&amp;quot;en-US&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Product Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
&amp;lt;author&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;The OpenOffice Project&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
        &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
&amp;lt;/author&amp;gt;&lt;br /&gt;
&amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
&amp;lt;entry&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Update available&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;!-- IMPORTANT: category MUST be equal with UpdateID in version.ini --&amp;gt;&lt;br /&gt;
        &amp;lt;category term=&amp;quot;OpenOffice.org_3_de&amp;quot; label=&amp;quot;OpenOffice.org update&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
        &amp;lt;summary&amp;gt;Text below download information (should be localized)&amp;lt;/summary&amp;gt;&lt;br /&gt;
        &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:id&amp;gt;OpenOffice.org_3_de&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:version&amp;gt;&amp;#039;new version information&amp;#039;&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- buildid must be higher as installed version --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:buildid&amp;gt;9580&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:os&amp;gt;Windows&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:arch&amp;gt;x86&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- app/octet-stream generates direct download as background-process --&amp;gt;&lt;br /&gt;
                        &amp;lt;!--&amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://download.services.openoffice.org/files/localized/de/3.3.0/OOo_3.3.0_Win_x86_install-wJRE_de.exe&amp;quot;/&amp;gt;--&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- text/html opens src-link in default browser --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://download.openoffice.org&amp;quot;/&amp;gt;&lt;br /&gt;
                &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
        &amp;lt;/content&amp;gt;&lt;br /&gt;
&amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;inst:id&amp;gt; string of the component to be updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extension developers might prefer to link to the update description file instead of embedding it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;My Extention Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;Extension Developer&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://example.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;update@example.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Version 2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://example.org/myextension/latest.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;MyExtension+version&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;MyExtension&amp;quot; label=&amp;quot;My Extension&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot; src=&amp;quot;http://example.org/myextension/latest/myextension.update.xml&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;identifier&amp;gt; value of the extension to be updated.&lt;br /&gt;
&lt;br /&gt;
= A glance on the code for the Apache OpenOffice 3.4 release =&lt;br /&gt;
&lt;br /&gt;
The following describes some deeper insight of the &amp;quot;Check for Updates...&amp;quot; code in the office. It should help us to re-activate a corresponding web service when Apache OpenOffice 3.4 has been released. (Do we need a real web service? Something to be discussed.)&lt;br /&gt;
&lt;br /&gt;
The information given here is based on the work of Regina (regina at apache dot org), Ariel (arielch at apache dot org) and Kay (kschenk at apache dot org) found in the corresponding mailing list thread on ooo-dev - see http://s.apache.org/e2u.&lt;br /&gt;
Having this information gave me (orw at apache dot org) the right pointers for deeper investigations.&lt;br /&gt;
&lt;br /&gt;
== summary information about request to &amp;lt;UpdateURL&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;UpdateURL&amp;gt;, found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the office installation is typically an HTTPS URL.&lt;br /&gt;
The office sends a GET request to this URL. Two header fields are included in this request which are already mentioned above.&lt;br /&gt;
These are &amp;quot;Accept-Language&amp;quot; and &amp;quot;User-Agent&amp;quot;.&lt;br /&gt;
* &amp;quot;Accept-Language&amp;quot; contains the language of current locale - found in configuration item &amp;quot;org.openoffice.Setup/L10N&amp;quot;, attribute &amp;quot;ooLocale&amp;quot;&lt;br /&gt;
* &amp;quot;User-Agent&amp;quot; contains needed information to identify the installed office version - see above. The information matches the following pattern which is found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt;:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;PRODUCT&amp;gt; (${buildid}; ${_OS}; ${_ARCH}; BundledLanguages=${AllLanguages}) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
On platforms other than Windows the &amp;lt;UpdateURL&amp;gt; contains (at least since OOo 3.3) a query part. It is &amp;#039;&amp;#039;?pkgfmt=&amp;lt;pkgformat&amp;gt;&amp;#039;&amp;#039; which especially for Linux platforms identifies the package format of the office installation.&lt;br /&gt;
&lt;br /&gt;
It reveals that this information can be used to create the corresponding information for the request response.&lt;br /&gt;
&lt;br /&gt;
== information about processing the request response ==&lt;br /&gt;
&lt;br /&gt;
The response is expected to be a corresponding XML snippet.&lt;br /&gt;
As shown in the above examples, two types of XML snippets as responses are possible:&lt;br /&gt;
a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response and a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. The distinction between the two is made by its first element. If it is &amp;lt;feed&amp;gt; it is treated as a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response, otherwise as a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response is an XML snippet which is expected to have the format as the XML snippet in file [http://svn.apache.org/repos/asf/incubator/ooo/trunk/main/instsetoo_native/util/update.xml update.xml], found in our source repository.&lt;br /&gt;
&lt;br /&gt;
The following conditions must hold to perform further evaluation of the response:&lt;br /&gt;
# value of &amp;lt;inst:os&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_ARCH}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:arch&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_OS}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; is greater than the one of the installed office - &amp;#039;&amp;#039;${buildid}&amp;#039;&amp;#039;.&lt;br /&gt;
If these conditions hold, the following information is retrieved:&lt;br /&gt;
# values of attributes &amp;lt;src&amp;gt; and &amp;lt;type&amp;gt; of &amp;lt;inst:update&amp;gt;&lt;br /&gt;
#* if value of &amp;lt;type&amp;gt; equals &amp;quot;text/html&amp;quot;, the value of &amp;lt;src&amp;gt; is taken as an website from which the new version can be downloaded manually. Otherwise (also in case that attribute &amp;lt;type&amp;gt; is missing) the value of &amp;lt;src&amp;gt; is interpreted as a download link to the new version.&lt;br /&gt;
#* all &amp;lt;inst:update&amp;gt; elements are evaluated. The information of the first one is used - provide download of version or provide link to download website. The purpose of the other is not known.&lt;br /&gt;
# value of &amp;lt;inst:version&amp;gt; - will be shown in the corresponding dialog.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; - currently its purpose is not known.&lt;br /&gt;
If the first information - download website or download link - can be found in the XML snippet, the corresponding dialog will state that a new version is available. The user can then download it manually or can trigger an automatic download.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response is expected to conform to [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed] - as stated above in the example area.&lt;br /&gt;
Each content of the &amp;lt;content&amp;gt; element of an atom entry (&amp;lt;entry&amp;gt; element) whose &amp;lt;category&amp;gt; element has an attribute &amp;lt;term&amp;gt; whose value matches the &amp;lt;UpdateId&amp;gt; value found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the installed office is treated as &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. &lt;br /&gt;
&lt;br /&gt;
The first of these &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; responses from which a download website or a download link could be retrieved that matches the above given conditions is taken - the following ones are not processed. It will be shown to the user that a new version is available, and the user can trigger the download manually or automatically. One further information is taken from this atom entry - the content of the &amp;lt;summary&amp;gt; element. It is shown in the corresponding dialog.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
[[Category:Spec]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=256723</id>
		<title>Update Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=256723"/>
		<updated>2023-02-28T21:55:09Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Available Update Feeds */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Update Service for AOO/OOo is a service which provides via HTTP or HTTPS an Update Feed (or an Update Document) for installed AOO/OOo instances. This allows a requesting AOO/OOo instance to check if a new AOO version is available and to provide the result of this check to the user.&lt;br /&gt;
&lt;br /&gt;
Currently, the Update Service is implemented via static HTTP/HTTPS resources. No dynamic component is involved which processes the information given in the HTTP/HTTPS request of the AOO/OOo instance in order to generate a response.&lt;br /&gt;
&lt;br /&gt;
= Available Update Feeds =&lt;br /&gt;
&lt;br /&gt;
For the following AOO/OOo versions an Update Feed is made available.&lt;br /&gt;
The table contains the UpdateURL which an AOO/OOo instance of the specified version is requesting via HTTP/HTTPS and the resource in our svn repository which serves the HTTP/HTTPS resource behind the UpdateURL.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! AOO/OOo version&lt;br /&gt;
! UpdateURL&lt;br /&gt;
! Resource in repository&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2&lt;br /&gt;
| https://www.openoffice.org/projects/update34/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update34/ProductUpdateService/check.Update ooo-site/update34]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2.1&lt;br /&gt;
| https://www.openoffice.org/projects/update35/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update35/ProductUpdateService/check.Update ooo-site/update35]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.3&lt;br /&gt;
| https://www.openoffice.org/projects/update36/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update36/ProductUpdateService/check.Update ooo-site/update36]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.0&lt;br /&gt;
| https://www.openoffice.org/projects/update38/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update38/ProductUpdateService/check.Update ooo-site/update38]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.1&lt;br /&gt;
| https://www.openoffice.org/projects/update/aoo341/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update/aoo341/check.Update ooo-site/update/aoo341]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo40/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo40/check.Update updates-site/aoo40]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo401/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo401/check.Update updates-site/aoo401]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo410/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo410/check.Update updates-site/aoo410]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo411/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo411/check.Update updates-site/aoo411]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.2&lt;br /&gt;
| https://ooo-updates.apache.org/aoo412/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo412/check.Update updates-site/aoo412]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.3&lt;br /&gt;
| https://ooo-updates.apache.org/aoo413/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo413/check.Update updates-site/aoo413]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.4&lt;br /&gt;
| https://ooo-updates.apache.org/aoo414/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo414/check.Update updates-site/aoo414]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.5&lt;br /&gt;
| https://ooo-updates.apache.org/aoo415/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo415/check.Update updates-site/aoo415]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.6&lt;br /&gt;
| https://ooo-updates.apache.org/aoo416/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo416/check.Update updates-site/aoo416]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.7&lt;br /&gt;
| https://ooo-updates.apache.org/aoo417/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo417/check.Update updates-site/aoo417]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.8&lt;br /&gt;
| https://ooo-updates.apache.org/aoo418/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo418/check.Update updates-site/aoo418]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.9&lt;br /&gt;
| https://ooo-updates.apache.org/aoo419/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo419/check.Update updates-site/aoo419]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.10&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4110/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4110/check.Update updates-site/aoo4110]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.11&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4111/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4111/check.Update updates-site/aoo4111]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.12&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4112/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4112/check.Update updates-site/aoo4112]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.13&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4113/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4113/check.Update updates-site/aoo4113]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.14&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4114/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4114/check.Update updates-site/aoo4114]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.15&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4115/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4115/check.Update updates-site/aoo4115]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Update Feeds for versions 3.2 to 3.4.1 are part of the user website content. Thus, a changed Update Feed needs to be published - as it is needed for changed usual user website content.&lt;br /&gt;
The Update Feeds for versions 4.0.0 to 4.1.15 only need to be changed as its publication is done automatically by certain services provided by ASF Infra.&lt;br /&gt;
&lt;br /&gt;
Update Feeds can be generated by using the bash script and corresponding meta data which is available at [https://svn.apache.org/repos/asf/openoffice/devtools/genUpdateFeed/ genUpdateFeed].&lt;br /&gt;
&lt;br /&gt;
= Update Notification Protocol =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Since version 2.0.3 OpenOffice.org users of builds providing an UpdateURL can manually check for available updates by invoking {{menu|Help|Check for Updates…}}. Starting with version 2.0.4 OpenOffice.org can perform this check automatically in a user configurable interval. &lt;br /&gt;
&lt;br /&gt;
This is an attempt to define a second version of the update notification protocol, which is better extendable, can also be used for [[Extensions | extensions]] and no longer uses HTTP post requests.&lt;br /&gt;
&lt;br /&gt;
{{Note|Note: Even though this document is a draft, it seems to be the actually implemented version as of OpenOffice.org 3.3. See http://s.apache.org/e2u for more information.}}&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&lt;br /&gt;
The update notification request is a https get request to an URL, which may contain the operating system and processor type the OpenOffice instance is compiled for either as part of the URL or as URL parameter.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://update.services.openoffice.org/ProductUpdateService/check.Update2?_OS=Solaris&amp;amp;_ARCH=SPARC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://www.example.org/MyProduct/MyOS/MyArch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== User-Agent field ==&lt;br /&gt;
&lt;br /&gt;
To reduce the amount of transfered data when asking for OpenOffice updates, the user agent field contains all information required to identify a specific build: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
User-Agent: OpenOffice.org/2.2 (680m212 (Build:9263); Solaris; SPARC; BundledLanguages=en-US_fr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Accept-Language field ==&lt;br /&gt;
&lt;br /&gt;
To be able to return language specific feeds, OpenOffice.org sets the Accept-Language http request header field to the UI language currently in use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Accept-Language: en-GB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Update documents and feeds ==&lt;br /&gt;
&lt;br /&gt;
The simplest possible reply is of the following form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
  &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
  &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
  &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
  &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/inst:description&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the type attribute of the update tag is &amp;quot;text/html&amp;quot;, OOo will pass the URL specified in the src attribute to a browser. If you specify a different type, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&amp;amp;os=solarissparcwjre&amp;amp;lang=en-US&amp;amp;version=2.4&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OOo will download the referenced file itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The other supported reply format, which also allows to include several components or several versions of a single component, is to embed the update document in an [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;OpenOffice.org Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;The OpenOffice.org Project&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;OpenOffice.org 2.2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9e&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;summary&amp;gt;Click here to go to the download page.&amp;lt;/summary&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;OpenOffice.org_2_en-US_fr&amp;quot; label=&amp;quot;OpenOffice.org 2.2 US english/french&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
        &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
        &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
        &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
        &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
    &amp;lt;/content&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; OpenOffice.org 3.x update information example&lt;br /&gt;
&lt;br /&gt;
The following content of a &amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; directly references update information for a German Windows OpenOffice.org 3.3.0:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang=&amp;quot;en-US&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Product Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
&amp;lt;author&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;The OpenOffice Project&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
        &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
&amp;lt;/author&amp;gt;&lt;br /&gt;
&amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
&amp;lt;entry&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Update available&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;!-- IMPORTANT: category MUST be equal with UpdateID in version.ini --&amp;gt;&lt;br /&gt;
        &amp;lt;category term=&amp;quot;OpenOffice.org_3_de&amp;quot; label=&amp;quot;OpenOffice.org update&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
        &amp;lt;summary&amp;gt;Text below download information (should be localized)&amp;lt;/summary&amp;gt;&lt;br /&gt;
        &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:id&amp;gt;OpenOffice.org_3_de&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:version&amp;gt;&amp;#039;new version information&amp;#039;&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- buildid must be higher as installed version --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:buildid&amp;gt;9580&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:os&amp;gt;Windows&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:arch&amp;gt;x86&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- app/octet-stream generates direct download as background-process --&amp;gt;&lt;br /&gt;
                        &amp;lt;!--&amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://download.services.openoffice.org/files/localized/de/3.3.0/OOo_3.3.0_Win_x86_install-wJRE_de.exe&amp;quot;/&amp;gt;--&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- text/html opens src-link in default browser --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://download.openoffice.org&amp;quot;/&amp;gt;&lt;br /&gt;
                &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
        &amp;lt;/content&amp;gt;&lt;br /&gt;
&amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;inst:id&amp;gt; string of the component to be updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extension developers might prefer to link to the update description file instead of embedding it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;My Extention Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;Extension Developer&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://example.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;update@example.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Version 2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://example.org/myextension/latest.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;MyExtension+version&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;MyExtension&amp;quot; label=&amp;quot;My Extension&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot; src=&amp;quot;http://example.org/myextension/latest/myextension.update.xml&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;identifier&amp;gt; value of the extension to be updated.&lt;br /&gt;
&lt;br /&gt;
= A glance on the code for the Apache OpenOffice 3.4 release =&lt;br /&gt;
&lt;br /&gt;
The following describes some deeper insight of the &amp;quot;Check for Updates...&amp;quot; code in the office. It should help us to re-activate a corresponding web service when Apache OpenOffice 3.4 has been released. (Do we need a real web service? Something to be discussed.)&lt;br /&gt;
&lt;br /&gt;
The information given here is based on the work of Regina (regina at apache dot org), Ariel (arielch at apache dot org) and Kay (kschenk at apache dot org) found in the corresponding mailing list thread on ooo-dev - see http://s.apache.org/e2u.&lt;br /&gt;
Having this information gave me (orw at apache dot org) the right pointers for deeper investigations.&lt;br /&gt;
&lt;br /&gt;
== summary information about request to &amp;lt;UpdateURL&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;UpdateURL&amp;gt;, found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the office installation is typically an HTTPS URL.&lt;br /&gt;
The office sends a GET request to this URL. Two header fields are included in this request which are already mentioned above.&lt;br /&gt;
These are &amp;quot;Accept-Language&amp;quot; and &amp;quot;User-Agent&amp;quot;.&lt;br /&gt;
* &amp;quot;Accept-Language&amp;quot; contains the language of current locale - found in configuration item &amp;quot;org.openoffice.Setup/L10N&amp;quot;, attribute &amp;quot;ooLocale&amp;quot;&lt;br /&gt;
* &amp;quot;User-Agent&amp;quot; contains needed information to identify the installed office version - see above. The information matches the following pattern which is found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt;:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;PRODUCT&amp;gt; (${buildid}; ${_OS}; ${_ARCH}; BundledLanguages=${AllLanguages}) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
On platforms other than Windows the &amp;lt;UpdateURL&amp;gt; contains (at least since OOo 3.3) a query part. It is &amp;#039;&amp;#039;?pkgfmt=&amp;lt;pkgformat&amp;gt;&amp;#039;&amp;#039; which especially for Linux platforms identifies the package format of the office installation.&lt;br /&gt;
&lt;br /&gt;
It reveals that this information can be used to create the corresponding information for the request response.&lt;br /&gt;
&lt;br /&gt;
== information about processing the request response ==&lt;br /&gt;
&lt;br /&gt;
The response is expected to be a corresponding XML snippet.&lt;br /&gt;
As shown in the above examples, two types of XML snippets as responses are possible:&lt;br /&gt;
a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response and a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. The distinction between the two is made by its first element. If it is &amp;lt;feed&amp;gt; it is treated as a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response, otherwise as a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response is an XML snippet which is expected to have the format as the XML snippet in file [http://svn.apache.org/repos/asf/incubator/ooo/trunk/main/instsetoo_native/util/update.xml update.xml], found in our source repository.&lt;br /&gt;
&lt;br /&gt;
The following conditions must hold to perform further evaluation of the response:&lt;br /&gt;
# value of &amp;lt;inst:os&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_ARCH}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:arch&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_OS}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; is greater than the one of the installed office - &amp;#039;&amp;#039;${buildid}&amp;#039;&amp;#039;.&lt;br /&gt;
If these conditions hold, the following information is retrieved:&lt;br /&gt;
# values of attributes &amp;lt;src&amp;gt; and &amp;lt;type&amp;gt; of &amp;lt;inst:update&amp;gt;&lt;br /&gt;
#* if value of &amp;lt;type&amp;gt; equals &amp;quot;text/html&amp;quot;, the value of &amp;lt;src&amp;gt; is taken as an website from which the new version can be downloaded manually. Otherwise (also in case that attribute &amp;lt;type&amp;gt; is missing) the value of &amp;lt;src&amp;gt; is interpreted as a download link to the new version.&lt;br /&gt;
#* all &amp;lt;inst:update&amp;gt; elements are evaluated. The information of the first one is used - provide download of version or provide link to download website. The purpose of the other is not known.&lt;br /&gt;
# value of &amp;lt;inst:version&amp;gt; - will be shown in the corresponding dialog.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; - currently its purpose is not known.&lt;br /&gt;
If the first information - download website or download link - can be found in the XML snippet, the corresponding dialog will state that a new version is available. The user can then download it manually or can trigger an automatic download.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response is expected to conform to [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed] - as stated above in the example area.&lt;br /&gt;
Each content of the &amp;lt;content&amp;gt; element of an atom entry (&amp;lt;entry&amp;gt; element) whose &amp;lt;category&amp;gt; element has an attribute &amp;lt;term&amp;gt; whose value matches the &amp;lt;UpdateId&amp;gt; value found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the installed office is treated as &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. &lt;br /&gt;
&lt;br /&gt;
The first of these &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; responses from which a download website or a download link could be retrieved that matches the above given conditions is taken - the following ones are not processed. It will be shown to the user that a new version is available, and the user can trigger the download manually or automatically. One further information is taken from this atom entry - the content of the &amp;lt;summary&amp;gt; element. It is shown in the corresponding dialog.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
[[Category:Spec]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=256722</id>
		<title>Update Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Update_Service&amp;diff=256722"/>
		<updated>2023-02-28T21:51:58Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Available Update Feeds */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Update Service for AOO/OOo is a service which provides via HTTP or HTTPS an Update Feed (or an Update Document) for installed AOO/OOo instances. This allows a requesting AOO/OOo instance to check if a new AOO version is available and to provide the result of this check to the user.&lt;br /&gt;
&lt;br /&gt;
Currently, the Update Service is implemented via static HTTP/HTTPS resources. No dynamic component is involved which processes the information given in the HTTP/HTTPS request of the AOO/OOo instance in order to generate a response.&lt;br /&gt;
&lt;br /&gt;
= Available Update Feeds =&lt;br /&gt;
&lt;br /&gt;
For the following AOO/OOo versions an Update Feed is made available.&lt;br /&gt;
The table contains the UpdateURL which an AOO/OOo instance of the specified version is requesting via HTTP/HTTPS and the resource in our svn repository which serves the HTTP/HTTPS resource behind the UpdateURL.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! AOO/OOo version&lt;br /&gt;
! UpdateURL&lt;br /&gt;
! Resource in repository&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2&lt;br /&gt;
| https://www.openoffice.org/projects/update34/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update34/ProductUpdateService/check.Update ooo-site/update34]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.2.1&lt;br /&gt;
| https://www.openoffice.org/projects/update35/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update35/ProductUpdateService/check.Update ooo-site/update35]&lt;br /&gt;
|-&lt;br /&gt;
| OOo 3.3&lt;br /&gt;
| https://www.openoffice.org/projects/update36/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update36/ProductUpdateService/check.Update ooo-site/update36]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.0&lt;br /&gt;
| https://www.openoffice.org/projects/update38/ProductUpdateService/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update38/ProductUpdateService/check.Update ooo-site/update38]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 3.4.1&lt;br /&gt;
| https://www.openoffice.org/projects/update/aoo341/check.Update&lt;br /&gt;
| [https://github.com/apache/openoffice-org/blob/main/assets/projects/update/aoo341/check.Update ooo-site/update/aoo341]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo40/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo40/check.Update updates-site/aoo40]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.0.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo401/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo401/check.Update updates-site/aoo401]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.0&lt;br /&gt;
| https://ooo-updates.apache.org/aoo410/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo410/check.Update updates-site/aoo410]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.1&lt;br /&gt;
| https://ooo-updates.apache.org/aoo411/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo411/check.Update updates-site/aoo411]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.2&lt;br /&gt;
| https://ooo-updates.apache.org/aoo412/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo412/check.Update updates-site/aoo412]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.3&lt;br /&gt;
| https://ooo-updates.apache.org/aoo413/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo413/check.Update updates-site/aoo413]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.4&lt;br /&gt;
| https://ooo-updates.apache.org/aoo414/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo414/check.Update updates-site/aoo414]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.5&lt;br /&gt;
| https://ooo-updates.apache.org/aoo415/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo415/check.Update updates-site/aoo415]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.6&lt;br /&gt;
| https://ooo-updates.apache.org/aoo416/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo416/check.Update updates-site/aoo416]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.7&lt;br /&gt;
| https://ooo-updates.apache.org/aoo417/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo417/check.Update updates-site/aoo417]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.8&lt;br /&gt;
| https://ooo-updates.apache.org/aoo418/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo418/check.Update updates-site/aoo418]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.9&lt;br /&gt;
| https://ooo-updates.apache.org/aoo419/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo419/check.Update updates-site/aoo419]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.10&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4110/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4110/check.Update updates-site/aoo4110]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.11&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4111/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4111/check.Update updates-site/aoo4111]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.12&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4112/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4112/check.Update updates-site/aoo4112]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.13&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4113/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4113/check.Update updates-site/aoo4113]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.14&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4114/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4114/check.Update updates-site/aoo4114]&lt;br /&gt;
|-&lt;br /&gt;
| AOO 4.1.15&lt;br /&gt;
currently empty&lt;br /&gt;
| https://ooo-updates.apache.org/aoo4115/check.Update&lt;br /&gt;
| [https://svn.apache.org/repos/asf/openoffice/updates-site/trunk/aoo4115/check.Update updates-site/aoo4115]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Update Feeds for versions 3.2 to 3.4.1 are part of the user website content. Thus, a changed Update Feed needs to be published - as it is needed for changed usual user website content.&lt;br /&gt;
The Update Feeds for versions 4.0.0 to 4.1.14 only need to be changed as its publication is done automatically by certain services provided by ASF Infra.&lt;br /&gt;
&lt;br /&gt;
Update Feeds can be generated by using the bash script and corresponding meta data which is available at [https://svn.apache.org/repos/asf/openoffice/devtools/genUpdateFeed/ genUpdateFeed].&lt;br /&gt;
&lt;br /&gt;
= Update Notification Protocol =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Since version 2.0.3 OpenOffice.org users of builds providing an UpdateURL can manually check for available updates by invoking {{menu|Help|Check for Updates…}}. Starting with version 2.0.4 OpenOffice.org can perform this check automatically in a user configurable interval. &lt;br /&gt;
&lt;br /&gt;
This is an attempt to define a second version of the update notification protocol, which is better extendable, can also be used for [[Extensions | extensions]] and no longer uses HTTP post requests.&lt;br /&gt;
&lt;br /&gt;
{{Note|Note: Even though this document is a draft, it seems to be the actually implemented version as of OpenOffice.org 3.3. See http://s.apache.org/e2u for more information.}}&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&lt;br /&gt;
The update notification request is a https get request to an URL, which may contain the operating system and processor type the OpenOffice instance is compiled for either as part of the URL or as URL parameter.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://update.services.openoffice.org/ProductUpdateService/check.Update2?_OS=Solaris&amp;amp;_ARCH=SPARC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UpdateURL=https://www.example.org/MyProduct/MyOS/MyArch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== User-Agent field ==&lt;br /&gt;
&lt;br /&gt;
To reduce the amount of transfered data when asking for OpenOffice updates, the user agent field contains all information required to identify a specific build: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
User-Agent: OpenOffice.org/2.2 (680m212 (Build:9263); Solaris; SPARC; BundledLanguages=en-US_fr)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Accept-Language field ==&lt;br /&gt;
&lt;br /&gt;
To be able to return language specific feeds, OpenOffice.org sets the Accept-Language http request header field to the UI language currently in use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Accept-Language: en-GB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Update documents and feeds ==&lt;br /&gt;
&lt;br /&gt;
The simplest possible reply is of the following form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
  &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
  &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
  &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
  &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/inst:description&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As the type attribute of the update tag is &amp;quot;text/html&amp;quot;, OOo will pass the URL specified in the src attribute to a browser. If you specify a different type, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://openoffice.bouncer.osuosl.org/?product=OpenOffice.org&amp;amp;os=solarissparcwjre&amp;amp;lang=en-US&amp;amp;version=2.4&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OOo will download the referenced file itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The other supported reply format, which also allows to include several components or several versions of a single component, is to embed the update document in an [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;OpenOffice.org Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;The OpenOffice.org Project&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;OpenOffice.org 2.2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9e&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;summary&amp;gt;Click here to go to the download page.&amp;lt;/summary&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;OpenOffice.org_2_en-US_fr&amp;quot; label=&amp;quot;OpenOffice.org 2.2 US english/french&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;inst:id&amp;gt;OpenOffice.org_2_en-US_fr&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
        &amp;lt;inst:version&amp;gt;2.2.0-5&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
        &amp;lt;inst:buildid&amp;gt;9095&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
        &amp;lt;inst:os&amp;gt;Solaris&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
        &amp;lt;inst:arch&amp;gt;SPARC&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
    &amp;lt;/content&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; OpenOffice.org 3.x update information example&lt;br /&gt;
&lt;br /&gt;
The following content of a &amp;#039;&amp;#039;description.xml&amp;#039;&amp;#039; directly references update information for a German Windows OpenOffice.org 3.3.0:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang=&amp;quot;en-US&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Product Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
&amp;lt;author&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;The OpenOffice Project&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;uri&amp;gt;http://openoffice.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
        &amp;lt;email&amp;gt;updatefeed@openoffice.org&amp;lt;/email&amp;gt;&lt;br /&gt;
&amp;lt;/author&amp;gt;&lt;br /&gt;
&amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
&amp;lt;entry&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Update available&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;id&amp;gt;urn:uuid:76676544&amp;lt;/id&amp;gt;&lt;br /&gt;
        &amp;lt;!-- IMPORTANT: category MUST be equal with UpdateID in version.ini --&amp;gt;&lt;br /&gt;
        &amp;lt;category term=&amp;quot;OpenOffice.org_3_de&amp;quot; label=&amp;quot;OpenOffice.org update&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;updated&amp;gt;2011-01-01T08:00:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
        &amp;lt;summary&amp;gt;Text below download information (should be localized)&amp;lt;/summary&amp;gt;&lt;br /&gt;
        &amp;lt;content type=&amp;quot;application/xml&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;inst:description xmlns:inst=&amp;quot;http://installation.openoffice.org/description&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:id&amp;gt;OpenOffice.org_3_de&amp;lt;/inst:id&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:version&amp;gt;&amp;#039;new version information&amp;#039;&amp;lt;/inst:version&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- buildid must be higher as installed version --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:buildid&amp;gt;9580&amp;lt;/inst:buildid&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:os&amp;gt;Windows&amp;lt;/inst:os&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:arch&amp;gt;x86&amp;lt;/inst:arch&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- app/octet-stream generates direct download as background-process --&amp;gt;&lt;br /&gt;
                        &amp;lt;!--&amp;lt;inst:update type=&amp;quot;application/octet-stream&amp;quot; src=&amp;quot;http://download.services.openoffice.org/files/localized/de/3.3.0/OOo_3.3.0_Win_x86_install-wJRE_de.exe&amp;quot;/&amp;gt;--&amp;gt;&lt;br /&gt;
                        &amp;lt;!-- text/html opens src-link in default browser --&amp;gt;&lt;br /&gt;
                        &amp;lt;inst:update type=&amp;quot;text/html&amp;quot; src=&amp;quot;http://download.openoffice.org&amp;quot;/&amp;gt;&lt;br /&gt;
                &amp;lt;/inst:description&amp;gt;&lt;br /&gt;
        &amp;lt;/content&amp;gt;&lt;br /&gt;
&amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;inst:id&amp;gt; string of the component to be updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extension developers might prefer to link to the update description file instead of embedding it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&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;feed xmlns=&amp;quot;http://www.w3.org/2005/Atom&amp;quot; xml:lang”en-US”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;title&amp;gt;My Extention Update Feed&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot; href=&amp;quot;http://update.services.openoffice.org/ooo/snapshot.html&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
  &amp;lt;author&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;Extension Developer&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;uri&amp;gt;http://example.org&amp;lt;/uri&amp;gt;&lt;br /&gt;
    &amp;lt;email&amp;gt;update@example.org&amp;lt;/email&amp;gt;&lt;br /&gt;
  &amp;lt;/author&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;urn:uuid:a4ccd383-1dd1-11b2-a95c-0003ba566e9d&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;entry&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Version 2 available&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;link rel=&amp;quot;alternate&amp;quot; type=&amp;quot;text/html&amp;quot;&lt;br /&gt;
        href=&amp;quot;http://example.org/myextension/latest.html&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;id&amp;gt;MyExtension+version&amp;lt;/id&amp;gt;&lt;br /&gt;
    &amp;lt;updated&amp;gt;2006-11-06T18:30:02Z&amp;lt;/updated&amp;gt;&lt;br /&gt;
    &amp;lt;category term=&amp;quot;MyExtension&amp;quot; label=&amp;quot;My Extension&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;content type=&amp;quot;application/xml&amp;quot; src=&amp;quot;http://example.org/myextension/latest/myextension.update.xml&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/entry&amp;gt;&lt;br /&gt;
&amp;lt;/feed&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: to allow proper filtering, the &amp;lt;tt&amp;gt;term&amp;lt;/tt&amp;gt; tag of the &amp;lt;category&amp;gt; node of the &amp;lt;atom:entry&amp;gt; element must contain the &amp;lt;identifier&amp;gt; value of the extension to be updated.&lt;br /&gt;
&lt;br /&gt;
= A glance on the code for the Apache OpenOffice 3.4 release =&lt;br /&gt;
&lt;br /&gt;
The following describes some deeper insight of the &amp;quot;Check for Updates...&amp;quot; code in the office. It should help us to re-activate a corresponding web service when Apache OpenOffice 3.4 has been released. (Do we need a real web service? Something to be discussed.)&lt;br /&gt;
&lt;br /&gt;
The information given here is based on the work of Regina (regina at apache dot org), Ariel (arielch at apache dot org) and Kay (kschenk at apache dot org) found in the corresponding mailing list thread on ooo-dev - see http://s.apache.org/e2u.&lt;br /&gt;
Having this information gave me (orw at apache dot org) the right pointers for deeper investigations.&lt;br /&gt;
&lt;br /&gt;
== summary information about request to &amp;lt;UpdateURL&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;UpdateURL&amp;gt;, found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the office installation is typically an HTTPS URL.&lt;br /&gt;
The office sends a GET request to this URL. Two header fields are included in this request which are already mentioned above.&lt;br /&gt;
These are &amp;quot;Accept-Language&amp;quot; and &amp;quot;User-Agent&amp;quot;.&lt;br /&gt;
* &amp;quot;Accept-Language&amp;quot; contains the language of current locale - found in configuration item &amp;quot;org.openoffice.Setup/L10N&amp;quot;, attribute &amp;quot;ooLocale&amp;quot;&lt;br /&gt;
* &amp;quot;User-Agent&amp;quot; contains needed information to identify the installed office version - see above. The information matches the following pattern which is found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt;:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;PRODUCT&amp;gt; (${buildid}; ${_OS}; ${_ARCH}; BundledLanguages=${AllLanguages}) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
On platforms other than Windows the &amp;lt;UpdateURL&amp;gt; contains (at least since OOo 3.3) a query part. It is &amp;#039;&amp;#039;?pkgfmt=&amp;lt;pkgformat&amp;gt;&amp;#039;&amp;#039; which especially for Linux platforms identifies the package format of the office installation.&lt;br /&gt;
&lt;br /&gt;
It reveals that this information can be used to create the corresponding information for the request response.&lt;br /&gt;
&lt;br /&gt;
== information about processing the request response ==&lt;br /&gt;
&lt;br /&gt;
The response is expected to be a corresponding XML snippet.&lt;br /&gt;
As shown in the above examples, two types of XML snippets as responses are possible:&lt;br /&gt;
a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response and a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. The distinction between the two is made by its first element. If it is &amp;lt;feed&amp;gt; it is treated as a &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response, otherwise as a &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response is an XML snippet which is expected to have the format as the XML snippet in file [http://svn.apache.org/repos/asf/incubator/ooo/trunk/main/instsetoo_native/util/update.xml update.xml], found in our source repository.&lt;br /&gt;
&lt;br /&gt;
The following conditions must hold to perform further evaluation of the response:&lt;br /&gt;
# value of &amp;lt;inst:os&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_ARCH}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:arch&amp;gt; matches the one of the installed office - &amp;#039;&amp;#039;${_OS}&amp;#039;&amp;#039;.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; is greater than the one of the installed office - &amp;#039;&amp;#039;${buildid}&amp;#039;&amp;#039;.&lt;br /&gt;
If these conditions hold, the following information is retrieved:&lt;br /&gt;
# values of attributes &amp;lt;src&amp;gt; and &amp;lt;type&amp;gt; of &amp;lt;inst:update&amp;gt;&lt;br /&gt;
#* if value of &amp;lt;type&amp;gt; equals &amp;quot;text/html&amp;quot;, the value of &amp;lt;src&amp;gt; is taken as an website from which the new version can be downloaded manually. Otherwise (also in case that attribute &amp;lt;type&amp;gt; is missing) the value of &amp;lt;src&amp;gt; is interpreted as a download link to the new version.&lt;br /&gt;
#* all &amp;lt;inst:update&amp;gt; elements are evaluated. The information of the first one is used - provide download of version or provide link to download website. The purpose of the other is not known.&lt;br /&gt;
# value of &amp;lt;inst:version&amp;gt; - will be shown in the corresponding dialog.&lt;br /&gt;
# value of &amp;lt;inst:buildid&amp;gt; - currently its purpose is not known.&lt;br /&gt;
If the first information - download website or download link - can be found in the XML snippet, the corresponding dialog will state that a new version is available. The user can then download it manually or can trigger an automatic download.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
==== &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response ====&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;feed&amp;#039;&amp;#039; response is expected to conform to [http://tools.ietf.org/wg/atompub/draft-ietf-atompub-format/rfc4287.txt atom feed] - as stated above in the example area.&lt;br /&gt;
Each content of the &amp;lt;content&amp;gt; element of an atom entry (&amp;lt;entry&amp;gt; element) whose &amp;lt;category&amp;gt; element has an attribute &amp;lt;term&amp;gt; whose value matches the &amp;lt;UpdateId&amp;gt; value found in file &amp;lt;version.ini&amp;gt; resp. &amp;lt;versionrc&amp;gt; of the installed office is treated as &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; response. &lt;br /&gt;
&lt;br /&gt;
The first of these &amp;#039;&amp;#039;simple&amp;#039;&amp;#039; responses from which a download website or a download link could be retrieved that matches the above given conditions is taken - the following ones are not processed. It will be shown to the user that a new version is available, and the user can trigger the download manually or automatically. One further information is taken from this atom entry - the content of the &amp;lt;summary&amp;gt; element. It is shown in the corresponding dialog.&lt;br /&gt;
&lt;br /&gt;
If no download website/link is found, the dialog will state that the installed office is up to date.&lt;br /&gt;
&lt;br /&gt;
[[Category:Spec]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256697</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256697"/>
		<updated>2023-02-14T20:21:39Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Cygwin now at 3.4.6&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.13-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.6-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: At the moment &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building AOO.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=256695</id>
		<title>Documentation/FAQ/Installation/How do I install Apache OpenOffice on Windows?</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=256695"/>
		<updated>2023-02-11T17:54:37Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: Added instructions for MicroSoft Store&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: How do I install OpenOffice on Microsoft Windows?}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=question/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How do I install OpenOffice on Microsoft Windows?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;section end=question/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Download from OpenOffice website (Example for Windows 7 / 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The installation file for Windows from [https://www.openoffice.org/download OpenOffice download] is a self-extracting EXE file. Download the file. Your browser will save the file to your hard drive.&lt;br /&gt;
&lt;br /&gt;
* Locate the downloaded file on your hard drive and double-click the file to start the installation.&lt;br /&gt;
:You will be asked for a temporary folder to extract the files that are needed for installation. By default, this is a new folder on your desktop. You can enter any other drive and folder.&lt;br /&gt;
:Next, the files will be extracted to the folder and the Setup.exe program inside that folder is started automatically. Double-click the file named Setup.exe if it does not start automatically.&lt;br /&gt;
* A guided installation dialog will begin and will step you through the installation process.&lt;br /&gt;
* If you want to install to another drive and folder than the default &amp;#039;C:\Program files (x86)&amp;#039;, choose the User Defined setup and change the path.&lt;br /&gt;
:For AOO 4.x, the next folder will be created:&lt;br /&gt;
 &amp;#039;C:\Program Files (x86)\OpenOffice 4&amp;#039;&lt;br /&gt;
* After installation finished, you should not delete the folder with the extracted files, because these files will be required for a repair via Windows system manager.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Install via Microsoft Store (Example for Windows 10 / 11)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Open the Microsoft Store App on your computer and search for &amp;quot;{{AOo}}&amp;quot;. Alternatively you can go to the [https://apps.microsoft.com/store/detail/XP89J5462CMGJD Web Store] and open the Store App from there.&lt;br /&gt;
&lt;br /&gt;
* Click on the &amp;quot;Install&amp;quot; button.&lt;br /&gt;
* After downloading the installation file you will be asked for permission to install. After successful installation the button changes to &amp;quot;Installed&amp;quot;.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu.&lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/FAQ/Installation|1 Installation]]&lt;br /&gt;
[[nl:NL/Documentation/FAQ/Installation/How_do_I_install_OpenOffice.org_on_Windows?]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Galaxy&amp;diff=256694</id>
		<title>Galaxy</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Galaxy&amp;diff=256694"/>
		<updated>2023-02-10T20:34:38Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: Fixed typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [http://ui.openoffice.org/VisualDesign/OOo_galaxy.html Galaxy Icons] - default in OpenOffice.org 3.0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples of the new Galaxy Style&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[http://ui.openoffice.org/VisualDesign/gifs/Icons/example_galaxy_icons.png http://ui.openoffice.org/VisualDesign/gifs/Icons/example_galaxy_icons.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Characteristic of the Galaxy Style ===&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Color&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*New, clear, fresh and harmonic [[color palette]]&lt;br /&gt;
*Be careful with saturation, avoiding extremes&lt;br /&gt;
*Color language - same symbolism like [[Andromeda]] style&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Form&amp;#039;&amp;#039;&amp;#039; 	&lt;br /&gt;
&lt;br /&gt;
*Simple! reduce to basic elements and characterisics&lt;br /&gt;
*Smooth look (round corners)&lt;br /&gt;
	&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Perspective&amp;#039;&amp;#039;&amp;#039; 	&lt;br /&gt;
&lt;br /&gt;
*Straight-on perspective&lt;br /&gt;
*rotating objects when to make exceptions&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Lighting&amp;#039;&amp;#039;&amp;#039; 	&lt;br /&gt;
&lt;br /&gt;
*Two-part system (top-down light, buttom-up light)&lt;br /&gt;
*Low sheen, diffuse reflection materials&lt;br /&gt;
*Realistic effects (glassy, metallic)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Technical&amp;#039;&amp;#039;&amp;#039; 	&lt;br /&gt;
&lt;br /&gt;
*24bit with alpha channel&lt;br /&gt;
*New behavior for [http://ui.openoffice.org/VisualDesign/OOo_galaxy_disabled.html disabled icons]&lt;br /&gt;
*small size (16 x 16 pixel), large size (26 x 26 pixel)&lt;br /&gt;
*High contrast version of all icons&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  	&amp;#039;&amp;#039;&amp;#039;Please, keep in mind:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 	* Look good on different platforms&lt;br /&gt;
  	* Make sure that Windows and Mac users feel at home&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Visual Design]]&lt;br /&gt;
[[Category:Icons]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=256693</id>
		<title>Documentation/FAQ/Installation/How do I install Apache OpenOffice on Windows?</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=256693"/>
		<updated>2023-02-10T20:30:20Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: How do I install OpenOffice on Microsoft Windows?}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=question/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How do I install OpenOffice on Microsoft Windows?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;section end=question/&amp;gt;&lt;br /&gt;
Examples for Windows 7 / 10 / 11&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
The installation file for Windows from [https://www.openoffice.org/download OpenOffice download] is a self-extracting EXE file. Download the file. Your browser will save the file to your hard drive.&lt;br /&gt;
&lt;br /&gt;
* Locate the downloaded file on your hard drive and double-click the file to start the installation.&lt;br /&gt;
:You will be asked for a temporary folder to extract the files that are needed for installation. By default, this is a new folder on your desktop. You can enter any other drive and folder.&lt;br /&gt;
:Next, the files will be extracted to the folder and the Setup.exe program inside that folder is started automatically. Double-click the file named Setup.exe if it does not start automatically. &lt;br /&gt;
* A guided installation dialog will begin and will step you through the installation process.&lt;br /&gt;
* If you want to install to another drive and folder than the default &amp;#039;C:\Program files (x86)&amp;#039;, choose the User Defined setup and change the path.&lt;br /&gt;
:For AOO 4.x, the next folder will be created: &lt;br /&gt;
 &amp;#039;C:\Program Files (x86)\OpenOffice 4&amp;#039;&lt;br /&gt;
* After installation finished, you should not delete the folder with the extracted files, because these files will be required for a repair via Windows system manager.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu. &lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/FAQ/Installation|1 Installation]]&lt;br /&gt;
[[nl:NL/Documentation/FAQ/Installation/How_do_I_install_OpenOffice.org_on_Windows?]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=256692</id>
		<title>Documentation/FAQ/Installation/How do I install Apache OpenOffice on Windows?</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/FAQ/Installation/How_do_I_install_Apache_OpenOffice_on_Windows%3F&amp;diff=256692"/>
		<updated>2023-02-09T13:57:39Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: How do I install OpenOffice on Microsoft Windows?}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=question/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How do I install OpenOffice on Microsoft Windows?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;section end=question/&amp;gt;&lt;br /&gt;
Examples for Windows 7 / 10 / 11&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=answer/&amp;gt;&lt;br /&gt;
The installation file for Windows from [https://www.openoffice.org/download OpenOffice download] is a self-extracting EXE file. Download the file. Your browser will save the file to your hard drive.&lt;br /&gt;
&lt;br /&gt;
* Locate the downloaded file on your hard drive and double-click the file to start the installation.&lt;br /&gt;
:You will be asked for a temporary folder to extract the files that are needed for installation. By default, this is a new folder on your desktop. You can enter any other drive and folder.&lt;br /&gt;
:Next, the files will be extracted to the folder and the Setup.exe program inside that folder is started automatically. Double-click the file named Setup.exe if it does not start automatically. &lt;br /&gt;
* A guided installation dialog will begin and will step you through the installation process.&lt;br /&gt;
* If you want to install to another drive and folder than the default &amp;#039;C:\Program files (x86)&amp;#039;, choose the User Defined setup and change the path.&lt;br /&gt;
:For AOO 4.x, the next folder will be created: &lt;br /&gt;
 &amp;#039;C:\Program Files (x86)\OpenOffice 4&amp;#039;&lt;br /&gt;
:For OOo 3.x, the next folder will be created: &lt;br /&gt;
 &amp;#039;C:\Program files (x86)\OpenOffice.org 3&amp;#039;&lt;br /&gt;
* After installation finished, you should not delete the folder with the extracted files, because these files will be required for a repair via Windows system manager.&lt;br /&gt;
* Start {{AOo}} with the desktop icon, or from the OpenOffice menu in your Start menu. &lt;br /&gt;
&amp;lt;section end=answer/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/FAQ/Installation|1 Installation]]&lt;br /&gt;
[[nl:NL/Documentation/FAQ/Installation/How_do_I_install_OpenOffice.org_on_Windows?]]&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256662</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256662"/>
		<updated>2023-01-28T15:48:13Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Windows 7, Windows 8.1, Windows 10 */ Ant 1.10.x is now at 1.10.13&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.13-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.5-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: At the moment &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building AOO.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256661</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256661"/>
		<updated>2023-01-28T14:33:25Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Windows 7, Windows 8.1, Windows 10 */ Fixed typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Choose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.12-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.5-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: At the moment &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building AOO.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256654</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256654"/>
		<updated>2023-01-23T21:51:44Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Cygwin now at 3.4.5&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Chose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.12-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.5-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: At the moment &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building AOO.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256610</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256610"/>
		<updated>2022-12-17T13:20:32Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Cygwin DLL now at 3.4.3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Chose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.12-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.3-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: At the moment &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building AOO.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256603</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256603"/>
		<updated>2022-12-11T21:54:29Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Cygwin is at 3.4.2 now&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Chose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.12-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.2-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: At the moment &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building AOO.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256601</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256601"/>
		<updated>2022-12-11T12:51:52Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of November 11, 2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to [[#Build_with_Cygwin_64-bit|build with Cygwin 64-bit]] now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Chose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.12-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.0-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: At the moment &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building AOO.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256600</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256600"/>
		<updated>2022-12-11T12:41:40Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Windows 7, Windows 8.1, Windows 10 */ Cygwin-x86 is deprecated now&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the last Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: As of 11.11.2022 Cygwin-x86 is [https://cygwin.com/pipermail/cygwin/2022-November/252449.html deprecated]. It is highly recommended to use Cygwin-x86_64 to build AOO now.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Chose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.12-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.0-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: At the moment &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building AOO.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256575</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256575"/>
		<updated>2022-12-06T23:57:56Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the latest Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: &amp;quot;make&amp;quot; has to be downgraded to version 4.2.1-2 for building AOO up to version 4.1.7.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Chose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.12-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.0-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: At the moment &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building AOO.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256571</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256571"/>
		<updated>2022-12-06T15:46:45Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Build with Cygwin 64-bit */ Cygwin now at 3.4.0&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the latest Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: &amp;quot;make&amp;quot; has to be downgraded to version 4.2.1-2 for building AOO up to version 4.1.7.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Chose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.12-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.4.0-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: &amp;quot;make&amp;quot; has to be downgraded to version 4.3-1 for building AOO up to version 4.1.13.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256552</id>
		<title>Building old versions</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Building_old_versions&amp;diff=256552"/>
		<updated>2022-11-26T14:55:52Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* How to */ Added hyperlinks to GitHub&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: Building old versions}}&lt;br /&gt;
[[Category: Development]]&lt;br /&gt;
[[Category: Porting]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
It can be useful to build an old version of Apache OpenOffice, for example in order to regression test a bug in the latest version.&lt;br /&gt;
&lt;br /&gt;
However, over time, patches get committed to allow building on newer build environments (newer operating systems, newer settings, newer libraries (as old ones may be unavailable), etc). Thus old AOO versions may be unable to build with the latest operating systems and latest libraries. Instead of the long and difficult process of setting up an old build environment, we can backport certain patches that added the features we need, and still build older versions on newer build environments.&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
From the base directory of trunk/, for each patch that is newer than the version you are building and that you need, run this in REVERSE ORDER of the order given below, (ie. bottom to top, which is oldest to newest):&lt;br /&gt;
&lt;br /&gt;
git show &amp;lt;commit&amp;gt; | patch -p1&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. git show 9fbe0120861764e7e644476857de32c44186c400 | patch -p1)&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
or with SVN:&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
svn diff -c &amp;lt;version&amp;gt; | patch -p0&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
(eg. svn diff -c 1825798 | patch -p0)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Git commit&lt;br /&gt;
! SVN revision&lt;br /&gt;
! Feature provided&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/9fbe0120861764e7e644476857de32c44186c400 9fbe0120861764e7e644476857de32c44186c400]&lt;br /&gt;
| 1863883&lt;br /&gt;
| *nix: detection of Java &amp;gt; 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/76c3a0c573cde39048d0726c858eb62004271068 76c3a0c573cde39048d0726c858eb62004271068]&lt;br /&gt;
| 1863875&lt;br /&gt;
| All: detection of AdoptOpenJDK&amp;#039;s JRE.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/d496b0995fb8aa8b6c60a683761ad01f8d0d32d6 d496b0995fb8aa8b6c60a683761ad01f8d0d32d6]&lt;br /&gt;
| 1825849&lt;br /&gt;
| All: fix building lucene with Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/16cc2feaee8ae594780687837b53b2d50018df78 16cc2feaee8ae594780687837b53b2d50018df78] &amp;lt;br/&amp;gt; [https://github.com/apache/openoffice/commit/d72465840bb64335098446c0558b486b239519f7 d72465840bb64335098446c0558b486b239519f7]&lt;br /&gt;
| 1825802 &amp;lt;br/&amp;gt; 1825798&lt;br /&gt;
| Windows: support building on Windows using Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/a77ce2d13c887a68f707e5b1c8c737146e59d1bf a77ce2d13c887a68f707e5b1c8c737146e59d1bf]&lt;br /&gt;
| 1825763&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.9&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/adb6f5d8a37c5b86304c6f182c17e5b29dcc384a adb6f5d8a37c5b86304c6f182c17e5b29dcc384a]&lt;br /&gt;
| 1815542&lt;br /&gt;
| Windows: allow oowintool to auto-detect 32 bit VC++ on Cygwin64.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/668ddc0174366a152e11e62b3e5599a8fb50bcb2 668ddc0174366a152e11e62b3e5599a8fb50bcb2]&lt;br /&gt;
| 1814757&lt;br /&gt;
| Windows: allow oowintool to auto-detect Java 1.8&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/910dbabb8417f5fbef278baca67290f523163a45 910dbabb8417f5fbef278baca67290f523163a45]&lt;br /&gt;
| 1729921&lt;br /&gt;
| #i126840# - Windows/MSVC build often fails in main/icu&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/2ed47956e3ec22116d5164494008afeac3f699a1 2ed47956e3ec22116d5164494008afeac3f699a1]&lt;br /&gt;
| 1700078&lt;br /&gt;
| #i126258# Fix build on systems using a recent version of GNU Patch.&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/apache/openoffice/commit/cddbce83059662dad08c06a4f7b247d7fbbbaa9d cddbce83059662dad08c06a4f7b247d7fbbbaa9d]&lt;br /&gt;
|&lt;br /&gt;
| Move operator to the public section. This solves visibility issues with modern gcc.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256551</id>
		<title>Documentation/Building Guide AOO/Step by step Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Documentation/Building_Guide_AOO/Step_by_step_Windows&amp;diff=256551"/>
		<updated>2022-11-23T20:27:25Z</updated>

		<summary type="html">&lt;p&gt;Mseidel: /* Windows 7, Windows 8.1, Windows 10 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Step by step building guide on Windows}}&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Category:Porting]]&lt;br /&gt;
[[Category:Build_System]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
This page is intended as a collection of simple step-by-step recipes to build Apache OpenOffice from source code on Windows. A more thorough explanation of what the individual steps do and why they are necessary can be found in the [[Documentation/Building_Guide_AOO|building guide]].&lt;br /&gt;
&lt;br /&gt;
This version limits itself to either relatively recent versions of operating systems, or systems in which the OpenOffice PMC are activity using. A historical version of the step-by-step instructions for different platforms can be found [[Documentation/Building_Guide_AOO/Old_step_by_step|here]].&lt;br /&gt;
&lt;br /&gt;
= Windows 7, Windows 8.1, Windows 10 =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Complete requirements found at [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements General Build Requirements] and [https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows Building on Windows].&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This is a &amp;#039;&amp;#039;&amp;#039;sample&amp;#039;&amp;#039;&amp;#039; step-by-step guide - check the complete requirements and report on dev@openoffice.apache.org, if problems with this step-by-step guide occur.&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86.exe link to download the 32-bit version (the latest Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86.exe this direct link]. &amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;Note: &amp;quot;make&amp;quot; has to be downgraded to version 4.2.1-2 for building AOO up to version 4.1.7.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**Run the installer and click through the questions&lt;br /&gt;
**On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
**Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
**On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&amp;lt;i&amp;gt;(If you prefer to install packages with a Linux kind of touch, you can skip selecting the packages and instead select just the package &amp;lt;b&amp;gt;lynx&amp;lt;/b&amp;gt; (enter lynx in the Search box and select the lynx entry in the Web/Default section). You would then install the other packages from the cygwin command line using lynx as explained ahead. However, selecting the packages from the Cygwin interface is recommended.)&amp;lt;/i&amp;gt;&lt;br /&gt;
**Click {{button|Next}} to finish package selection.&lt;br /&gt;
**Click {{button|Next}} to resolve dependencies.&lt;br /&gt;
**After installation is finished click the {{button|Finish}} button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
*Start Cygwin bash in a terminal&lt;br /&gt;
&lt;br /&gt;
::In Windows 7 and later you can just type &amp;quot;cygwin&amp;quot; into the Start Menu search bar and then click on the Cygwin App. Or you can:&lt;br /&gt;
::*Press {{key|Windows|R}}&lt;br /&gt;
::*Type &amp;quot;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;C:\cygwin\Cygwin.bat&amp;lt;/font&amp;gt;&amp;quot; (if that&amp;#039;s the path you installed Cygwin to)&lt;br /&gt;
::*Hit {{button|Return}}.&lt;br /&gt;
:::&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the necessary packages from the Cygwin interface yet because you would prefer to install them using lynx from the Cygwin command line, then you should do so now. First install &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; from the Github repository:)&amp;lt;pre&amp;gt;cd /cygdrive/c/temp&amp;lt;/pre&amp;gt;(or any other temporary directory of your choice)&amp;lt;pre&amp;gt;lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg &amp;gt; apt-cyg&amp;amp;#10;chmod +x apt-cyg&amp;amp;#10;mv apt-cyg /usr/local/bin/&amp;lt;/pre&amp;gt;Use &amp;lt;b&amp;gt;apt-cyg&amp;lt;/b&amp;gt; to install missing cygwin packages:&amp;lt;pre&amp;gt;apt-cyg install perl zip unzip gperf autoconf rsync gcc-g++ bison flex patch git make&amp;lt;/pre&amp;gt;(You must also provide to install the missing perl packages, for example with &amp;quot;cpan -i Archive::Zip LWP::UserAgent LWP::Protocol XML::Parser&amp;quot; etc. however there can be some dependency conflicts, the recommended method is installing the packages from the cygwin interface)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Replace symlinked awk with copy of gawk.exe:&amp;lt;pre&amp;gt;rm /bin/awk&amp;amp;#10;mv /bin/gawk.exe /bin/awk.exe&amp;lt;/pre&amp;gt;Note that if the &amp;lt;code&amp;gt;rm&amp;lt;/code&amp;gt; command fails then the &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; is not necessary.&lt;br /&gt;
&lt;br /&gt;
* Install Java, &amp;#039;&amp;#039;&amp;#039;32-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
::Choose between JDK or OpenJDK. Versions 1.7 and 1.8 are known to work.&lt;br /&gt;
::(We need the 32-bit version because JNI requires the JVM&amp;#039;s bitness to match the C/C++ bitness).&lt;br /&gt;
&lt;br /&gt;
* Install Apache Ant&lt;br /&gt;
**Browse to https://ant.apache.org/bindownload.cgi&lt;br /&gt;
**Chose a mirror near you.&lt;br /&gt;
**Download the zip archive (currently that is apache-ant-1.9.16-bin.zip or apache-ant-1.10.12-bin.zip).&amp;lt;br /&amp;gt; Note that Apache Ant 1.10.x will only work with Java 8.&lt;br /&gt;
**Open downloaded archive in file explorer and unzip it to a location of your choice, eg &amp;lt;code&amp;gt;c:\&amp;lt;/code&amp;gt;.  Note that &amp;lt;code&amp;gt;C:\Program Files (x86)&amp;lt;/code&amp;gt; will not work due to problems of quoting the spaces and parentheses.&lt;br /&gt;
    &lt;br /&gt;
* Install Microsoft Windows SDK for Windows 7 and .NET Framework 3.5. SP1 (recommended by Microsoft. Note: later versions of the Windows SDK will not work. AOO can not be built with MSVC 2010 or 2012 - MSVC 2008 is needed and is found in the Windows 7 SDK) &lt;br /&gt;
** This is now an obsolete piece of software that is no longer on Microsoft&amp;#039;s website. It was available as a web installer, or a DVD ISO image file.&lt;br /&gt;
** The web installer could be downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=3138 and the ISO from http://www.microsoft.com/en-us/download/details.aspx?id=18950 but neither exist now.&lt;br /&gt;
** Thankfully, the Internet Archive hosts copies of many old websites and their files, and happens to contain a copy of these files. You cannot use the web installer as the server it connects to is no longer around, but the ISO files at http://web.archive.org/web/20160112223658/http://www.microsoft.com/en-us/download/details.aspx?id=18950 are offline installers and still work. The download takes long to start and is very slow.&lt;br /&gt;
** You cannot install the 32 bit ISO on 64 bit Windows. Use 32 bit ISO on 32 bit Windows, and the 64 bit ISO on 64 bit Windows.&lt;br /&gt;
** The ISO file can either be burned to a DVD, or simply unzipped and run from that directory.&lt;br /&gt;
** You can use the default values in the installation dialog, except when prompted with the installation path use a path that has no spaces or parentheses (e.g. &amp;quot;C:\Microsoft_SDKs\Windows\v7.0&amp;quot;), because otherwise the build process will choke on those spaces or parentheses.&lt;br /&gt;
&lt;br /&gt;
* Download MS Visual C++ 2008 SP1 Redistributable Package (x86)&lt;br /&gt;
** https://www.microsoft.com/en-us/download/details.aspx?id=26368 (There have been security updates, which are not included in older versions)&lt;br /&gt;
**Download files vcredist_x86.exe and vcredist_x64.exe&amp;lt;br /&amp;gt; We need both 32 and 64-bit versions because we build 64-bit shell extensions. If you download the most recent version of Apache OpenOffice and unpack it, you will find the files vcredist_x86.exe and vcredist_x64.exe in folder redist. You can use them as well.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install DirectX SDK (for graphics hardware support in the slide show)&lt;br /&gt;
** Browse to http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=6812&lt;br /&gt;
** Download and run DXSDK_Jun10.exe. Choose to install to a custom path, and use a path that has neither spaces nor parentheses (e.g. &amp;lt;code&amp;gt;C:\Microsoft_DirectX_SDK_June_2010&amp;lt;/code&amp;gt;), because otherwise the build will not be able to parse the path and will choke on the spaces or parentheses. &amp;lt;i&amp;gt;(If you receive an S1023 error towards the end of the installation, [https://support.microsoft.com/it-it/kb/2728613 the fix is simple]. The issue occurs because a newer version of the Visual C++ 2010 Redistributable is present on the computer. The June 2010 DirectX SDK installs version 10.0.30319 of the Visual C++ Redistributable. To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the June 2010 DirectX SDK. You may have one or more of the following products installed: Visual C++ 2010 Redistributable x86, Visual C++ 2010 Redistributable x64.  You can use Add or Remove Programs in Control Panel to uninstall the products. Or, you can run the following commands from an administrator command prompt: &amp;lt;pre&amp;gt;MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} &amp;amp;#10;MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}&amp;lt;/pre&amp;gt; and then run the DirectX SDK installer. After installing the June 2010 DirectX SDK, you may then reinstall the most current version of the [https://www.microsoft.com/download/details.aspx?id=26999 Visual C++ 2010 Redistributable Package].)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optional: Install Windows Driver Kit 7.1.0 (for enabling activex)&lt;br /&gt;
** Download [https://www.microsoft.com/en-us/download/details.aspx?id=11800 WDK 7.1.0] (is an ISO image). Cannot use later versions of Windows Driver Kit because they do not have ATL which is needed to build AOO with ActiveX. (I recommend to download using Internet Explorer, otherwise the install may fail a Windows Authenticity test, whereas this does not happen using Internet Explorer to download the ISO image.)&lt;br /&gt;
** Mount the ISO image and install.&lt;br /&gt;
&lt;br /&gt;
* Optional: Install NSIS installer (for creating the EXE installer)&lt;br /&gt;
** Browse to [https://sourceforge.net/projects/nsis/files/ https://sourceforge.net/projects/nsis/files/]&lt;br /&gt;
** Download and run the installer (note that versions of NSIS &amp;gt;= 3.* are only compatible with branch 4.1.3 or later! otherwise you will have to install at most [https://sourceforge.net/projects/nsis/files/NSIS%202/2.51/nsis-2.51-setup.exe/download NSIS 2.51]). Recommended to install to custom location, choose a path without any spaces (e.g. &amp;quot;C:\NSIS&amp;quot;).&lt;br /&gt;
** For Asian languages (ja, ko, zh-CN, zh-TW) the language files have to be edited, otherwise the graphics in the first installer windows don&amp;#039;t fit. In &amp;quot;{NSISDIR}\Contrib\Language files\Japanese.nlf&amp;quot; (Korean.nlf, TradChinese.nlf, SimpChinese.nlf accordingly) change: &amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;{font-name}&amp;amp;#10;{font-size}&amp;lt;/pre&amp;gt; to:&amp;lt;pre&amp;gt;Font and size - dash (-) means default&amp;amp;#10;-&amp;amp;#10;-&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Optional: Install the MozillaBuild tools. These are needed to build the &amp;lt;b&amp;gt;NSS&amp;lt;/b&amp;gt; (&amp;quot;Network Security Services&amp;quot;) module. Download from [https://ftp.mozilla.org/pub/mozilla/libraries/win32/ here]. Install to a custom path without any spaces, such as &amp;lt;code&amp;gt;C:\mozilla-build&amp;lt;/code&amp;gt;. MozillaBuild tools version 3.0 or newer require a 64-bit Windows. When building on 32-bit Windows it is recommended to use version 2.2.0.&lt;br /&gt;
&lt;br /&gt;
* Get AOO source code. You can use the source release or check out from SVN. Build from source release if you want to build OpenOffice once but don&amp;#039;t want to contribute patches. If you will contribute patches, you need to generate them against an actual version of trunk. In this case check out from SVN to be able to rebase before generating patches. You can work with subversion or with git-svn. Do not use a tool that changes line endings, such as the default configuration of TortoiseSVN. NOTE: Do not place the source directory under the Cygwin file system. This means that placing it, for example, at &amp;#039;/home/aoo/source&amp;#039; is not recommended.&lt;br /&gt;
&lt;br /&gt;
::; Source release:&lt;br /&gt;
::* Browse to https://www.openoffice.org/download/other.html#tested-sdk and locate the table row that starts with &amp;quot;Source code&amp;quot;&lt;br /&gt;
::* Download source code in an archive format of your choice (note that tar.bz2 is typically smaller than tar.gz and zip)&lt;br /&gt;
::* Optional: Verify the archive - following given link or instructions.&lt;br /&gt;
::* Unpack source (in cygwin-terminal). Use the file name exactly as downloaded.&amp;lt;pre&amp;gt;cd /tmp&amp;amp;#10;tar -xjf &amp;lt;download-location&amp;gt;/&amp;lt;downloaded-source-release.tar.bz2&amp;gt;&amp;amp;#10;cd &amp;lt;unpacked-source&amp;gt;/main&amp;amp;#10;&amp;lt;/pre&amp;gt;Do not use Windows unpacker, they might cause access right problems. &lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using subversion :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the subversion package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install subversion&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo-trunk&amp;amp;#10;cd aoo-trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from Gitbox using git (Since 2019-08-03):&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed the git package from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
::*Start with creating a parent directory for the source code: &amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache Git repository&amp;lt;pre&amp;gt;git clone https://gitbox.apache.org/repos/asf/openoffice.git aoo&amp;amp;#10;cd aoo/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::; Checkout from SVN using git-svn :&lt;br /&gt;
::*&amp;lt;i&amp;gt;(If you haven&amp;#039;t installed git and git-svn from the cygwin interface, please do so now by re-running the cygwin installer, or if you used lynx and apt-cyg then:)&amp;lt;pre&amp;gt;apt-cyg install git git-svn&amp;lt;/pre&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
::*Get the actual revision number from https://svn.apache.org/viewvc/openoffice/trunk/, e.g. 1234567&lt;br /&gt;
::*Create an empty directory and change to it, e.g.&amp;lt;pre&amp;gt;mkdir /cygdrive/c/source&amp;amp;#10;cd /cygdrive/c/source&amp;lt;/pre&amp;gt;&lt;br /&gt;
::*Check out source from Apache SVN repository&amp;lt;pre&amp;gt;git svn clone --revision 1234567:HEAD https://svn.apache.org/repos/asf/openoffice/trunk&amp;amp;#10;cd trunk/main&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remember the source path (this is optional, it makes for an easy reference):&amp;lt;pre&amp;gt;SourceMain=`pwd`&amp;lt;/pre&amp;gt; [Why? I have not used it. [[User:Regina|Regina]] ([[User talk:Regina|talk]]) 21:42, 24 February 2013 (UTC)]&lt;br /&gt;
:[Added explanation above [[User:Andre|Andre]]]&lt;br /&gt;
&lt;br /&gt;
* Optional: Get dbghelp.dll (for using the &amp;lt;code&amp;gt;--enable-dbgutil&amp;lt;/code&amp;gt; configure option)&lt;br /&gt;
** This dll is part of MS Visual Studio. If you do not have it installed, download and install &amp;quot;Visual Studio Community&amp;quot; from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx &lt;br /&gt;
** Copy file to &amp;lt;code&amp;gt;main/external/dbghelp&amp;lt;/code&amp;gt;. Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/dbghelp.dll $SourceMain/external/dbghelp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy vcredist_x86.exe and vcredist_x64.exe (see above) to main/external/vcredist.&lt;br /&gt;
** Use Windows file manager or in cygwin terminal&amp;lt;pre&amp;gt;cp &amp;lt;download-location&amp;gt;/vcredist_x86.exe $SourceMain/external/vcredist&amp;amp;#10;cp &amp;lt;download-location&amp;gt;/vcredist_x64.exe $SourceMain/external/vcredist&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get GDI+ redistributable:&lt;br /&gt;
**Browse to https://www.microsoft.com/en-us/download/details.aspx?id=18909&lt;br /&gt;
**Download [https://web.archive.org/web/20190714055850/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe WindowsXP-KB975337-x86-ENU.exe]&lt;br /&gt;
**Run WindowsXP-KB975337-x86-ENU.exe&lt;br /&gt;
**Enter a temporary path (eg c:\temp\gdiplus) in the dialog and click OK to extract files&lt;br /&gt;
**Copy gdiplus.dll to main/external/gdiplus&amp;lt;pre&amp;gt;cp /cygdrive/c/temp/gdiplus/asms/10/msft/windows/gdiplus/gdiplus.dll $SourceMain/external/gdiplus/&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Remove the temporary path&amp;lt;pre&amp;gt;rm -fr /cygdrive/c/temp/gdiplus&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Get msvcr100.dll:&lt;br /&gt;
**We need the 32-bit dll (version 10.0.40219.325), available from: https://www.microsoft.com/en-US/download/details.aspx?id=26999&amp;lt;pre&amp;gt;cp /cygdrive/c/Windows/System32/msvcr100.dll $SourceMain/external/msvcp100&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure that you are in the main source directory:&amp;lt;pre&amp;gt;cd $SourceMain&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* Run autoconf to create the configure script:&amp;lt;pre&amp;gt;autoconf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Call configure&lt;br /&gt;
** For those paths that do have spaces, use the cygpath tool to get a shortened version without any spaces, which you can then use in the configuration directives without any trouble (adapt paths as necessary):&amp;lt;pre&amp;gt;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Java\jdk1.8.0_73&amp;quot; &amp;amp;#10;C:/PROGRA~2/Java/JDK18~1.0_7 &amp;amp;#10;$ cygpath -m -s &amp;quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC&amp;quot; &amp;amp;#10;C:/PROGRA~2/MI1DCA~1.0/VC&amp;lt;/pre&amp;gt;Run configure (again adapt paths as necessary)&amp;lt;pre&amp;gt;SDK_PATH=&amp;quot;/cygdrive/c/Microsoft_SDKs/Windows/v7.0&amp;quot;&amp;amp;#10;./configure \&amp;amp;#10;    --with-frame-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-psdk-home=&amp;quot;$SDK_PATH&amp;quot; \&amp;amp;#10;    --with-midl-path=&amp;quot;$SDK_PATH/bin&amp;quot; \&amp;amp;#10;    --with-ant-home=&amp;quot;/cygdrive/c/apache-ant-1.9.16&amp;quot; \&amp;amp;#10;    --with-jdk-home=&amp;quot;C:/PROGRA~2/Java/JDK18~1.0_7&amp;quot; \&amp;amp;#10;    --with-csc-path=&amp;quot;C:/Windows/Microsoft.NET/Framework/v3.5&amp;quot; \&amp;amp;#10;    --with-cl-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC&amp;quot; \&amp;amp;#10;    --with-asm-home=&amp;quot;C:/PROGRA~2/MI1DCA~1.0/VC/bin&amp;quot; \&amp;amp;#10;    --with-dmake-url=&amp;quot;https://github.com/jimjag/dmake/archive/v4.13.1/dmake-4.13.1.tar.gz&amp;quot; \&amp;amp;#10;    --disable-pch \&amp;amp;#10;    --disable-atl \&amp;amp;#10;    --disable-activex \&amp;amp;#10;    --disable-nss-module \&amp;amp;#10;    --without-junit&amp;lt;/pre&amp;gt;If you have installed the optional DirectX SDK then you can add the switch:&amp;lt;pre&amp;gt;    --with-directx-home=&amp;quot;C:/Microsoft_DirectX_SDK_June_2010&amp;quot;&amp;lt;/pre&amp;gt;If you have installed Windows Driver Kit 7.1.0 and would like to build with ATL and ActiveX functionality then remove the &amp;lt;code&amp;gt;--disable-activex&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;--disable-atl&amp;lt;/code&amp;gt; directives, and add the atl home directives: &amp;lt;pre&amp;gt;    --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \&amp;amp;#10;    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \&amp;amp;#10;    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \&amp;amp;#10;    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386&amp;lt;/pre&amp;gt;If you have installed NSIS you can use the relative directive &amp;lt;pre&amp;gt;    --with-nsis-path=&amp;quot;C:/NSIS&amp;quot;&amp;lt;/pre&amp;gt;If you have installed MozillaBuild tools you can use the relative switch:&amp;lt;pre&amp;gt;    --with-mozilla-build=&amp;quot;/cygdrive/d/mozilla-build&amp;quot;&amp;lt;/pre&amp;gt;You may also enable a few more switches (used for official releases: --enable-win-x64-shellext):&amp;lt;pre&amp;gt;    --enable-win-x64-shellext \&amp;amp;#10;    --enable-wiki-publisher \&amp;amp;#10;    --enable-category-b \&amp;amp;#10;    --enable-bundled-dictionaries&amp;lt;/pre&amp;gt;and if you would like to build for different locales you can use the lang switch (in this example, for English United States and for Italian):&amp;lt;pre&amp;gt;    --with-lang=&amp;quot;en-US it&amp;quot;&amp;lt;/pre&amp;gt;If you have copied over the dbghelp.dll and would like these extra features you can enable the debug switch:&amp;lt;pre&amp;gt;    --enable-dbgutil&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Install&amp;lt;br/&amp;gt;There are three options:&lt;br /&gt;
*# Regular install with integration into Windows.&amp;lt;br/&amp;gt;This allows only one instance of AOO to be installed.&lt;br /&gt;
*#* Start setup.exe and click through dialog:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Apache OpenOffice can be started via the Windows start menu.&lt;br /&gt;
*# Install without integration into Windows.&amp;lt;br/&amp;gt;This allows several instance of AOO, based on the same version, to be installed side by side.&amp;lt;br/&amp;gt;It still requires Administrator permissions.&lt;br /&gt;
*#* Start &amp;lt;code&amp;gt;setup.exe&amp;lt;/code&amp;gt; with option &amp;lt;code&amp;gt;-a&amp;lt;/code&amp;gt;:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;$SourceMain/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe -a&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Enter an installation path into the dialog and click through the dialog to finish installation.&lt;br /&gt;
*#* Start AOO by running&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;installation-path&amp;gt;/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
*# Unpack archive without installation.&amp;lt;br/&amp;gt;This does not require Administrator permissions&lt;br /&gt;
*#* Go to installation directory:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;cd &amp;lt;installation-target&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Unzip archive:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;unzip $SourceMain/instsetoo_native/wntmsci12.pro/Apache_OpenOffice/msi/install/en-US/Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
*#* Start AOO by running:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;./Apache_OpenOffice_4.1.4_Win_x86_install-arc_en-US/program/soffice.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
::: (Change the version number in the file name to match the version you built)&lt;br /&gt;
&lt;br /&gt;
== Build with Cygwin 64-bit ==&lt;br /&gt;
&lt;br /&gt;
{{Warn | Building AOO with Cygwin 64-bit will only work with trunk and the 4.2.x branch, it will &amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt; work with any 4.1.x branch!}} &lt;br /&gt;
&lt;br /&gt;
* Install Cygwin, &amp;#039;&amp;#039;&amp;#039;64-bit version&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Browse to [https://www.cygwin.com https://www.cygwin.com] and click on the setup-x86_64.exe link to download the 64-bit version (the latest Cygwin DLL known to work is 3.3.6-1) or use [https://www.cygwin.com/setup-x86_64.exe this direct link]. Note: For some older revisions &amp;quot;make&amp;quot; has to be downgraded to version 4.2.1-2 to build AOO from trunk or AOO42X.&lt;br /&gt;
** Run the installer and click through the questions&lt;br /&gt;
** On the &amp;quot;Choose A Download Site&amp;quot; select a nearby download server&lt;br /&gt;
** Expect a &amp;quot;Setup Alert&amp;quot; dialog box on the first cygwin install on the computer: click OK to close it&lt;br /&gt;
** On the page that allows you to select additional packages select: &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Archive&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;zip, unzip&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Devel&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;autoconf, gperf, gcc-g++, bison, flex, patch, git, make&amp;lt;/pre&amp;gt; From the &amp;#039;&amp;#039;&amp;#039;Net&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;rsync&amp;lt;/pre&amp;gt;From the &amp;#039;&amp;#039;&amp;#039;Perl&amp;#039;&amp;#039;&amp;#039; category: &amp;lt;pre&amp;gt;perl, perl-XML-SAX-Expat, perl-Archive-Zip, perl-LWP-Protocol-https, perl-XML-parser, perl-libwww-perl, perl-Digest-SHA, perl-Net-SSLeay&amp;lt;/pre&amp;gt;As a shortcut you can install everything needed with one command:&amp;lt;pre&amp;gt;setup-x86_64.exe -P zip -P unzip -P autoconf -P gperf -P gcc-g++ -P bison -P flex -P patch -P git -P make -P rsync -P perl -P perl-XML-SAX-Expat -P perl-Archive-Zip -P perl-LWP-Protocol-https -P perl-XML-parser -P perl-libwww-perl -P perl-Digest-SHA -P perl-Net-SSLeay&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Click Next to finish package selection.&lt;br /&gt;
** Click Next to resolve dependencies.&lt;br /&gt;
** After installation is finished click the Finish button to close the dialog.&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin bash in a terminal and follow all the steps for 32-bit Cygwin up to and including &amp;#039;./configure&amp;#039; with relative parameters&lt;br /&gt;
** Finish configuration and download missing external source tarballs and extensions&amp;lt;pre&amp;gt;./bootstrap&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Include the configured environment&amp;lt;pre&amp;gt;source winenv.set.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
** Build&amp;lt;pre&amp;gt;cd instsetoo_native/&amp;amp;#10;build --all&amp;lt;/pre&amp;gt;Depending on your computer this will take one or more hours to finish. You may want to experiment with the -P options for multi process builds to reduce the build time. &amp;lt;pre&amp;gt;build --all -P&amp;lt;m&amp;gt; -- -P&amp;lt;n&amp;gt;&amp;lt;/pre&amp;gt; tells build to use &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; processes (build up to &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; modules in parallel) and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; threads for each module.&lt;/div&gt;</summary>
		<author><name>Mseidel</name></author>
	</entry>
</feed>