<?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=Modulis</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=Modulis"/>
	<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/wiki/Special:Contributions/Modulis"/>
	<updated>2026-11-25T13:09:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Compiling_the_new_chart_module&amp;diff=35367</id>
		<title>Compiling the new chart module</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Compiling_the_new_chart_module&amp;diff=35367"/>
		<updated>2007-06-18T22:53:56Z</updated>

		<summary type="html">&lt;p&gt;Modulis: /* Vanilla */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The first step anyone need to achieve before starting to develop on the chart module&lt;br /&gt;
is compiling OpenOffice.org with the needed modifications for the new chart module.&lt;br /&gt;
OpenOffice.org provides two main ways to compile it : the &amp;quot;Vanilla&amp;quot; way and the &lt;br /&gt;
&amp;quot;OOoBuild&amp;quot; way. Let&amp;#039;s explain what they are and the differences between those two &lt;br /&gt;
ways.&lt;br /&gt;
&lt;br /&gt;
= Compiling OpenOffice.org : the theory =&lt;br /&gt;
&lt;br /&gt;
== Vanilla ==&lt;br /&gt;
&lt;br /&gt;
Vanilla is the &amp;quot;standard&amp;quot; way to compile OOo. To compile OOo the &amp;quot;Vanilla&amp;quot; way,&lt;br /&gt;
you only need to download the sources, unzip them, and follow the instructions given&lt;br /&gt;
on this [http://tools.openoffice.org/dev_docs/build_linux.html page]. We will give Chart-specific details&lt;br /&gt;
about this in the following sections.&lt;br /&gt;
&lt;br /&gt;
== OOoBuild ==&lt;br /&gt;
&lt;br /&gt;
To make it simple, OOoBuild is a &amp;quot;wrapper&amp;quot; around the OpenOffice.org build process&lt;br /&gt;
to make compiling OOo more straight-forward. Some of the enhancements added are :&lt;br /&gt;
&lt;br /&gt;
* patches for known compiling problems&lt;br /&gt;
* integration with &amp;quot;[[ccache]]&amp;quot; and &amp;quot;[[icecream]]&amp;quot; to speed-up the process&lt;br /&gt;
* linux distribution specific compiling steps (specific splash screen for Fedora...)&lt;br /&gt;
&lt;br /&gt;
So, to compile OOo with OOoBuild, just just need to download OOoBuild and put the&lt;br /&gt;
OOo standard sources in a specific directory.&lt;br /&gt;
&lt;br /&gt;
= Compiling OpenOffice.org : the practice =&lt;br /&gt;
&lt;br /&gt;
== Commmon steps ==&lt;br /&gt;
&lt;br /&gt;
=== Getting the sources ===&lt;br /&gt;
&lt;br /&gt;
==== Introduction ====&lt;br /&gt;
&lt;br /&gt;
Once you have all the dependencies installed, you will need to download the sources&lt;br /&gt;
of OOo. When working on a specific cws you will need&lt;br /&gt;
to follow two steps :&lt;br /&gt;
&lt;br /&gt;
* downloading the OOo sources at a specific milestone&lt;br /&gt;
* downloading the specific modifications for the cws from the repository&lt;br /&gt;
&lt;br /&gt;
==== Download the milestone ====&lt;br /&gt;
&lt;br /&gt;
For the new chart module, you will need to download the SRC680_m213 milestone or higher.&lt;br /&gt;
&lt;br /&gt;
To download the milestone, you have several choices.&lt;br /&gt;
&lt;br /&gt;
* Download from the cvs servers&lt;br /&gt;
* Download a pre-packaged version&lt;br /&gt;
* Download from the main OOo servers&lt;br /&gt;
&lt;br /&gt;
Have a look at the following page for more explanations :&lt;br /&gt;
http://wiki.services.openoffice.org/wiki/Getting_It&lt;br /&gt;
&lt;br /&gt;
Some advices :&lt;br /&gt;
&lt;br /&gt;
I would recommend that you download a pre-packaged version from the &lt;br /&gt;
following link :&lt;br /&gt;
http://go-ooo.org/packages/SRC680/&lt;br /&gt;
&lt;br /&gt;
This will save you time compared to downloading the cvs version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you still want to download it from the cvs, you can use the following :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cvs -z3 co -r SRC680_m213 OpenOffice&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Update the CWS modifications ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you downloaded the &amp;quot;standard&amp;quot; sources (also called HEAD), you now can update&lt;br /&gt;
the CWS modifications.&lt;br /&gt;
You need to update only the modified modules. To know which modules have been modified,&lt;br /&gt;
check the &lt;br /&gt;
[http://eis.services.openoffice.org/ EIS page]. Here you can search for your CWS.&lt;br /&gt;
On the CWS page then you will find a section called &amp;quot;Modules &amp;amp; Files&amp;quot; which lists the&lt;br /&gt;
modified modules.&lt;br /&gt;
&lt;br /&gt;
For each module (subdir) you will need to do :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd name_of_the_module&lt;br /&gt;
cvs -z3 update -dP -r cws_src680_XXX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
wherein XXX is the name of your CWS.&lt;br /&gt;
&lt;br /&gt;
See also cws-extract from oobuild, if you want/need to&lt;br /&gt;
work with diffs (which will get HUGE, though)&lt;br /&gt;
&lt;br /&gt;
=== dependencies ===&lt;br /&gt;
&lt;br /&gt;
First of all before starting to compile anything, you will need to install all the&lt;br /&gt;
dependencies and tools needed for the compiling steps. On the Tools project page, &lt;br /&gt;
you should find all the information on the &amp;quot;Building the source&amp;quot; section :&lt;br /&gt;
&lt;br /&gt;
http://tools.openoffice.org/&lt;br /&gt;
&lt;br /&gt;
There, you should read the different sub-sections, they will give you a nice &lt;br /&gt;
introduction on how everything works. You should also notice that the steps are&lt;br /&gt;
different on each OS.&lt;br /&gt;
&lt;br /&gt;
== Vanilla ==&lt;br /&gt;
&lt;br /&gt;
=== Configuring ===&lt;br /&gt;
&lt;br /&gt;
Once you downloaded all the sources, you can start configuring the build.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd config_office&lt;br /&gt;
./configure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you forgot to install some dependencies, the configure will remind you&lt;br /&gt;
which one are lacking. You can check the one needed on the &lt;br /&gt;
[http://tools.openoffice.org/ tool page]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A nice trick for configuring OOo is to create a script in which you write&lt;br /&gt;
all the options activated for your build. This helps if you want to see&lt;br /&gt;
which options where enabled during the build some days after you compiled&lt;br /&gt;
everything. Here is an example :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#! /usr/bin/batch&lt;br /&gt;
./configure  --with-jdk-home=&amp;quot;/home/pagalmes/bin/jdk1.5.0_06/&amp;quot;  --with-ant-home=&amp;quot;/usr/bin/ant&amp;quot; --with-lang=&amp;quot;en fr&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Building the tools (dmake...) ===&lt;br /&gt;
&lt;br /&gt;
During the compiling step, the compiling process needs some tools to achieve&lt;br /&gt;
the build. Before compiling, you need to build those tools. For example,&lt;br /&gt;
&lt;br /&gt;
* dmake&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
To compile the tools, just type :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd openOffice.org_m213/&lt;br /&gt;
./bootstrap&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting the environment ===&lt;br /&gt;
&lt;br /&gt;
Before starting to compile OOo, you need to set all the environment variables&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tcsh&lt;br /&gt;
source LinuxIntelEnv.Set&lt;br /&gt;
setenv nodep &amp;quot;TRUE&amp;quot; ; setenv NO_HIDS &amp;quot;TRUE&amp;quot; ; setenv MAXPROCESS 2&lt;br /&gt;
rehash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;nodep&amp;#039;&amp;#039;&amp;#039;  : inhibits generation of dependency files&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;maxprocess&amp;#039;&amp;#039;&amp;#039; : sets the number of parallel dmakes per dir&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;NO_HIDS&amp;#039;&amp;#039;&amp;#039; prevents generation of HIDs (that&amp;#039;s used for automated testing)&lt;br /&gt;
&lt;br /&gt;
=== Compiling (finally...;-) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd instsetoo_native&lt;br /&gt;
build -P2 --dlv_switch -link --all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039; -P2&amp;#039;&amp;#039;&amp;#039; : fires up more than one dmake in _different_ dirs - thus, you end up with a maximum for 4 parallel compilations&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;--dlv_switch -link&amp;#039;&amp;#039;&amp;#039; : tells deliver not to copy files to solver, but link instead -&amp;gt; saves space&lt;br /&gt;
&lt;br /&gt;
=== Smoke tests ===&lt;br /&gt;
&lt;br /&gt;
Once everything compiled, you should launch the &amp;quot;smoke tests&amp;quot;. Those are&lt;br /&gt;
tests to verify that the basic functions of OpenOffice.org work. To&lt;br /&gt;
launch the smoke tests, issue the following command lines :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd smoketestoo_native/&lt;br /&gt;
setenv TEMP &amp;quot;/home/tmp/smoketest&amp;quot;&lt;br /&gt;
dmake noremove&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note : sometimes those tests will fail but you can just ignore them.&lt;br /&gt;
&lt;br /&gt;
== OOoBuild ==&lt;br /&gt;
&lt;br /&gt;
For this section, you should read the part called &amp;quot;Getting started with OOo development&amp;quot; on the wiki :&lt;br /&gt;
http://wiki.services.openoffice.org/wiki/Main_Page&lt;br /&gt;
&lt;br /&gt;
=== Downloading OOoBuild ===&lt;br /&gt;
&lt;br /&gt;
=== Downloading the sources ===&lt;/div&gt;</summary>
		<author><name>Modulis</name></author>
	</entry>
</feed>