OpenOffice is an office suite, the open source sibling of StarOffice.
Download (HTTP): http://anduin.linuxfromscratch.org/sources/BLFS/6.2.0/o/OOo_2.0.3_src.tar.gz
Download (FTP): ftp://anduin.linuxfromscratch.org/BLFS/6.2.0/o/OOo_2.0.3_src.tar.gz
Download MD5 sum: f68832ff3458664ae2b741ec67d30104
Download size: 294 MB
Estimated disk space required: 6 GB
Estimated build time: 129 SBU
Required patch: http://www.linuxfromscratch.org/patches/blfs/6.2.0/OOo_2.0.3-xauth-1.patch
Required patch if Linux-PAM-0.99.4.0 is not installed: http://www.linuxfromscratch.org/patches/blfs/6.2.0/OOo_2.0.3-no_pam-1.patch
Required patch if building against the system-installed Mozilla products (NSS, Firefox, or Seamonkey): http://www.linuxfromscratch.org/patches/blfs/6.2.0/OOo_2.0.3-system_mozilla_fixes-1.patch
Required download if you wish to build the in-tree Mozilla browser: ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/source/mozilla-source-1.7.5.tar.gz
Apache Ant-1.6.5, GTK+-2.8.20, libIDL-0.8.7, libxml2-2.6.26, Perl Modules XML::Parser-2.34 and Archive::Zip-1.16, Tcsh-6.14.00, UnZip-5.52, which-2.16, and Zip-2.32
ALTLinuxhyph, boost, CUPS-1.2.7, cURL-7.15.3, desktop-file-utils-0.11, EPM, Evolution-2.6.3, GNOME Virtual File System-2.14.2, GPC, KDE, libjpeg-6b, libsndfile, LibTIFF-3.8.2, libwpd, Linux-PAM-0.99.4.0, SeaMonkey-1.1 (must be built against the system NSS-3.11.3) or Firefox-1.5.0.9 (with ldap support), MySpell, MyThes, NAS-1.7, neon, OpenLDAP-2.3.27, PortAudio, Python-2.4.4, Sablotron, SANE-1.0.17, startup-notification-0.8, STLPort, and unixODBC-2.2.11
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/openoffice
Apply all of the downloaded patches:
for PATCH in ../OOo_2.0.3-*.patch do patch -Np1 -i ${PATCH} done
If you wish to build an in-tree Mozilla, as opposed to using a system wide installation, copy the Mozilla source tarball into the source tree:
cp ../mozilla-source-1.7.5.tar.gz moz/download/
If you want to optimize the build, edit the appropriate makefile in solenv/inc/ and add the desired optimization flags to the CFLAGSOPT variable. The makefiles are arch specific, for instance edit solenv/inc/unxlngi6.mk for i686. Some users have reported problems with -fomit-frame-pointer. The best option is to not use any custom optimizations. The following command removes an incorrect -mcpu option in several of the makefiles:
sed -i '/^ARCH_FLAGS\*=/d' solenv/inc/unx{lngi{4,5,6},fbsdi}.mk
Configure OpenOffice using the following commands:
Because of the complexity of the OpenOffice build system, it is not possible to provide generic build instructions for all systems. You should review the output of config_office/configure --help and take advantage of any system installed programs and libraries available using the --enable, --disable, and --with-system-* parameters.
Do not use the --with-system-db or --disable-odk switches. Both are known to cause build failures.
cd config_office/ && autoreconf && ./configure --prefix=/opt/openoffice-2.0.3 \ --enable-libart --disable-fontooo --disable-gnome-vfs \ --without-fonts --with-system-stdlibs --with-system-freetype \ --with-system-expat --with-system-libxml --with-system-zlib \ --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
This package does not come with a test suite.
Install OpenOffice as the root user with the following commands:
cd instsetoo_native/unxlngi6.pro/OpenOffice/\ native/install/en-US/linux-2.6-intel/buildroot/opt && cp -r -v openoffice.org2.0 /opt/openoffice-2.0.3
Still as the root user:
for appl in sbase scalc sdraw simpress smath soffice spadmin swriter do ln -v -sf /opt/openoffice-2.0.3/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 -r -v HighContrast/*x* /usr/share/icons/HighContrast && cp -r -v hicolor/*x* /usr/share/icons/hicolor && cp -r -v locolor/*x* /usr/share/icons/locolor
If you have installed desktop-file-utils-0.11 and use KDE, there is no further 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.3/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.3/program/libnpsoplugin.so. Additionally, you must enable the plugin from the Internet Options within any OpenOffice application.
--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.
--disable-gnome-vfs: Disable the use of Gnome Virtual File System libraries. Omit this switch if you have Gnome installed.
--without-fonts: Do not install Bitstream Vera fonts since they are already included in X Window System Environment.
--with-system-*: Use the system libraries and programs instead of building the source packages 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.
--with-firefox: Enables the use of Firefox in place of the full Mozilla suite. This will disable the use of a Thunderbird address book as a data source.
--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.
Last updated on 2007-02-06 23:51:27 -0600