Faqs of i11424

“remove the need for pre-compiled Mozilla tarballs from OOo build environment”

1.What is what?

2.What the requirement is?

3.What I should do then?

4.How can I test my work?

1.What is what?

The Address Book integration of OpenOffice.org is implemented using Mozilla

components. For this to achieve, pre-compiled Mozilla components are checked

into the CVS repository

(http://external.openoffice.org/source/browse/external/moz), from where they're

used during build time (this includes the complete include tree of Mozilla, as

well as libraries needed at build or only runtime).

This approach has several disadvantages:

* It unnecessarily increases the size of the source tree

* It is heavily platform/compiler dependent: Potentially, there needs to be a

dedicated set of tarballs for every supported platform/compiler combination.

This will become a nightmare the more platforms OOo will support.

* It is very unflexible: Every small fix requires a complete rebuild and

re-checkin of all tarballs.

We changed this so that

- only our patches to Mozilla (relative to a given milestone of Mozilla, perhapsdifferent versions relative to different milestones,for the moment, we use mozilla v1.0) are checked into the CVS repository

- a configure option to select

  - build the mozilla tarballs from mozilla source code during a regular OpenOffice.org build .

  - Use prebuilt mozilla tarballs either you built early or you got from net.

2.What the requirement is?

To build the mozilla tarballs from mozilla source code during a regular OpenOffice.org build , all you must to make sure is that you can build mozilla 1.0 in your system. To build mozilla I installed following into my pc(OS = suse7.1):

1.GNU fileutils

    	2.GNU patch
    	3.pkg-config-0.12.0
    	4.glib-1.2.10
    	5.gtk+-1.2.10
    	(needed by gtk-1.2.10
    		6.atk-1.0.0
    		7.pango-1.0.0
    		8.tiff v3.5.7
    		9.jpeg-6b
    	)
    	10.libpng 1.2.5
    	11.libIDL 0.6.8

    Build mozilla 1.0 need glib > 1.2 and gtk+>1.2,but you can't use
    glib-2.0 and gtk+-2.0.Because they remove glib-config and gtk-config
    scripts which are needed by mozilla 1.0 configure script.
    	To build mozilla under windows, you need cygwin from redhat and buildtools from netscape.
    You can goto http://www.mozilla.org/build/ to get more info about mozilla build environment.

3.What I should do then?

- #### Check out the full OpenOffice Source Codes with MWS tag

- #### Check out the source codes for modules(moz/config_office/connectivity) in ChildWorkSpace with CWS tag(cws_srx645_mozooo ? )

  You must checkout moz module.

  If you build OOo under windows OS you must check out connectivity or you can skip this module.

  You can manual set BUILD_MOZAB=TRUE(or FALSE) to skip checkout config_office module.

- Download mozilla source mozilla-source-1.0.tar.gz and put it into moz/download directory.

- Goto config_office and start “./configure -–enable-build-mozab”

  If you have download mozilla-source-1.0.tar.gz and put it into moz/download, you can skip the -–enable-build-mozab option. The configure script will auto set it for you.

  You can manual add “setenv BUILD_MOZAB=TRUE” to your *.set file. Or you can set it every time before you want to build moz module.

- Build and use OOo as you usually do.

  Notice: After successful build, you can find three new zip file under moz/zipped/ directory. These are the mozilla tarball we check in our CVS before. You can beckup them . Next time you build OOo you can put them back to moz/zipped directory to avoid wasting time in building a full mozilla tree.

4.How can I test my work?

Open a text document ,using File->AutoPilot->Address Data Source to create address data source . You can choose mozilla/ldap and so on. Press F4 to open data sources components. You can access your address books as database there.