Difference between revisions of "Documentation/Building Guide/Getting the source"

From Apache OpenOffice Wiki
Jump to: navigation, search
(move source tarballs below SCM access)
(updated for Apache OpenOffice)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
{{DISPLAYTITLE:Getting the source}}
 
{{DISPLAYTITLE:Getting the source}}
  
The source code can be fetched in several ways, as described below.
+
== Requirements ==
  
 +
* '''Subversion''' version '''1.5.4 or later'''
 +
AOO's source code is managed in a [http://subversion.apache.org/ subversion] repository, so you need a svn client to checkout the sources. You can get subversion binaries from the [http://subversion.apache.org/packages.html subversion project]. Version 1.5.4 or later is required because of important fixes related to the merge-feature.
  
= SCM access for the current development line (named DEV300) using Mercurial =
+
== Get the source via Subversion ==
  
Mercurial (hg) replaced Subversion in October 2009. You can clone the master repository with
+
You need about 4.7 GB for a checkout from the svn repository. Building the source requires another 5GB.<br>
  
hg clone http://hg.services.openoffice.org/DEV300 <working_dir>
+
* '''check out the latest source from svn'''
  
The OOo Mercurial repository is huge. Cloning the OOo repository as shown above my take some hours depending on the quality of your internet connection. We provide a nightly snapshot as Mercurial bundle which is currently about 1.3 GB in size. Utilizing this bundle is the fastest way to get an initial clone of the repository.
+
svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo
  
Download the bundle here: http://hg.services.openoffice.org/bundle/DEV300.hg
+
The directory structure when you have checked out the sources from svn will look like:
mkdir <working_dir>
+
cd <working_dir>
+
hg init
+
hg unbundle <path_to_bundle>/DEV300.hg
+
hg pull http://hg.services.openoffice.org/DEV300
+
hg update
+
  
Both methods will get you a repository and a working tree with the latest changes.
+
  aoo/
 
+
  aoo/main
List all available milestones (a stable development version released by RelEng):
+
  aoo/extras
  hg tags
+
  aoo/test/extras
 
+
aoo/ext_libraries
Checking out a milestone
+
aoo/ext_sources
hg update -rDEV300_mXX
+
 
+
{{Template:Documentation/Tip| For more information on using Mercurial with OOo, see:
+
* [[Mercurial]]
+
* [[:Category:Mercurial]]}}
+
 
+
= SCM access for the 3.3 release code line (named OOO330) using Mercurial =
+
 
+
The OOo Mercurial repository is huge. We provide a nightly snapshot as Mercurial bundle which is currently about 1.4 GB in size. Using this bundle is the fastest way to get an initial clone of the repository.
+
 
+
Download the bundle here: http://hg.services.openoffice.org/bundle/OOO330.hg
+
 
+
mkdir <working_dir>
+
cd <working_dir>
+
hg init
+
  hg unbundle <path_to_bundle>/OOO330.hg
+
  hg pull http://hg.services.openoffice.org/OOO330
+
  hg update
+
 
+
Checking out a milestone
+
hg update -r OOO330_mXX
+
 
+
You can clone the repository as well, but it will take much longer than the bundle
+
 
+
hg clone http://hg.services.openoffice.org/OOO330 <working_dir>
+
 
+
 
+
= SCM access for the 3.2 release code line (named OOO320) using Mercurial =
+
 
+
Download the bundle here: http://hg.services.openoffice.org/bundle/OOO320.hg
+
 
+
Just look at the instructions for 3.3 above, and replace OOO330 with OOO320.
+
 
+
 
+
= Source Tarballs (for package maintainers) =
+
 
+
The latest release version of the source code can be downloaded as tarballs from [http://download.openoffice.org/ Download], see '''Source''' on the right.
+
 
+
The source is pretty big and has therefore been split into several files.
+
 
+
{| class="prettytable" border="1" width="100%"
+
|-
+
!Tarball
+
!Description
+
|-
+
|OOo_3.x.x_src_core.tar.bz2
+
|The necessary part for each build, the other tarballs depend on this one.
+
|-
+
|OOo_3.x.x_src_system.tar.bz2
+
|Libraries that usually exist on a standard Linux system<ref name="Foot1">{{Template:Documentation/Note|It's not absolutely necessary to build own versions for these modules on Linux. If you intend to build on Linux '''without''' the '''system''' tarball:
+
* 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.
+
* 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.
+
* 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't worry about downloading this now because the build process will tell you where to get it and where to stick it to proceed.}}
+
 
+
</ref>. For a Windows build this package is usually required.
+
|-
+
|OOo_3.x.x_src_binfilter.tar.bz2
+
|The filters for old binary StarOffice formats
+
|-
+
|OOo_3.x.x_src_l10n.tar.bz2
+
|Translations of the software for many languages
+
|-
+
|OOo_3.x.x_src_extensions.tar.bz2
+
|Extensions source package
+
|-
+
|OOo_3.x.x_src_testautomation.tar.bz2
+
|Automated test suite (optional)
+
|}
+
 
+
For a full build you need them all. For development, the '''core''' package is usually all you need.
+
 
+
Unpack the tarballs one at a time to a directory. They will create a new directory with the name of the milestone, such as <tt>OOO310_m11</tt>. This folder will from now on be the <code>$SRC_ROOT</code>, when you run <code>./configure</code> it will create a shell-script that will set the environment variable to this path.
+
{{Template:Documentation/Caution|Avoid using winzip to extract the downloaded source archive. Observed problems include:
+
* CR-LF errors that can affect makefiles and cause compile errors
+
* Certain files unpacked into root folder, esp. likely when actual path is deeply nested (e.g. <code>foo/bar/source/foo/java/org/x/y/z/w/LongFileName.hmm</code>) which again causes mysterious compile errors.
+
Use the tar from Cygwin instead:
+
 
+
unzip for <tt>.gz</tt>
+
<pre>tar xvzf OOo_3.x.x_src_core.tar.gz</pre>
+
bzip2 for <tt>.bz2</tt>
+
<pre>tar xvjf OOo_3.x.x_src_core.tar.bz2</pre>}}
+
 
+
 
+
= See also =
+
 
+
{{Template:Documentation/Note|For pre-3.2 releases, see [[Getting the source (older versions)]].}}
+
  
 
----
 
----
 
<references/>
 
<references/>
 
{{PDL1}}
 
{{PDL1}}
[[Category:SVN]][[Category:Mercurial]]
+
[[Category:SVN]]

Latest revision as of 13:22, 26 November 2012

[[{{{PrevPage}}}|< Previous Page

]]

[[{{{NextPage}}}|Next Page
>]]


Requirements

  • Subversion version 1.5.4 or later

AOO's source code is managed in a subversion repository, so you need a svn client to checkout the sources. You can get subversion binaries from the subversion project. Version 1.5.4 or later is required because of important fixes related to the merge-feature.

Get the source via Subversion

You need about 4.7 GB for a checkout from the svn repository. Building the source requires another 5GB.

  • check out the latest source from svn
svn co https://svn.apache.org/repos/asf/openoffice/trunk aoo

The directory structure when you have checked out the sources from svn will look like:

aoo/
aoo/main 
aoo/extras
aoo/test/extras
aoo/ext_libraries
aoo/ext_sources

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools