<?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=Erpo41</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=Erpo41"/>
	<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/wiki/Special:Contributions/Erpo41"/>
	<updated>2026-10-18T23:58:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Getting_the_source&amp;diff=96988</id>
		<title>Getting the source</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Getting_the_source&amp;diff=96988"/>
		<updated>2008-10-25T04:20:41Z</updated>

		<summary type="html">&lt;p&gt;Erpo41: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|&lt;br /&gt;
|&lt;br /&gt;
=== Source code ===&lt;br /&gt;
&lt;br /&gt;
The source code can be downloaded as tarballs, e.g. [http://download.openoffice.org/3.0.0/source.html here for OOo 3.0.0]. In case there are newer releases or for developer snapshots please see the [http://download.openoffice.org/ Download Central] &amp;#039;&amp;#039;Development&amp;#039;&amp;#039; section.  The source is huge, so it was split to several files: for newer releases than OOo3.0 substitute OOo_3.0.0_ accordingly:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;OOo_3.0.0_src_core.tar.bz2&amp;lt;/strong&amp;gt; - the necessary part for each build, the other tarballs depend on this one.&lt;br /&gt;
* OOo_3.0.0_src_binfilter.tar.bz2 - the filters for old binary [[StarOffice]] formats.&lt;br /&gt;
* OOo_3.0.0_src_l10n.tar.bz2 - translations to other languages than English and German.&lt;br /&gt;
* OOo_3.0.0_src_sdk.tar.bz2 - OOo SDK (Software Development Kit).&lt;br /&gt;
* OOo_3.0.0_src_system.tar.bz2 - libraries that usually are on a standard Linux system and it&amp;#039;s not absolutely necessary to build own version on Linux. For a Windows build this package is usually required. If you intend to build on Linux &amp;lt;strong&amp;gt;without&amp;lt;/strong&amp;gt; this tarball:&lt;br /&gt;
** You will need to tell ./configure explicitly to use the system libraries for the software that is otherwise contained in this tarball. Otherwise the build will fail.&lt;br /&gt;
** System software is in active development. If it has changed significantly (and Mozilla sometimes does), the build may fail or OpenOffice.org may not work correctly.&lt;br /&gt;
* unowinreg.dll - Do not be fooled by the .dll extension. Without it, the build will fail on Linux and it is not included in the core package. Don&amp;#039;t worry about downloading this now because the build process will tell you where to get it and where to stick it to proceed. &lt;br /&gt;
&lt;br /&gt;
For a full build you need them all. For development, &amp;lt;tt&amp;gt;src_core&amp;lt;/tt&amp;gt; is usually all you need (but see the caveats for &amp;lt;tt&amp;gt;src_system&amp;lt;/tt&amp;gt; above).&lt;br /&gt;
&lt;br /&gt;
Download them to one directory and unpack them.  Information how to checkout from CVS follows.&lt;br /&gt;
&lt;br /&gt;
=== Vanilla build ===&lt;br /&gt;
&lt;br /&gt;
You might be interested particularly in the [http://tools.openoffice.org/dev_docs/build_linux.html#GetTheSourceCode Get the source code] section in the build guide.  It is written for Linux, but it is quite similar for all the platforms.&lt;br /&gt;
&lt;br /&gt;
 export &amp;#039;CVSROOT=:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs&amp;#039;&lt;br /&gt;
 cvs login&lt;br /&gt;
 (CVS password: anoncvs)&lt;br /&gt;
 cvs co -r &amp;lt;milestone&amp;gt; OpenOffice3&lt;br /&gt;
&lt;br /&gt;
The tool to browse project [http://tools.openoffice.org/source/browse/tools/ source code online] has some [http://tools.openoffice.org/servlets/ProjectSource additional hints].&lt;br /&gt;
&lt;br /&gt;
If you want just to test development releases, you can download already compiled builds from [http://download.openoffice.org/680/]. List of available Mac builds is in [[Mac OS X Development Builds]].&lt;br /&gt;
&lt;br /&gt;
SVN: See also [[OOo and Subversion]]&lt;br /&gt;
&lt;br /&gt;
== Checking out a CWS through CVS ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;This section is a draft!&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
First, find the CWS name such as picom.  Then, lookup the CWS name in EIS (e.g., [http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Id=5112&amp;amp;logon=true&amp;amp;OpenOnly=false&amp;amp;Section=All picom]).  Notice &amp;quot;Milestone (current)&amp;quot; is m222 (in this example as of time of writing): that is the base milestone.   Then, notice the affected modules listed under &amp;quot;Modules &amp;amp; Files.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You will checkout the base milestone from CVS.  The convention for base milestone is SRC680_m### (later DEV300_m###?). Then in each affected module (where a module is basically a directory), you will update the module with CVS.  The convention for the revision tag for the CWS is cws_src680_####.&lt;br /&gt;
&lt;br /&gt;
Here is a script.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # configure these variables according to the particular CWS&lt;br /&gt;
 AFFECTED_MODULES=&amp;quot;basebmp basegfx canvas comphelper cppcanvas \&lt;br /&gt;
         desktop filter goodies offapi offuh psprint sal  \&lt;br /&gt;
         slideshow solenv testshl2 tools unotools vcl xpdf&amp;quot;&lt;br /&gt;
 BASE_MILESTONE_TAG=SRC680_m222&lt;br /&gt;
 CWS_TAG=cws_src680_picom&lt;br /&gt;
 export CVSROOT=&amp;#039;:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs&amp;#039;&lt;br /&gt;
 echo &amp;#039;Enter the password is anoncvs&amp;#039;&lt;br /&gt;
 cvs login&lt;br /&gt;
 cvs co -r $BASE_MILESTONE_TAG OpenOffice2&lt;br /&gt;
 for d in $AFFECTED_MODULES&lt;br /&gt;
 do&lt;br /&gt;
        echo &amp;quot;updating module $d&amp;quot;&lt;br /&gt;
        pushd $d&lt;br /&gt;
        cvs up -dP -r $CWS_TAG&lt;br /&gt;
        popd&lt;br /&gt;
 done&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;If&amp;#039;&amp;#039;&amp;#039; you have a working [[CWS#cws_config_file_.28.cwsrc.29 | ~/.cwsrc configuration file]] setup &amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; the SOLARENV environment variable is set to an already existing &amp;lt;tt&amp;gt;solenv&amp;lt;/tt&amp;gt; directory of a previously checked out OOo tree, e.g. &amp;lt;code&amp;gt;export SOLARENV=&amp;quot;$HOME/ooo/SRC680/src.m222/solenv&amp;quot;&amp;lt;/code&amp;gt;, &amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; contains the &amp;lt;tt&amp;gt;solenv/bin&amp;lt;/tt&amp;gt; directory, e.g. &amp;lt;code&amp;gt;export PATH=&amp;quot;$SOLARENV/bin:$PATH&amp;quot;&amp;lt;/code&amp;gt;, &amp;#039;&amp;#039;&amp;#039;then&amp;#039;&amp;#039;&amp;#039; the list of affected modules may be automatically obtained using&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
AFFECTED_MODULES=&amp;quot;$(cwsquery -m src680 -c picom modules)&amp;quot;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You also may use &amp;lt;tt&amp;gt;cwsquery&amp;lt;/tt&amp;gt; to obtain the current milestone of the CWS with&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
BASE_MILESTONE_TAG=&amp;quot;SRC680_$(cwsquery -m src680 -c picom current)&amp;quot;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When scripting this it is a good idea to check the exit code of &amp;lt;tt&amp;gt;cwsquery&amp;lt;/tt&amp;gt; commands in case your &amp;lt;tt&amp;gt;~/.cwsrc&amp;lt;/tt&amp;gt; is broken or the environment prerequisites aren&amp;#039;t met or the EIS database isn&amp;#039;t reachable, so add the following after each &amp;lt;tt&amp;gt;cwsquery&amp;lt;/tt&amp;gt; command:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 if [ $? -ne 0 ]; then&lt;br /&gt;
    echo &amp;#039;cwsquery unsuccessful.&amp;#039;&lt;br /&gt;
    exit 1&lt;br /&gt;
 fi&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you already have &amp;lt;tt&amp;gt;~/.cwsrc&amp;lt;/tt&amp;gt; working and a milestone master build ready and want to work on a CWS based on that milestone see [[Tuning in to a CWS]], which offers a method that does not require to rebuild the entire tree.&lt;br /&gt;
&lt;br /&gt;
External links&lt;br /&gt;
* [http://cedric.bosdonnat.free.fr/wordpress/?p=78 Getting an OOo CWS]  Cedric&amp;#039;s blog (May 2008)&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*[[Building]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
{{Getting_It|Languages}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Erpo41</name></author>
	</entry>
</feed>