%general-entities; ]> $LastChangedBy$ $Date$ OpenOffice-&openoffice-version; OpenOffice Introduction to OpenOffice OpenOffice is an office suite, the open source sibling of StarOffice. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &openoffice-md5sum; Download size: &openoffice-size; Estimated disk space required: &openoffice-buildsize; Estimated build time: &openoffice-time; Additional Downloads Required patch for use with gcc-&gcc-version;: Required patch for use with NPTL: Required patch for use with JDK-&jdk-src-version;: Required patch for use with pkgconfig-0.17 and greater: Optional patch if Linux-PAM-&Linux_PAM-version; is not installed: Required update for use with JDK-&jdk-src-version;. Optional download if not using the system Mozilla browser. OpenOffice Dependencies Required , , , Perl Modules and , , , , and . Recommended , , , , , , and . Optional , , , , neon-0.25.4, , , and . Installation of OpenOffice Apply all of the downloaded patches: for PATCH in ../OOo_&openoffice-version;-*.patch do patch -Np1 -i ${PATCH} done Copy the Beanshell TAR ball into the source tree and uncompress it: cp ../bsh-2.0b4.tar.bz2 beanshell/download/ && bzip2 -d beanshell/download/bsh-2.0b4.tar.bz2 If not using the system-installed Mozilla or Firefox, copy the Mozilla source TAR ball into the source tree: cp ../mozilla-1.7.5.tar.gz moz/download/ If you want to optimize the build, edit solenv/inc/unxlngi6.mk and add the desired optimization flags to the CFLAGSOPT variable. Some users have reported problems with . The best option is to not use any custom optimizations. The following command removes an incorrect option in the above file: sed -i "s:\-mcpu=pentiumpro::" \ solenv/inc/unxlngi6.mk If building against the system Mozilla, a change may be required to the installed headers. The following commands will make the change only if it is necessary. cd /usr/include/mozilla-&mozilla-version; && grep "xptinfo_enum_1" xpcom/xptinfo.h || \ sed -i 's@enum@enum xptinfo_enum_1@' xpcom/xptinfo.h Configure OpenOffice using the following commands: If you intend to use the system Mozilla, replace the --enable-build-mozilla switch with --with-system-mozilla. cd config_office/ && ./configure --prefix=/opt/openoffice-2.0.0 \ --enable-libart --enable-libsn \ --disable-fontooo --without-fonts \ --with-system-stdlibs --with-system-freetype \ --with-system-zlib --with-system-jpeg \ --with-system-expat --with-system-libxml \ --with-system-curl --enable-build-mozilla \ --with-build-version=BLFS \ --with-package-format=native --disable-binfilter && cd .. OpenOffice fails to compile if umask is set to something exotic. The build can also fail if the LANG or LC_ALL environment variables are set. Use the following commands to change your environment accordingly: umask 0022 && unset LANG LC_ALL Compile OpenOffice using the following commands: ./bootstrap && . LinuxIntelEnv.Set.sh && dmake Install OpenOffice as the root user with the following commands: cd instsetoo_native/unxlngi6.pro/OpenOffice/\ install/en-US/linux-2.6-intel/buildroot/opt && cp -a -v openoffice.org2.0 /opt/openoffice-2.0.0 Still as the root user: for appl in sbase scalc sdraw simpress smath soffice spadmin swriter do ln -v -sf /opt/openoffice-2.0.0/program/$appl /usr/bin/$appl done The icons are not installed by default. While still the root user, install the icons with the following commands: cd ../../../../../../../../sysui/desktop/icons && install -v -d /usr/share/icons/{HighContrast,hicolor,locolor} -m755 && cp -a -v HighContrast/*x* /usr/share/icons/HighContrast && cp -a -v hicolor/*x* /usr/share/icons/hicolor && cp -a -v locolor/*x* /usr/share/icons/locolor If you have installed and use KDE, there is no furthur configuration necessary. If you use Gnome, you should copy the *.desktop files to /usr/share/applications with the following commands as the root user: install -v -d /usr/share/applications -m 755 && cd /opt/openoffice-2.0.0/share/xdg/ && for appl in *.desktop do sed -i '/Exec/d' $appl echo "Exec=/usr/bin/s`echo $appl | sed 's/.desktop//'`" >> $appl sed -i '/Icon/d' $appl echo "Icon=`echo $appl | sed 's/.desktop//'`" >> $appl done && sed -i 's@bin/sprinteradmin@bin/spadmin@' printeradmin.desktop && cp -v *.desktop /usr/share/applications Finally, if you'd like to edit OpenOffice documents directly from Mozilla or Firefox, create a symbolic link in your plugins directory to /opt/openoffice-2.0.0/program/libnpsoplugin.so. Additionally, you must enable the plugin from the Internet Options within any OpenOffice application. Command Explanations --enable-libart: This switch forces the Use of libart instead of gpc for polygon clipping. --enable-libsn: This switch enables the use of startup-notification. --disable-fontooo: Use Fontconfig instead of FontOOo. --without-fonts: Do not install Bitstream Vera fonts since they are already bundled with X. --with-system-*: Use the system libraries and programs instead of building the packagees included in the build tree. --enable-build-mozilla: Build the in-tree Mozilla suite. --with-build-version=BLFS: Appends "BLFS" to the end of the version string. --with-package-format=native: This switch disables the build of RPM packages. --disable-binfilter: This switch disables the build of legacy StarOffice-5 import filters. --disable-cups: Disable the use of cups for printing. --with-lang=[LANG]: Makes an install set for the desired language. ENUS is the default. --with-dict=[LANG]: This switch installs dictionaries for the desired languages. ENUS is the default. ./bootstrap: Build the dmake utility required to complete the build. dmake: Compile the package. for appl in *.desktop...: Edit the *.desktop files for use with a standard BLFS system. Contents Installed Programs Installed Libraries Installed Directory scalc, sdraw, simpress, smath, soffice, spadmin, and swriter. OpenOffice libraries /opt/openoffice-2.0.0 Short Descriptions sbase sbase is a database application. sbase scalc scalc is a spreadsheet application. scalc sdraw sdraw is a drawing application. sdraw simpress simpress is a presentation application. simpress smath smath is a mathematical formula editor. smath soffice soffice opens a base window with access to all OpenOffice applications. soffice spadmin spadmin is the OpenOffice printer configuration utility. spadmin swriter swriter is a word processing application. swriter