****************************************************** * BUILDING OPENOFFICE.ORG ON MANDRAKE 9.2 "FIVESTAR" * ****************************************************** ************************** PREPARE THE BUILD PLATFORM ************************** First of all: be sure that you are using gcc 3.3.1 (or colorgcc) and not the gcc 2.96 compatibility version. Install the following packages: libgtk+1.2-devel-1.2.10-37mdk libglib1.2-devel-1.2.10-11mdk libORBit0-devel-0.5.17-6mdk indent-2.2.9-3mdk libgtk+2.0_0-devel-2.2.4-2mdk libatk1.0_0-devel-1.4.0-1mdk libgdk_pixbuf2.0_0-devel-2.2.4-2mdk libpango1.0_0-devel-1.2.5-2mdk pam-devel-0.77-9mdk ------------------------------------------------------------------ Build a patched Mozilla 1.0.0 for the mozab connectivity component ------------------------------------------------------------------ For this build, the following files are needed: - mozilla-1.0.0-XPIDL_WARNING-gcc331.patch - patch-mozilla-1.0.txt - mozilla-1.0.0.configure These files are available in the MOZAB.tar.gz tarball. patch-mozilla-1.0.txt can also be downloaded from the OOo issuezilla, it is attached to issue 8239: http://www.openoffice.org/issues/show_bug.cgi?id=8239 Some other relevant URLs: http://www.openoffice.org/issues/show_bug.cgi?id=5361 http://www.openoffice.org/issues/show_bug.cgi?id=6883 http://www.openoffice.org/issues/show_bug.cgi?id=17187 tar xvzf mozilla-source-1.0.0.tar.gz cd mozilla patch -p1 < mozilla-1.0.0-XPIDL_WARNING-gcc331.patch (needed to compile Mozilla with gcc 3.3.1) patch -p0 < patch-mozilla-1.0.txt sh mozilla-1.0.0.configure make #make install cd .. #sh fix_moz_zipped.sh ----------------- Install JDK 1.4.1 ----------------- You can download it from the SUN web site: http://www.sun.com/ Please note that JDK is proprietary software. Note: at the time of this writing, the build with JDK 1.4.2 is still not supported. Download j2sdk-1_4_1_01-linux-i586-rpm.bin chmod +x j2sdk-1_4_1_01-linux-i586-rpm.bin ./j2sdk-1_4_1_01-linux-i586-rpm.bin rpm -ivh j2sdk-1_4_1_01-fcs-linux-i586.rpm ----------- Install Ant ----------- You need Ant to successfully build the projects using Java. Install the following packages, available at http://www.jpackage.org/ ant-1.5.4-2jpp.noarch.rpm gnujaxp-1.0-0.beta1.7jpp.noarch.rpm jpackage-utils-1.5.30-1jpp.noarch.rpm xml-commons-1.0-0.b2.6jpp.noarch.rpm xml-commons-apis-1.0-0.b2.6jpp.noarch.rpm ************************ BUILD OPENOFFICE.ORG 1.1 ************************ fix_moz_zipped.sh, used in the following, is available in the MOZAB.tar.gz tarball. tar xvjf OOo_1.1.0_source.tar.bz2 sh fix_moz_zipped.sh cd oo_1.1_src/ Apply the patches provided in the PATCHES.tar.gz tarball. Images for OOo 1.1 with the TELUG logo are provided in the LOGHI-OOO-TELUG.tar.gz tarball: - oo_product-telug.bmp - openabout-telug.bmp - openintro-telug.bmp Put oo_product-telug.bmp in readlicense_oo/source/cinema/ Put openabout-telug.bmp and openintro-telug.bmp in offmgr/res/ Apply the patch starmath-21351.patch, that has been proposed as enhancement in issue 21351 to fix some problems reported by some users: http://www.openoffice.org/issues/show_bug.cgi?id=21351 Replace starmath/inc/edit.hxx and starmath/source/edit.cxx with their versions 1.11.10.1 and 1.28.74.3, respectively, taken from the CVS. These CVS versions fix the issue 15169: http://www.openoffice.org/issues/show_bug.cgi?id=15169 edit.hxx.1.11.10.1 and edit.cxx.1.28.74.3 are provided in the starmath-cvs.tar.gz tarball. Now consider files provided in the FIX_JARS.tar.gz tarball: - fix_jars.sh - fix_jars.patch - fix_jars.txt The FIX_JARS.tar.gz tarball has been proposed in issue 21678 to fix a license problem: http://www.openoffice.org/issues/show_bug.cgi?id=21678 - fix_jars.sh removes some .jar's that are not needed for the build and two proprietary .jar's - fix_jars.patch patches the OOo 1.1.0 sources to perform the build without using the proprietary .jar's mentioned in issue 21678 - fix_jars.txt explains how to perform the build replacing such proprietary .jar's with open source .jar's If you are not affected by the license problem reported in issue 21678, you can build OOo 1.1.0 without using FIX_JARS.tar.gz at all. Edit crashrep/prj/build.lst to remove the "gtk" entry. export JAVA_HOME=/usr/java/j2sdk1.4.1_01 export PATH=/usr/java/j2sdk1.4.1_01/bin:$PATH export LD_LIBRARY_PATH=/usr/java/j2sdk1.4.1_01/jre/lib:$LD_LIBRARY_PATH Then, configure for the build... cd config_office/ #cp configure configure.orig #autoconf ./configure --enable-libart --disable-crashdump --with-lang=ENUS,ITAL cd .. . LinuxIntelEnv.Set.sh ./bootstrap dmake The build lasts about 5-6 hours on an Athlon 1700. After the build, in instsetoo/unxlngi4.pro/39/normal you find the Italian version; in instsetoo/unxlngi4.pro/01/normal you find the English version; #in instsetoo/unxlngi4.pro/49/normal you find the German version. To obtain an Italian build with the help in Italian instead of in English, download helpcontent_39_unix.tgz from ftp://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/helpcontent and extract it into the directory solver/645/unxlngi4.pro/pck (a file will be overwritten, no panic). Then go to the instsetoo directory and run the following commands: rm -rf unxlngi4.pro build ************************* AFTER THE INSTALLATION... ************************* After the installation, you can remove some libraries that are bundled with the OOo installation files and that are needed only if you run it on a different platform: program/libgcc_s* program/libstdc++* (see also the openoffice-1.1-no-stdlibs.patch available in the MDK 9.2 OOo .src.rpm package) Furthermore, program/resource/ooo64501.res and ooo64539.res are perfectly equal to iso64501.res and iso64539.res, respectively; furthermore, it seems that iso645??.res are significant and ooo645??.res are not; hence, to save disk space, you can remove the ooo645??.res and eventually link them to the respective iso645??.res: cd program/resource rm ooo645??.res Then, for English: ln -s iso64501.res ooo64501.res for Italian: ln -s iso64539.res ooo64539.res Something similar is done also in the OOo .spec of Mandrake 9.2.