| English | Japanese |
Building and hacking on OpenOffice.org (OO.o) entails climbing a fairly lengthy incline. Hopefully this document will make the learning curve somewhat steeper and more abrupt, and will give you a walking stick to help you out.
This document assumes that you'll be using a reasonably current Linux system, as a time saving feature. Real hackers use Free software, and don't have time to read about non-Free stuff.
We aim to answer at least the following questions:
If you need help getting OO.o build, and you intend to hack on it, please join the mailing list here and ask questions there.
This process is discussed in far more detail in the detailed build guide. We have however worked hard to make the process feasible for mere mortal programmers; and the easy description is what follows.
There are loads of competing versions of OO.o, and several choices of branch, with multiple outstanding patch sets. I recommend you build from CVS snapshots, that are known to build, and with patch sets against them that are known to apply. So to get the source do:
export CVSROOT=':pserver:anonymous@anoncvs.gnome.org:/cvs/gnome'
cvs login
cvs -z3 checkout -P ooo-build
This will provide you with a copy of the ooo-build tree. If CVS scares you, you may be able to get a recent packaged version from here.
Note: You are going to need to download ~200Mb of compressed source, and have ~5Gb of space space to unpack and build it in.
The build process is pretty complicated; you have a choice of commands now; although running both won't actually hurt:
./autogen.sh # the CVS version
./configure # the packaged version
This will guess which branch snapshot you want to build; if you have other ideas use the --with-tag option; eg.
--with-tag=OOO_1_1_0for a legacy branch.
By the time you've upgraded your system to the point that it has all the packages you need to start building OO.o (mozilla, recent libart etc. etc.) you're almost at the point that you can download the source. To do this, after a successful configure simply type:
./downloadand wait.
This is the taxing bit - type
makeand don't forget to press enter. Quite possibly you want to log the output, so why not
make 2>&1 | tee /tmp/log.
The result of a perfect build is a perfect zipped install set located in
build/$TAG/instsetoo/unxlngi4.pro/01/normal/or similar. Then run the setup program from there to install using eg.
/opt/OOInstallto install to. It's possible to do this you'll need to first remove your
~/.sversionrcfile.
Having installed, you want to get in the mood for hacking by linking your build tree directly into the installed image, so by re-compiling a source sub-directory, you can simply re-run OO.o. This can get your build/test cycle down to a few tens of seconds. To do this do eg.
bin/linkoo /opt/OOInstall /opt/ooo-build/build/OOO_1_1_2NB. see also the linkoo limitations.
Now wander into
/opt/OOInstall/programand do:
source ./envthis will setup your (bash) shell for running OO.o directly. Then simply
soffice.bin. This is better than running soffice, or a wrapper script since it's very easy to attach the debugger:
gdb soffice.bin.
Note: do not use
./soffice.binfor reasons inscrutable this completely fails to work.
Note: you need to run the ooo-wrapper based OO.o before this, such that ~/.sversionrc is setup correctly first, otherwise running soffice.bin will throw you into the GUI setup tool. Just do a one-off
oowriterbefore you start.
So - we've built and run OO.o, and we want to prove to ourselves that it is in fact possible to hack on it. So in a new terminal do this:
cd build/$TAG
. ./LinuxIntelEnv.Set.sh
cd vcl
Now have a hack at vcl/source/window/toolbox2.cxx; I suggest adding (eg.) an
nPos = 0anywhere before the m_aItems.insert in ToolBox::InsertItem( const ResId &rResId ...). Then save.
You're still in vcl/ yes ? then type 'build debug=true'; wait for the scrolling text to stop; (5 seconds?). Now re-run
soffice -writer. You should notice the effect.
Note: this assumes you have carefully followed the previous steps, particularly the linkoo in Section 3.
Note: for day to day hacking you want to just run 'build' inside the source tree. Do not run 'make' in the toplevel
ooo-build/directory or you will (most likely) trash any changes you've made, and get depressed. It makes sense to keep an out-of line copy of
build/OOO_1_1_2somewhere else see here for help relocating the build.
With the power of C++ comes the ability to shoot yourself in the foot all the more easily; (and implicitly), cf. Holub, Rules for C and C++ programming, McGraw-Hill, 95.
The best way to prepare yourself for battle is to read the OpenOffice coding guidelines here, and for the easily confused c'tor / d'tor is short for constructor / destructor.
It is seldom clear which module a patch resides in in bugzilla. A quick way to try and work this out is to do:
cvs status <somefile> | head
This should give a 'Repository Revision:' line, with a path, the 2nd fragment of this is the project name.
Since the installer image deletes the (runnable) temporary setup image in /tmp/sv001.tmp, you have to stop it doing that. To do so, run setup / install with the -dontdeletetemp option.
Having got a working install, the best way to add your hacks is to symlink program/libfoo641li.so to the version you just built — most likely in foo/unxlngi4.pro/lib/, then re-run the suite and your changes should be incorporated.
For example; say you want to hack 'sal' the System Abstraction Layer and you've installed OOO_STABLE_1 into /opt/OOInstall you need to do:
cd /opt/OOInstall/program
mkdir backup
mv libsal.so.3.0.1 backup
ln -s /opt/OpenOffice/OOO_STABLE_1/sal/unxlngi4.pro/lib/libsal.so.3.0.1 .
While the build system is in similar to may other systems, it is also perhaps slightly different. The overview is that each module is built, and then the results are delivered into the solver. Each module builds against the headers in the solver. Thus there are a few intricacies.
build then un-winds internal module dependencies, and builds each module with a chdir, dmake pair.
There are various standard directories and files in most of the modules that make up OO.o, here are some of the more useful:
There are also various file types that are (or are not) interesting:
On first view build.lst looks scary:
vc vcl : nas freetype psprint rsc sot ucbhelper unotools sysui NULL
vc vcl usr1 - all vc_mkout NULL
vc vcl\source\unotypes nmake - all vc_unot NULL
vc vcl\source\glyphs nmake - all vc_glyphs vc_unot NULL
so we need to try and un-pack what's going on here, which is in fact not
as odd as it might seem at first glance. Firstly lists are terminated
by the 'NULL' string. Every line is prefixed by a shortcut which is
irrelevant.
[shortcut] [path to dir to build] nmake - [flags] [unique-name] [deps...] NULL vc vcl\source\glyphs nmake - all vc_glyphs vc_unot NULLshortcut is not used; flags determines which platforms this builds on; usually single char platform codes: 'dnpum' 'u' being Unix. The higher up the system, the more stuff is flagged 'all'.
unique-name this is a magic name, used by other lines to describe an internal dependency. deps... any number of names of other directories in this file, that must be built before this one.
There is also documentation here on it.
The syntax of d.lst is more comprehensible than build.lst, it omits some default actions, such as copying build.lst into inc/<module>/build.lst.
A line is of the form:
[action]: [arguments]
mkdir: %_DEST%\inc%_EXT%\external
where if '[action]:' is omitted, it defaults to the 'copy' action.
Typical actions are copy, mkdir, touch, hedabu,
dos and linklib.The 'hedabu' action is particularly interesting, inasmuch that it cosmetically re-formats the header to shrink it on install (otherwise it's much like the copy action).
During the action, various macro variables are expanded some of which are:
..\%__SRC%\inc\sal\*.h %_DEST%\inc%_EXT%\sal\*.h
NB. relative paths are relative to the 'prj/' directory.
There are lots of ways to go round a development iteration; the best way is to use linkoo to symlink the libraries from the install set directly into your build tree. Then you can simply re-build a sub-directory eg.
vclby running
buildand re-run soffice.bin.
char *, please?Just barely. OO.o has at least six string wrappers, although the C implementations are of little interest:
rtl_String — sal/inc/rtl/string.h
"Normal" string plus reference counting.
rtlstring->buffer is useful, as is
rtlstring->length. This string has already
been converted to a particular character set; see
sal/inc/rtl/textenc.h — the only interesting cases are
RTL_TEXTENCODING_UTF8 and perhaps
RTL_TEXTENCODING_ASCII_US
for real luddites. Feel free to treat
rtlstring->buffer as your beloved char *.
OString — sal/inc/rtl/string.hxx
Simply a rtl_String wrapped inside a class; you
can use ostring.pData to get at the rtl_String
(it's public). OString has reasonably useful
methods for if you need them.
rtl_uString — sal/inc/rtl/ustring.h
"Normal" Unicode string, similar to rtl_String, and
refcounted as well. However, this one always comes in UCS-2
encoding, presumably to be compatible with Java's
questionable choices.
OUString — sal/inc/rtl/ustring.hxx
An rtl_uString wrapped inside a class. This is
what most of the OO.o code uses to pass strings around.
String — tools/inc/string.hxx
This is an obsolete string class, aliased to 'UniString'.
It has a number of limitations such as
An rtl_uString wrapped inside a class. This is
what most of the OO.o code uses to pass strings around.
Since real men use char * strings encoded in UTF-8;
to use any system API such as 'printf' you need to extract a
char * from a OUString use this:
static char *
gimme_utf8_please (const rtl::OUString &oustring)
{
rtl::OString ostring;
ostring = ::rtl::OUStringToOString (oustring, RTL_TEXTENCODING_UTF8);
return strdup (ostring.pData->buffer);
}
And the reverse:
static rtl::OUString
complicate_things_into_ucs2_please (const char *utf8_string)
{
rtl::OString ostring;
ostring = rtl::OString (utf8_string);
return rtl::OStringToOUString (ostring, RTL_TEXTENCODING_UTF8);
}
If you just want to programattically print out a string for debugging purposes you probably want to see this.
We have already seen that OO.o does not use humble char *
strings. If you thought this was painful enough when writing
code, wait until you have to debug it. Here's how to get at
your strings from gdb/dbx which don't natively handle unicode.
(gdb) print dbg_dump(sWhatEver)to print the contents of a UniString/ByteString/rtl::OUString/rtl::OString regardless of the type when debugging C++ code. See issue 17295 for details.
p *theString; # grab the length (2nd field)
x/<length>s theString->buffer eg. for a 20 character
string we want x/20s theString->buffer. This should print the string as an array of shorts with ASCII char values nicely in a column. To programatically print a OUString (or String) you need:
::rtl::OString tmpStr = OUStringToOString (MyOUString, RTL_TEXTENCODING_UTF8); fprintf (stderr, "String is '%s'\n", tmpStr.getStr());
This section assumes use of gdb, from the console.
OO.o includes a way to add debugging code in per module, via the build debug=true command in each module. Unfortunately this is not recommended to run for the whole project, and in addition to including vital debugging symbols it also includes scads of assertions, churning warnings, and various other checks.
Thus if you want debugging symbols for everything, you have to hack several makefiles to add debugging symbols, [ NB. this makes the OO binaries ~1Gb small and the full build tree ~8Gb so beware ], apply this patch:
--- solenv/inc/unxlngi4.mk
+++ solenv/inc/unxlngi4.mk
@@ -92,18 +92,18 @@ cc=gcc
# do not use standard header search paths
# if installed elsewhere
.IF "$(BUILD_SOSL)"!=""
-CFLAGS=
+CFLAGS=-g
.ENDIF
CFLAGS+=-fmessage-length=0 -c $(INCLUDE)
# flags for the C++ Compiler
-CFLAGSCC= -pipe -mcpu=pentiumpro
+CFLAGSCC= -g -pipe -mcpu=pentiumpro
# Flags for enabling exception handling
CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
# Flags for disabling exception handling
CFLAGS_NO_EXCEPTIONS=-fno-exceptions
# -fpermissive should be removed as soon as possible
-CFLAGSCXX= -pipe -mcpu=pentiumpro -fno-for-scope -fpermissive -fno-rtti
+CFLAGSCXX= -g -pipe -mcpu=pentiumpro -fno-for-scope -fpermissive -fno-rtti
# HACK: enable Hamburg developers to build on glibc-2.2 machines but compile vs. glibc-2.1 headers
.IF "$(BUILD_SOSL)"==""
Of course, without debugging symbols gdb becomes even more useless. To apply the patch cut and paste the above to /tmp/foo and in the base directory:
patch -p0 < /tmp/foo
Due to the general level of brokenness in gdb, it's most likely that setting a breakpoint before running is unlikely to work; thus the best scheme is to:
gdb ./soffice
break main
run # don't forget the arguments here
# ... traps in main ...
break osl_readFile
continue
Of course, this is never going to work if the code is implemented in a library that is dlopened later, which accounts for the vast majority of OO code. Thus, you need to trap the code loading and then put the breakpoint in. To do that whack a breakpoint in osl_psz_loadModule, and suffer.
Alternatively if you can instrument the code, it's pretty easy to add #include <signal.h> and then put a raise (SIGSTOP); somewhere in the code which will trap out in the debugger.
We start in 'main' with a sal wrapper, that calls vcl/source/app/svmain.cxx (SVMain). It invokes Main on pSVData->mpApp; but pSVData is an in-line local. To debug this use the pImplSVData global variable. eg:
p pImplSVData->maAppData
This 'Main' method is typically:
desktop/source/app/app.cxx (Main).
The humble char * (that gdb can natively display) is eschewed in the object world by wrapping it with innumerable different classes that gdb doesn't understand. Worse, in many cases it is extremely difficult even to print the string — one consequence of the appalling decision to go with ucs-2 encoding. There are also both mutable and immutable string classes.
Please read section 5.7.2 to see how strings work in OO.o and to get some debugging tips.
The build dependencies of the modules are clearly crucial to getting a clean build. When you type 'build' in a module, first build examines prj/build.list, eg. neon/prj/build.lst:
xh neon : soltools external expat NULL
this specifies that 'soltools', 'external' and 'expat' have to
be satisfactorily built and delivered before neon can be built.
Occasionally these rules get broken, and people don't notice for
a while.
What fun — you symlinked desktop/unxlngi4.pro/bin/soffice to soffice.bin in your install tree didn't you. That works fine if you just run it, but it seems gdb unpacks the symlink and passes a fully qualified path as argv[0], which defeats the hunting for the binary in the path, so it assigns the program base path as /opt/OpenOffice/OOO_STABLE_1/desktop/unxlngi4.pro/bin and starts looking for (eg. applicat.rdb) in there. Of course when it fails to find any setup information, it silently crashes somewhere else yards away from the original problem.
For various reasons signal handlers are trapped and life can get rather confusing; thus it's best for builders to apply something like this:
--- sal/osl/unx/signal.c
+++ sal/osl/unx/signal.c
@@ -188,6 +188,8 @@ static sal_Bool InitSignal()
bSetILLHandler = sal_True;
}
+ bSetSEGVHandler = bSetWINCHHandler = bSetILLHandler = bDoHardKill = sal_False;
+
SignalListMutex = osl_createMutex();
act.sa_handler = SignalHandlerFunction;
NB. trailing space.
Some methods, are described as having a special linkage, such that they can be used in callbacks; these typically have a prefix: 'LinkStub', so search for the latter part of the identifier in a freetext search. eg.
IMPL_LINK( Window, ImplHandlePaintHdl, void*, EMPTYARG )
builds the 'LinkStubImplHandlePaintHdl' method.
Often when you run gdb on a non-debugging build, you can't afford to wait, and re-compile (eg.) all of oowriter. Thus we have created a small perl helper, with which you can cut and paste method / class names you are interested in from the stack, and it'll touch just files containing those strings — for easier re-build. Here is a typical debugging workflow:
gdb ./soffice.bin
...
bt
#0 0x40b4e0a1 in kill () from /lib/libc.so.6
#1 0x409acfe6 in raise () from /lib/libpthread.so.0
#2 0x447bcdbd in SfxMedium::DownLoad(Link const&) () from ./libsfx641li.so
#3 0x447be151 in SfxMedium::SfxMedium(String const&, unsigned short, unsigned char, SfxFilter const*, SfxItemSet*) ()
from ./libsfx641li.so
#4 0x448339d3 in getCppuType(com::sun::star::uno::Reference const*) () from ./libsfx641li.so
...
quit
cd base/OOO_STABLE_1/sfx2
ootouch SfxMedium
build debug=true
Thus, all files referencing / implementing anything with SfxMedium will be touched, and hence rebuilt with debugging symbols.
If you want to recompile the code in just your current directory, you can use the killobj dmake target to remove the object files:
dmake killobj
dmake
You are a victim of asynchronous X error reporting;
export SAL_SYNCHRONIZE=1will make all the X traffic synchronous, and report the error by the method that caused it, it'll also make OO.o far slower, and the timing different.
Caolan suggests: put breakpoints in ww8par.cxx top and tail of SwWW8ImplReader::LoadDoc, and confirm that the document gets as far as the import filter.
A handy human place to put a breakpoint is in SwWW8ImplReader::ReadPlainChars, you can see chunks of text as they are read in. Alternatively SwWW8ImplReader::AppendTxtNode as each paragraph is inserted.
So OO.o contains some hefty debugging infrastructure; pictured here. Unfortunately enabling it is not altogether trivial. Firstly - none of it is built into a product build; so we need to go to re-build some core parts of OO.o as non-product builds; and then we need to re-run linkoo to link those new builds into our set.
First create a debug Environment file; I call it LinuxIntelEnv.Set.debug:
TMPFILE=~/.Env.Set.debug # Purge .pro bits sed 's/\.pro//g' LinuxIntelEnv.Set.sh > $TMPFILE . $TMPFILE rm $TMPFILE # Clobber product parts unset PRODUCT PROSWITCH PROFULLSWITCHNow do
source ./LinuxIntelEnv.Set.debug, this sets up your environment for a non-product build.
cd vcl; build dbgutil=true --all
linkoo
Now - just run OO.o, and when it's in full-flow, press <Alt>-<Shift>-<Control> 'D' in that order; this should popup a debugging options window. The debugging options are subsequently saved to the .dbgsv.init file for the next run; you can control the location of that with:
export DBGSV_INIT=$(HOME)/.dbgsv.initeg. it is (unfortunately) a binary file.
This is fairly easy; edit sc/source/filter/inc/biffdump.hxx, define EXC_INCL_DUMPER to 1, and re-build 'sc'. Also, copy sc/source/filter/excel/biffrecdumper.ini to ~. Then run
soffice.bin foo.xlsand you should get a foo.txt with the debug data in it. If you get nothing, you need to find/apply sc-biffdump.diff from here.
Always use unified diffs 'cvs -z3 diff -u', since they are the most readable, (and sensible) types of diff to read and apply.
It tends to be a good idea to work out how best to implement your fix, and/or discuss it with a developer or two before hand. Some of the best ways to do this are to post to dev@openoffice.org or lurk on IRC at irc.freenode.net on the #OpenOffice.org channel. IRC is an awfully poor communication medium, but better than no communication. See here to unwind who is whom.
See here for more information on our patching infrastructure.
See here for a sane / hackers interface to OpenOffice's IssueZilla.
Since we can often extract the owner of a module by checking for the ADMIN_FILE_OWNER tag; there is a little tool in ooo-build: bin/owner <file-name> that helps you find out who to E-mail / interact with about a given module; it's worth assigning very specifically located bugs to that person.
This is the process for getting CVS accounts for the up-stream CVS server, ooo-build accounts are handled differently. To see how the issue raising process works see eg. issue #7270. Having got the account setup, you need to tunnel to the secure CVS server something like:
ssh -f -2 -P -L 2401:localhost:2401 tunnel@openoffice.org sleep 1400 < /dev/null > /dev/null
Then you need to change your CVSROOT to point at your local machine, since this is the endpoint of the tunnel:
:pserver:mmeeks@localhost:/cvs
Your account name and password - will be the same as you use for filing bugs etc. in the SourceCast system. Login, and ... you'll soon notice that you'll need to migrate your CVS settings to the new server, to do this without wasting B/W with duplicate checkouts do:
bin/re-root /path/to/checkout ":pserver:<account-name-here>@localhost:/cvs"
Of course, to commit anything, you'll need various project priviliges - and to battle the bureaucracy.
Patch/diff are a wonderful tools, however people often provide data that confuses them in a messy and difficult to un-tangle sort of a way. Here are some hints on untangling the mess:
Just use dmake clean in the toplevel directory. In pre HEAD versions there was no 'clean' target so instead you had to do something (what dmake clean does now) like:
find -name 'unxlngi4.pro' -exec rm -Rf {} \;
In order to make efficient use of bandwidth, generate sensible diffs by default, and follow the trend, you need this in your ~/.cvsrc.
cvs -z3 -q diff -upN update -dP checkout -P status -v
Adding header files to the OO.o build is notoriously clunky. To add header files under external/, make sure you list them in external/prj/d.lst so that they get copied under the solver/641/unxlngi4.pro/inc/external directory when building.
Often there is some GUI element used near the thing you're trying to locate / fix. So, find some sufficiently unusual string and search for it in LXR's text search; this should reveal an identifier related to that string; eg. SID_AUTOFORMAT, or FN_NUM_BULLET_ON. Having obtained that, do a new text search for that string, and you'll find the usage [ or a chained define to something else ]. For eg. menus/toolbar buttons the functionality is usually in a case statement eg. case SID_AUTOFORMAT: ...
While much of the initial openoffice.org structure seems not to be orientated towards hackers, there is much useful documentation if you dig for it.
For OO.o news, and a distinctive perspective on OO.o see ooodocs.org.
Other related pages are: OOODIa Gtk+ Dictionary installer. OOExtras provides extra templates, macros, and clip art. Quickstart applet for GNOME (and KDE). Dictionaries & Docs from Kevin Hendricks.
While productising various releases of OpenOffice, different projects have come up with (quite huge) patch sets against OO.o. Mercifully they are starting to get folded back in at a greater rate, so no patches should be necessary to HEAD to build it, similarly many have got into OOO_STABLE_1. It may be necessary to use some/all of these nevertheless.
So no-one ever asked me these, I just made them up to astro-turf a bit (safer, wipe-clean, more durable questions).
By consulting various oracles, entrails etc. it transpires that in theory this number increments weekly, there being weekly freezes and hence solvers, development environments. However - in recent time the process of solidifying a single build for wider release, has taken longer than a week — creating a quandary, and a mixed alphanumeric release tag. The 'mws' stands for 'Master Workspace'.
Essentially it seems there are a lot of XML files involved in component registration, and various other services. It turns out that using Java is just an easy way to get this manipulation done simply. Also, Java can be used nicely at run-time if it's on the machine.
But from tag SRC680_m44 onwards there is an alternative python script included to address the issue of processing these XML files used for registration, so it should be possible to build versions after that date without java, though your milage may vary as the default build is with java.
This is rather inscrutable; some particularly curious brokenness would be the way piping commands on stdin is crucially different to inputting them from the tty thus:
echo 'echo #define DLL_NAME "libsch641li.so" >./foo.hxx' | /bin/tcsh -sfails to do anything whereas typing the same thing into the shell works just fine. Even more oddly:
tcsh -fc 'echo #define DLL_NAME "libsch641li.so" >./foo.hxx'does do the right thing. See also csh.
The simple answer is: you need to run
bin/relocate /path/to/new/build; another more complex answer is:
Well, assuming you have re-configured things (LinuxIntelEnv.Set will need paths tweaking too — and re-importing to your shell) — then it's most likely down to the ubiquitous non-relative paths, coded in lots of generated / built files, particularly '.dpc*' (dependency) files. Try:
find -name '*.dpc*' -exec rm {} \;
The stlport does some really broken things, so you will also need to edit the 'stl_gcc.h' inside the solver/, and replace the two path instances there (see inc/stl/config/stl_gcc.h).
While of course it's possible that your user name is not registered; often this just means your ~/.cvspass got lost and/or that you haven't logged in. cvs login, and repeat the command.
Product — isn't it obvious ?
Today I found a photograph of it on my system, so I stuck it in here:
OOo does some very odd things with X resources, thus some conventional screenshot apps fail to take accurate shots. ImageMagick's 'import' however does a good job; use:
import foo.pngfrom the console, or
sleep 2; import -window root foo.pnginstead. NB. unless you want your world to look tiny, you need to turn large toolbar icons first.
This is due to some very serious crack smoking going on in stlport. Essentially, there is some nasty header overriding, and they want to be able to fallback to the previous header (with the same name) - thus they have to hard-code the paths. To save doing that in lots of places, they use a #define, the #define has macro expansion done on it. Thus if your gcc prefix contains an element which is a macro - you're stuffed:
stlport config header:
#define _STLP_NATIVE_INCLUDE_PATH \
/home/michael/ximian-desktop/ooo/BUILD/ooo/include/c++/3.2.2
stlport helpful macros:# define _STLP_MAKE_HEADER(path, header) <path/header>
# define _STLP_NATIVE_CPP_C_HEADER(header) \
_STLP_MAKE_HEADER(_STLP_NATIVE_INCLUDE_PATH,header) and finally
stlport cunning native include: #include _STLP_NATIVE_CPP_C_HEADER(foo)
Net result:
g++ ... -DBUILD=7663 ...
...
from /home/michael/ximian-desktop/ooo/BUILD/ooo/OOO_1_0_2/xml2cmp/source/xcd/main.cxx:62:
/home/michael/ximian-desktop/ooo/BUILD/ooo/OOO_1_0_2/solver/641/unxlngi4.pro/inc/stl/cstddef:35:46:
/home/michael/ximian-desktop/ooo/7663/ooo/include/c++/3.2.2/cstddef: No such file or directory
Not much; worth installing, but currently highly under-used.
The authors must be using a really strange editor. It thinks tab stops are on every fourth column. Of course, the files come out ugly in Unix editors which know that tabs are eight characters wide.
If you happen to use a Real Editor, we have some pink glasses to sell to you. Paste the contents of http://ooo.ximian.com/emacs.el into your .emacs, or load it with a line like this: (load "/path/to/that/file.el"). Don't forget to adapt my-openoffice-path-regexp to your needs.
Henceforth emacs will use 4-column tabs for your OOo source files. (And use C++-Mode for sdi-, hrc-, and src-files.)
See the About ooo-build document.
If you have more hacking tips, corrections, a grip of correct spelling etc. please do mail me, at michael@ximian.com.