********************************************* * BUILDING OPENOFFICE.ORG ON DEBIAN "WOODY" * ********************************************* I strongly suggest to use checkinstall instead of "make install", it is very useful; I'm using checkinstall_1.5.3-2_i386.deb ************************** PREPARE THE BUILD PLATFORM ************************** I suppose that you have already installed gcc 2.95.4. Maybe you do not have installed some packages that are needed to build OOo: apt-get install libxaw6-dev libxaw7-dev xutils apt-get install libgtk1.2-dev liborbit-dev apt-get install libgtk2.0-dev libpango1.0-dev apt-get install autoconf gettext libpam0g-dev unzip zip -------------------------------------------- Install a sufficiently recent libart version -------------------------------------------- libart_lgpl >= 2.3.13 is required. Version 2.3.16 is available, as an example, in the Mandrake Linux 10.0 sources and in the Linux Slackware 10.0 sources. tar xvjf libart_lgpl-2.3.16.tar.bz2 cd libart_lgpl-2.3.16 ./configure --prefix=/opt/ooo/libart --disable-shared --enable-static make make install export PKG_CONFIG_PATH=/opt/ooo/libart/lib/pkgconfig -------------------------------------------- Install a gcc version that can build OOo 1.1 -------------------------------------------- OOo 1.1 does not build with gcc 2.95. You can build it using gcc 3.0.4, that can be installed running apt-get install gcc-3.0 g++-3.0 For performance reasons, it is better to build OOo with a more recent compiler, such as gcc 3.2 or gcc 3.3. Note that this should be avoided if the built binaries will run on a GNU/Linux system with glibc < 2.2.4. Note also the following statements. gcc-3.3.4/INSTALL/specific.html _________________________________________________________________ *-*-linux-gnu Versions of libstdc++-v3 starting with 3.2.1 require bugfixes present in glibc 2.2.5 and later. More information is available in the libstdc++-v3 documentation. gcc-3.3.4/INSTALL/specific.html _________________________________________________________________ i?86-*-linux* As of GCC 3.3, binutils 2.13.1 or later is required for this platform. See bug 10877 ( http://gcc.gnu.org/PR10877 ) for more information. Hence, if you want to build OOo 1.1 on Woody with gcc 3.3.4 (gcc 3.3 is not supported for the OOo build, whereas gcc 3.3.1, 3.3.2, 3.3.3, and 3.3.4 are), you need also binutils newer than the ones provided by Woody. Build binutils (for gcc 3.3.4) ------------------------------ I have chosen version 2.15.90.0.3 of binutils for a very simple reason: it is the one used in Slackware 10.0 and I have all Slackware 10.0 sources. tar xvjf binutils-2.15.90.0.3.tar.bz2 cd binutils-2.15.90.0.3 ./configure --enable-shared --prefix=/opt/ooo make make install # checkinstall ; dpkg -i binutils-2.15.90.0.3_2.15.90.0.3-1_i386.deb ; ldconfig cd .. Then add /opt/ooo/lib to /etc/ld.so.conf and run ldconfig export PATH=/opt/ooo/bin:$PATH export LD_LIBRARY_PATH=/opt/ooo/lib:$LD_LIBRARY_PATH Build gcc 3.3.4 --------------- tar xvjf gcc-3.3.4.tar.bz2 cd gcc-3.3.4 ./configure --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --program-suffix=-3.3 --prefix=/opt/ooo make make install # checkinstall ; dpkg -i --force-overwrite gcc-3.3.4_3.3.4-1_i386.deb ; ldconfig ------------------------------------------------------------------ Build a patched Mozilla 1.0.0 for the mozab connectivity component ------------------------------------------------------------------ This build has to be done with *the same* compiler that will be used to build OOo. To build with gcc 3.3.4: ------------------------ Be sure that /opt/ooo/lib *is* in /etc/ld.so.conf and that directories containing libraries of other compilers are *not* in /etc/ld.so.conf and then run ldconfig export PATH=/opt/ooo/bin:$PATH export LD_LIBRARY_PATH=/opt/ooo/lib:$LD_LIBRARY_PATH export CC=gcc-3.3 export CXX=g++-3.3 For this build, the following files are needed: - mozilla-1.0.0-gcc33.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 -p0 < mozilla-1.0.0-gcc33.patch patch -p0 < patch-mozilla-1.0.txt sh mozilla-1.0.0.configure make cd .. #sh fix_moz_zipped.sh (it will be executed later) ----------------- Install JDK 1.4.2 ----------------- You can download it from the SUN web site: http://java.sun.com/j2se/1.4.2/download.html Please note that JDK is proprietary software. Download j2sdk-1_4_2_03-linux-i586.bin mkdir /usr/java cp j2sdk-1_4_2_03-linux-i586.bin /usr/java cd /usr/java chmod +x j2sdk-1_4_2_03-linux-i586.bin ./j2sdk-1_4_2_03-linux-i586.bin rm j2sdk-1_4_2_03-linux-i586.bin export JAVA_HOME=/usr/java/j2sdk1.4.2_03 cd ----------- Install Ant ----------- You need Ant to successfully build the projects using Java. Extract apache-ant-1.5.4-src.tar.bz2 (I have extracted it from ant-1.5.4-2jpp.src.rpm, available at http://www.jpackage.org/) and build it: tar xvjf apache-ant-1.5.4-src.tar.bz2 cd apache-ant-1.5.4 export JAVA_HOME=/usr/java/j2sdk1.4.2_03 ./build.sh cd build cp -a * $JAVA_HOME cd .. cd dist cp -a * $JAVA_HOME cd .. cp -a lib $JAVA_HOME ************************ BUILD OPENOFFICE.ORG 1.1 ************************ tar xvzf OOo_1.1.2_source.tar.gz sh fix_moz_zipped.sh (fix_moz_zipped.sh is available in the MOZAB.tar.gz tarball) cd oo_1.1.2_src/ Apply the patches provided in the PATCHES.tar.gz tarball: copy all the patches and apply.sh in the oo_1.1.2_src/ directory, then run sh apply.sh 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/ Then consider the license problem reported in issue 21678: http://www.openoffice.org/issues/show_bug.cgi?id=21678 The problem: briefly, the OOo 1.1.2 source tarball contains two proprietary .jar's in the external/common/ directory. Refer to the FIX_JARS.tar.gz tarball, that has been proposed in issue 21678 to fix the problem; it provides a fix_jars.txt that explains how to replace 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.2 without using FIX_JARS.tar.gz at all. Update the Italian dictionary: download it http://prdownloads.sourceforge.net/ooodocs/it_IT_2.1.zip?download then unzip it and put README_it_IT.txt it_IT.aff it_IT.dic in the oo_1.1.2_src/dictionaries/it_IT/ directory, overwriting the corresponding files. export PKG_CONFIG_PATH=/opt/ooo/libart/lib/pkgconfig export JAVA_HOME=/usr/java/j2sdk1.4.2_03 export PATH=/usr/java/j2sdk1.4.2_03/bin:$PATH export LD_LIBRARY_PATH=/usr/java/j2sdk1.4.2_03/jre/lib:$LD_LIBRARY_PATH To build with gcc 3.3.4: ------------------------ Be sure that /opt/ooo/lib *is* in /etc/ld.so.conf and that directories containing libraries of other compilers are *not* in /etc/ld.so.conf and then run ldconfig export PATH=/opt/ooo/bin:$PATH export LD_LIBRARY_PATH=/opt/ooo/lib:$LD_LIBRARY_PATH export CC=gcc-3.3 export CXX=g++-3.3 Then, configure for the build... cd config_office/ On Woody, autoconf prepares a configure rather different than the one bundled with the sources tarball. cp configure configure.orig autoconf ./configure --enable-libart --enable-mozilla --disable-crashdump --with-lang=ENUS,ITAL --with-dict=ALL cd .. . LinuxIntelEnv.Set.sh ./bootstrap dmake The build lasts about 6-7 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 rebuild the installation set: ( cd solver/645/unxlngi4.pro/pck ; tar xvzf [path]/helpcontent_39_unix.tgz ) cd instsetoo rm -rf unxlngi4.pro build This final re-"build" is fast (2-3 minutes on an Athlon 1700).