%general-entities; ]> $LastChangedBy$ $Date$ LibreOffice-&libreoffice-version; LibreOffice Introduction to LibreOffice LibreOffice is a full-featured office suite. It is largely compatible with Microsoft Office and is descended from OpenOffice.org. &lfs76_checked; Package Information Core Download: Core Download MD5 sum: &libreoffice-core-md5sum; Core Download size: &libreoffice-core-size; Estimated disk space required: &libreoffice-buildsize; Estimated build time: &libreoffice-time; Additional Downloads Dictionaries: Dictionaries MD5 sum: &libreoffice-dict-md5sum; Dictionaries size: &libreoffice-dict-size; Help Files: Help Files MD5 sum: &libreoffice-help-md5sum; Help Files size: &libreoffice-help-size; Translations: Translations MD5 sum: &libreoffice-translations-md5sum; Translations size: &libreoffice-translations-size; Required patch to fix building with system Boost: Required patch for i686 systems, in order to fix a problem inroduced by &gcc-490;: LibreOffice Dependencies Required , , , , and Recommended Most of these packages are recommended because if they're not installed, the build process will compile and install its own (often older) version. , , , , , , , , or , , , , , , and , , , , , , , , , , and Optional , , (not relevant if using --disable-odk), , , , , or MySQL, , , , , , Cppunit, firebird, glew (OpenGL Extension Wrangler Library), Hunspell, Hyphen, libabw, libcdr, libcmis, libebook, libexttextcat, libfreehand, liblangtag, libmspub, libmwaw, libodfgen, librevenge (WordPerfect Document importer), libvisio, libwpd, libwpg, libwps, lp_solve, mdds, MyThes, ogl-math - OpenGL Mathematics (GLM), Orcus, VIGRA, and Zenity There are many optional dependencies not listed here. They can be found in download.lst (source directory). User Notes: Installation of LibreOffice Building this package in a graphical environment is recommended. There have been reports of build failures, when using chroot or ssh. Unlike the other packages, we suppose that you have not yet unpacked the package. This is so because the switch is needed in case you unpack as the root user. tar -xf libreoffice-&libreoffice-dlversion;.tar.xz --no-overwrite-dir && cd libreoffice-&libreoffice-dlversion; Unpack the dictionaries file and create symlinks to tarballs from the source directory so they won't get downloaded again. It is not necessary to unpack the help nor the translations tarballs: install -dm755 external/tarballs && tar -xf ../libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz \ --no-overwrite-dir --strip-components=1 && ln -sv ../../../libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz external/tarballs/ && ln -sv ../../../libreoffice-help-&libreoffice-dlversion;.tar.xz external/tarballs/ If you have downloaded the translations tarball, create a symlink: ln -sv ../../../libreoffice-translations-&libreoffice-dlversion;.tar.xz external/tarballs/ During the build process, some packages will be downloaded (including the ones listed as recommended and optional dependencies) if they are not present on the system. Because of this, build time may vary from the published time more than usual. In the rest of the page, locales "en-US" and "pt-BR" are examples; you can change them to suit your needs - you might want to read the "Command Explanations", further below, before proceeding. Due to the large size of the package, you may prefer to install it in /opt, instead of /usr. Depending on your choice, replace <PREFIX> by /usr or by /opt/libreoffice-&libreoffice-dlversion;: export LO_PREFIX=<PREFIX> For i686 systems, fix a problem inroduced by &gcc-490;: patch -Np1 -i ../libreoffice-&libreoffice-dlversion;-gcc_4_9_0-1.patch && Prepare LibreOffice for compilation by running the following commands: patch -Np1 -i ../libreoffice-&libreoffice-dlversion;-boost_1_56_0-1.patch && sed -e "/gzip -f/d" \ -e "s|.1.gz|.1|g" \ -i bin/distro-install-desktop-integration && sed -e "/distro-install-file-lists/d" -i Makefile.in && chmod -v +x bin/unpack-sources && sed -e "s/target\.mk/langlist\.mk/" \ -e "s/tar -xf/tar -x --strip-components=1 -f/" \ -e "/tar -x/s/lo_src_dir/start_dir/" \ -i bin/unpack-sources && ./autogen.sh --prefix=$LO_PREFIX \ --sysconfdir=/etc \ --with-vendor="BLFS" \ --with-lang="en-US pt-BR" \ --with-help \ --with-alloc=system \ --without-java \ --disable-gconf \ --disable-odk \ --disable-postgresql-sdbc \ --enable-release-build=yes \ --enable-python=system \ --with-system-boost \ --with-system-clucene \ --with-system-cairo \ --with-system-curl \ --with-system-expat \ --with-system-graphite \ --with-system-harfbuzz \ --with-system-icu \ --with-system-jpeg \ --with-system-lcms2 \ --with-system-libpng \ --with-system-libxml \ --with-system-mesa-headers \ --with-system-neon \ --with-system-npapi-headers \ --with-system-nss \ --with-system-odbc \ --with-system-openldap \ --with-system-openssl \ --with-system-poppler \ --with-system-redland \ --with-system-zlib \ --with-parallelism=$(getconf _NPROCESSORS_ONLN) The instructions below will only build the package without running any unit tests. If you prefer to run the unit tests, replace make build with make. Build the package: make build Now, as the root user: make distro-pack-install && install -v -m755 -d $LO_PREFIX/share/appdata && install -v -m644 sysui/desktop/appstream-appdata/*.xml \ $LO_PREFIX/share/appdata If the dictionaries have been built, again as root user: chown -cR 0:0 dictionaries/ && mkdir -pv $LO_PREFIX/lib/libreoffice/share/extensions/dict-en && cp -vR dictionaries/en/* $LO_PREFIX/lib/libreoffice/share/extensions/dict-en && mkdir -pv $LO_PREFIX/lib/libreoffice/share/extensions/dict-pt-BR && cp -vR dictionaries/pt_BR/* $LO_PREFIX/lib/libreoffice/share/extensions/dict-pt-BR If installed in /opt/libreoffice-&libreoffice-dlversion; and the icons in the new items of the desktop menu are not properly displayed, optionally run the following commands, as root user (it may be necessary to logout the session, before the icons appear): mkdir -pv /usr/share/pixmaps && for i in writer base calc draw impress math startcenter writer do ln -svf /opt/libreoffice-&libreoffice-dlversion;/share/icons/hicolor/32x32/apps/libreoffice-$i.png \ /usr/share/pixmaps/ done unset i Command Explanations sed -e ...: The first sed prevents compression of the manual pages, the second one prevents install from failing, and the third one fixes the unpack script. chmod -v +x ...: Fix the unpack script's permissions. --with-vendor=BLFS: This switch sets BLFS as the vendor which is mentioned when you click "About" on the toolbar. --with-lang="en-US pt-BR": This switch sets what languages to support. To list several languages, separate them with a space. For all languages, use --with-lang=ALL. For a list of the 117 available languages, you can look at the translations tarball: tar -tf ../libreoffice-translations-&libreoffice-dlversion;.tar.xz | grep translations/source| cut -d/ -f4 | uniq. --with-help: Without this switch, the help files are not built. --with-alloc=system: This switch tells LibreOffice to use system allocator instead of the internal one. --without-java: This switch disables Java support in LibreOffice. --disable-gconf: This switch disables compiling LibreOffice with the deprecated GNOME configuration system support. --disable-odk: This switch disables installing the office development kit. Remove if you want to develop a LibreOffice based application. --disable-postgresql-sdbc: This switch disables compiling LibreOffice with the ability to connect to a PostgreSQL database. Remove it if you would like LibreOffice to be able to connect to a PostgreSQL database. If you have installed PostgreSQL on your system and would like LibreOffice to use that rather than compile its own copy, use the switch. --enable-release-build=yes: This switch enables a Release Build. LibreOffice can be built as a Release Build or as a Developer Build, because their default installation paths and user profile paths are different. Developer Build displays the words "Dev" and "Beta" in several places (e.g, menu and splash screen). --enable-python=system: This switch tells LibreOffice to use installed Python 3 to build the translations instead of the bundled one. --with-system-*: These switches prevent LibreOffice from trying to compile its own versions of these dependencies. If you've not installed some of the dependencies, remove the corresponding switches. --with-parallelism=$(getconf _NPROCESSORS_ONLN): This switch tells LibreOffice to use all your CPUs to compile in parallel and speed up the build. : Use this switch if you don't need printing support. : Use this switch if you've not installed D-Bus-1.8.0 or later. It also disables Bluetooth support and font install via PackageKit. : Use this switch if you've not installed . : Use this switch if you want to use instead of for the avmedia module. : Use this switch if you want to build the KDE integration module. Contents Installed Programs Installed Libraries Installed Directory libreoffice, lobase, localc, lodraw, loffice, lofromtemplate, loimpress, lomath, loweb, lowriter, soffice and unopkg; several programs under $LO_PREFIX/lib/libreoffice/program several libraries under $LO_PREFIX/lib/libreoffice/{ure/lib,program} $LO_PREFIX/lib/libreoffice Short Descriptions lobase is a database manager. lobase localc is a spreadsheet program. localc lodraw is a vector graphics editor and diagramming tool. lodraw loimpress can edit and display PowerPoint presentations. loimpress lomath is a mathematical formula editor. lomath lowriter is a word processor. lowriter unopkg is a tool to manage LibreOffice extensions from the command line. unopkg