2012-04-09 22:01:56 +08:00
<?xml version="1.0" encoding="ISO-8859-1"?>
< !DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
2013-03-03 00:36:26 +08:00
<!ENTITY libreoffice-dl "http://download.documentfoundation.org/libreoffice/src/&libreoffice-version;">
<!ENTITY libreoffice-core-download-http "&libreoffice-dl;/libreoffice-&libreoffice-dlversion;.tar.xz">
2017-09-04 20:19:38 +08:00
<!ENTITY libreoffice-core-md5sum "95cb3b05efd537716fcbf0674cbebc99">
<!ENTITY libreoffice-core-size "184 MB">
2013-03-03 00:36:26 +08:00
<!ENTITY libreoffice-dict-download-http "&libreoffice-dl;/libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz">
2017-09-04 20:19:38 +08:00
<!ENTITY libreoffice-dict-md5sum "aaa11f4cc98207e2f95abd648ec95812">
2017-06-27 23:17:30 +08:00
<!ENTITY libreoffice-dict-size "39 MB">
2013-03-03 00:36:26 +08:00
<!ENTITY libreoffice-help-download-http "&libreoffice-dl;/libreoffice-help-&libreoffice-dlversion;.tar.xz">
2017-09-04 20:19:38 +08:00
<!ENTITY libreoffice-help-md5sum "994c4f1aa14747109ef7e763597c757b">
2017-08-02 01:55:46 +08:00
<!ENTITY libreoffice-help-size "2.2 MB">
2013-03-03 00:36:26 +08:00
<!ENTITY libreoffice-translations-download-http "&libreoffice-dl;/libreoffice-translations-&libreoffice-dlversion;.tar.xz">
2017-09-04 20:19:38 +08:00
<!ENTITY libreoffice-translations-md5sum "cfc35951a952c2a79e0deba43a00c29d">
2017-08-02 01:55:46 +08:00
<!ENTITY libreoffice-translations-size "130 MB">
2015-12-19 20:05:28 +08:00
2017-08-02 01:55:46 +08:00
<!ENTITY libreoffice-buildsize "9.6 GB (795 MB installed). Installing the whole set of languages has been reported to require up to 26 GB (2.9 GB installed)">
<!ENTITY libreoffice-time "41 SBU with parallelism = 8 + download time">
2016-06-01 03:58:06 +08:00
2012-04-09 22:01:56 +08:00
]>
2014-11-13 03:57:23 +08:00
<sect1 id= "libreoffice" xreflabel= "LibreOffice-&libreoffice-dlversion;" >
2012-04-09 22:01:56 +08:00
<?dbhtml filename="libreoffice.html"?>
<sect1info >
<othername > $LastChangedBy$</othername>
<date > $Date$</date>
</sect1info>
2015-04-05 00:39:16 +08:00
<title > LibreOffice-&libreoffice-version; </title>
2012-04-09 22:01:56 +08:00
<indexterm zone= "libreoffice" >
2012-10-06 04:30:08 +08:00
<primary sortas= "a-LibreOffice" > LibreOffice</primary>
2012-04-09 22:01:56 +08:00
</indexterm>
<sect2 role= "package" >
2012-08-14 00:01:55 +08:00
<title > Introduction to LibreOffice</title>
2012-04-09 22:01:56 +08:00
<para >
2012-08-14 00:01:55 +08:00
<application > LibreOffice</application> is a full-featured office suite.
It is largely compatible with <application > Microsoft Office</application>
2012-10-06 04:30:08 +08:00
and is descended from <application > OpenOffice.org</application> .
2012-04-09 22:01:56 +08:00
</para>
2017-08-31 09:23:35 +08:00
&lfs81_checked;
2012-04-09 22:01:56 +08:00
<bridgehead renderas= "sect3" > Package Information</bridgehead>
<itemizedlist spacing= "compact" >
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Core Download: <ulink url= "&libreoffice-core-download-http;" />
2012-04-09 22:01:56 +08:00
</para>
</listitem>
<listitem >
<para >
Core Download MD5 sum: &libreoffice-core-md5sum;
</para>
</listitem>
<listitem >
<para >
Core Download size: &libreoffice-core-size;
</para>
</listitem>
2013-03-03 00:36:26 +08:00
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Estimated disk space required: &libreoffice-buildsize;
2013-03-03 00:36:26 +08:00
</para>
</listitem>
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Estimated build time: &libreoffice-time;
2013-03-03 00:36:26 +08:00
</para>
</listitem>
2013-03-04 04:28:12 +08:00
</itemizedlist>
<bridgehead renderas= "sect3" > Additional Downloads</bridgehead>
<itemizedlist spacing= "compact" >
2013-03-03 00:36:26 +08:00
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Dictionaries: <ulink url= "&libreoffice-dict-download-http;" />
2013-03-03 00:36:26 +08:00
</para>
</listitem>
2015-04-28 10:52:17 +08:00
2013-03-03 00:36:26 +08:00
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Dictionaries MD5 sum: &libreoffice-dict-md5sum;
2013-03-03 00:36:26 +08:00
</para>
</listitem>
2015-04-28 10:52:17 +08:00
2013-03-03 00:36:26 +08:00
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Dictionaries size: &libreoffice-dict-size;
2013-03-03 00:36:26 +08:00
</para>
</listitem>
2015-04-28 10:52:17 +08:00
2012-04-09 22:01:56 +08:00
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Help Files: <ulink url= "&libreoffice-help-download-http;" />
2012-04-09 22:01:56 +08:00
</para>
</listitem>
2015-04-28 10:52:17 +08:00
2012-04-09 22:01:56 +08:00
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Help Files MD5 sum: &libreoffice-help-md5sum;
2012-04-09 22:01:56 +08:00
</para>
</listitem>
2015-04-28 10:52:17 +08:00
2013-03-03 00:36:26 +08:00
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Help Files size: &libreoffice-help-size;
2013-03-03 00:36:26 +08:00
</para>
</listitem>
2015-04-28 10:52:17 +08:00
2013-03-03 00:36:26 +08:00
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Translations: <ulink url= "&libreoffice-translations-download-http;" />
2013-03-03 00:36:26 +08:00
</para>
</listitem>
2015-04-28 10:52:17 +08:00
2013-03-03 00:36:26 +08:00
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Translations MD5 sum: &libreoffice-translations-md5sum;
2013-03-03 00:36:26 +08:00
</para>
</listitem>
2015-04-28 10:52:17 +08:00
2013-03-03 00:36:26 +08:00
<listitem >
<para >
2013-03-04 04:28:12 +08:00
Translations size: &libreoffice-translations-size;
2013-03-03 00:36:26 +08:00
</para>
</listitem>
2017-02-05 22:10:11 +08:00
<!--
2015-09-09 09:13:25 +08:00
<listitem >
2014-05-09 07:25:35 +08:00
<para >
2016-11-12 01:22:57 +08:00
Required patch to fix building with system <xref linkend= "icu" /> :
<ulink url= "&patch-root;/libreoffice-&libreoffice-dlversion;-icu_58-1.patch" />
2014-05-09 07:25:35 +08:00
</para>
2016-11-12 01:22:57 +08:00
</listitem>
2017-02-05 22:10:11 +08:00
-->
2013-03-03 00:36:26 +08:00
</itemizedlist>
2012-08-14 00:01:55 +08:00
<bridgehead renderas= "sect3" > LibreOffice Dependencies</bridgehead>
2012-04-09 22:01:56 +08:00
<bridgehead renderas= "sect4" > Required</bridgehead>
<para role= "required" >
2014-02-21 21:12:08 +08:00
<xref linkend= "perl-archive-zip" /> ,
2012-04-10 03:14:47 +08:00
<xref linkend= "unzip" /> ,
2013-03-03 00:36:26 +08:00
<xref linkend= "wget" /> ,
2014-02-21 21:12:08 +08:00
<xref linkend= "which" /> , and
2013-03-03 00:36:26 +08:00
<xref linkend= "zip" />
2012-04-09 22:01:56 +08:00
</para>
<bridgehead renderas= "sect4" > Recommended</bridgehead>
<note >
<para >
2012-08-23 06:30:35 +08:00
Most of these packages are recommended because if they're not installed,
2012-04-10 20:43:21 +08:00
the build process will compile and install its own (often older)
2016-02-11 11:14:43 +08:00
version, with the side effect of increasing build and installed disk
space and build time.
2012-04-09 22:01:56 +08:00
</para>
</note>
<para role= "recommended" >
2016-11-14 17:50:12 +08:00
<xref linkend= "apache-ant" /> ,
2016-02-11 11:14:43 +08:00
<xref linkend= "apr" /> ,
2016-11-12 01:22:57 +08:00
<xref linkend= "boost" /> ,
2013-10-17 20:18:51 +08:00
<xref linkend= "clucene" /> ,
2013-04-04 04:21:38 +08:00
<xref linkend= "cups" /> ,
2013-03-03 00:36:26 +08:00
<xref linkend= "curl" /> ,
2014-06-24 18:06:10 +08:00
<xref linkend= "dbus-glib" /> ,
2014-08-25 01:24:05 +08:00
<xref linkend= "libjpeg" /> ,
<xref linkend= "glu" /> ,
2014-02-07 07:15:02 +08:00
<xref linkend= "graphite2" /> ,
2013-03-03 00:36:26 +08:00
<xref linkend= "gst10-plugins-base" /> ,
2016-02-21 08:31:13 +08:00
<xref linkend= "gtk3" /> and
<xref linkend= "gtk2" /> (see <quote > Command Explanations</quote> ),
2014-02-07 07:15:02 +08:00
<xref linkend= "harfbuzz" /> ,
2014-05-09 07:25:35 +08:00
<xref linkend= "icu" /> ,
2016-02-11 11:14:43 +08:00
<xref linkend= "libatomic_ops" /> ,
2013-03-03 00:36:26 +08:00
<xref linkend= "lcms2" /> ,
2012-04-09 22:01:56 +08:00
<xref linkend= "librsvg" /> ,
2013-03-03 00:36:26 +08:00
<xref linkend= "libxml2" /> and
<xref linkend= "libxslt" /> ,
2015-10-11 19:51:21 +08:00
<xref linkend= "mesa" /> ,
2012-04-09 22:01:56 +08:00
<xref linkend= "neon" /> ,
<xref linkend= "nss" /> ,
2015-04-28 04:31:33 +08:00
<xref linkend= "openldap" /> (if connecting to an LDAP server),
2015-08-06 21:46:16 +08:00
<xref linkend= "openssl" /> or
<xref linkend= "gnutls" /> ,
2012-08-25 01:47:26 +08:00
<xref linkend= "poppler" /> ,
2016-02-11 11:14:43 +08:00
<xref linkend= "postgresql" /> ,
2014-10-07 10:27:15 +08:00
<xref linkend= "python3" /> ,
2016-02-11 11:14:43 +08:00
<xref linkend= "redland" /> ,
<xref linkend= "serf" /> , and
2013-03-03 00:36:26 +08:00
<xref linkend= "unixodbc" />
2012-04-09 22:01:56 +08:00
</para>
<bridgehead renderas= "sect4" > Optional</bridgehead>
<para role= "optional" >
2014-02-01 02:37:37 +08:00
<xref linkend= "avahi" /> ,
2013-03-03 00:36:26 +08:00
<xref linkend= "bluez" /> ,
2016-02-11 11:14:43 +08:00
<xref linkend= "dconf" /> ,
2015-02-19 20:08:18 +08:00
<xref linkend= "desktop-file-utils" /> ,
2014-02-01 02:37:37 +08:00
<xref linkend= "doxygen" /> (not relevant if using --disable-odk),
2014-06-23 20:53:15 +08:00
<xref linkend= "gdb" /> ,
2016-11-14 17:50:12 +08:00
<xref linkend= "junit" /> ,
2016-03-24 08:23:12 +08:00
<!-- <xref linkend="kdelibs"/>, -->
2014-08-23 05:26:13 +08:00
<xref linkend= "mariadb" /> or <ulink url= "http://www.mysql.com/" > MySQL</ulink> ,
<xref linkend= "mitkrb" /> ,
2015-08-06 21:46:16 +08:00
<xref linkend= "nasm" /> ,
2014-08-23 05:26:13 +08:00
<xref linkend= "sane" /> ,
2015-08-06 21:46:16 +08:00
<xref linkend= "valgrind" /> ,
2014-08-23 05:26:13 +08:00
<xref linkend= "vlc" /> ,
2015-08-06 21:46:16 +08:00
<ulink url= "https://commons.apache.org/proper/commons-codec/" > Apache Commons Codec</ulink> ,
<ulink url= "https://hc.apache.org/httpclient-3.x/" > Apache Commons HttpClient</ulink> ,
<ulink url= "https://commons.apache.org/proper/commons-lang/" > Apache Commons Lang</ulink> ,
<ulink url= "https://commons.apache.org/proper/commons-logging/" > Apache Commons Logging</ulink> ,
<ulink url= "http://www.beanshell.org/" > BeanShell</ulink> ,
2015-02-02 01:47:04 +08:00
<ulink url= "https://projects.coin-or.org/CoinMP/" > CoinMP</ulink> ,
2014-08-23 05:26:13 +08:00
<ulink url= "http://sourceforge.net/projects/cppunit/" > Cppunit</ulink> ,
2015-08-06 21:46:16 +08:00
<ulink url= "http://www.firebirdsql.org/" > Firebird</ulink> ,
2014-08-29 19:34:30 +08:00
<ulink url= "http://downloads.sourceforge.net/glew/" > glew (OpenGL Extension Wrangler Library)</ulink> ,
2016-02-11 11:14:43 +08:00
<ulink url= "https://github.com/behdad/glyphy" > glyphy</ulink> ,
2015-08-06 21:46:16 +08:00
<ulink url= "http://ftp.gnome.org/pub/gnome/sources/gnome-vfs/" > Gnome VFS</ulink> ,
2016-02-11 11:55:29 +08:00
<ulink url= "https://github.com/hamcrest/JavaHamcrest/releases" > hamcrest</ulink> ,
<ulink url= "https://hunspell.github.io/" > Hunspell</ulink> ,
2014-08-23 05:26:13 +08:00
<ulink url= "http://sourceforge.net/projects/hunspell/files/Hyphen/" > Hyphen</ulink> ,
2016-02-11 11:55:29 +08:00
<ulink url= "http://include-what-you-use.org/" > iwyu</ulink> ,
2015-02-02 18:11:16 +08:00
<ulink url= "https://wiki.documentfoundation.org/DLP/Libraries/libabw" > libabw</ulink> ,
<ulink url= "https://wiki.documentfoundation.org/DLP/Libraries/libcdr" > libcdr</ulink> ,
2013-09-08 00:03:28 +08:00
<ulink url= "http://sourceforge.net/projects/libcmis/" > libcmis</ulink> ,
2014-08-23 05:26:13 +08:00
<ulink url= "http://www.sourceforge.net/projects/libebook/" > libebook</ulink> ,
2016-10-12 02:12:13 +08:00
<ulink url= "https://wiki.documentfoundation.org/Libexttextcat" > libexttextcat</ulink> ,
2015-02-02 18:11:16 +08:00
<ulink url= "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand" > libfreehand</ulink> ,
2013-09-08 19:27:30 +08:00
<ulink url= "http://tagoh.bitbucket.org/liblangtag/" > liblangtag</ulink> ,
2015-02-02 18:11:16 +08:00
<ulink url= "https://wiki.documentfoundation.org/DLP/Libraries/libmspub" > libmspub</ulink> ,
2014-08-23 05:26:13 +08:00
<ulink url= "http://sourceforge.net/projects/libmwaw/" > libmwaw</ulink> ,
2013-09-10 22:37:56 +08:00
<ulink url= "http://sourceforge.net/projects/libwpd/files/libodfgen/" > libodfgen</ulink> ,
2015-02-02 18:11:16 +08:00
<ulink url= "https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker" > libpagemaker</ulink> ,
2014-08-29 19:34:30 +08:00
<ulink url= "http://sourceforge.net/projects/libwpd/files/librevenge/" > librevenge (WordPerfect Document importer)</ulink> ,
2015-02-02 18:11:16 +08:00
<ulink url= "https://wiki.documentfoundation.org/DLP/Libraries/libvisio" > libvisio</ulink> ,
2014-08-23 05:26:13 +08:00
<ulink url= "http://libwpd.sourceforge.net/" > libwpd</ulink> ,
<ulink url= "http://libwpg.sourceforge.net/" > libwpg</ulink> ,
<ulink url= "http://libwps.sourceforge.net/" > libwps</ulink> ,
<ulink url= "http://lpsolve.sourceforge.net/" > lp_solve</ulink> ,
2016-02-11 11:55:29 +08:00
<ulink url= "https://gitlab.com/mdds/mdds" > mdds</ulink> ,
2012-04-10 03:14:47 +08:00
<ulink url= "http://sourceforge.net/projects/hunspell/files/MyThes/" > MyThes</ulink> ,
2014-08-29 19:34:30 +08:00
<ulink url= "http://sourceforge.net/projects/ogl-math/" > ogl-math - OpenGL Mathematics (GLM)</ulink> ,
2015-02-02 01:47:04 +08:00
<ulink url= "https://github.com/KhronosGroup/OpenCOLLADA/" > OpenCOLLADA</ulink> ,
2015-08-06 21:46:16 +08:00
<ulink url= "https://gitlab.com/orcus/orcus" > Orcus</ulink> ,
2016-08-30 00:34:40 +08:00
<phrase revision= "sysv" > <ulink url= "http://telepathy.freedesktop.org/releases/telepathy-glib/" > telepathy-glib</ulink> </phrase>
<phrase revision= "systemd" > <xref linkend= "telepathy-glib" /> </phrase> ,
2015-08-06 21:46:16 +08:00
<ulink url= "https://ukoethe.github.io/vigra/" > VIGRA</ulink> , and
2016-08-30 00:34:40 +08:00
<phrase revision= "sysv" > <ulink url= "&gnome-download-http;/zenity/" > Zenity</ulink> </phrase>
<phrase revision= "systemd" > <xref linkend= "zenity" /> </phrase>
2012-04-09 22:01:56 +08:00
</para>
2014-06-23 20:53:15 +08:00
<para > There are many optional dependencies not listed here. They can be
found in <quote > download.lst</quote> (source directory).
</para>
2012-04-09 22:01:56 +08:00
<para condition= "html" role= "usernotes" >
User Notes: <ulink url= "&blfs-wiki;/libreoffice" />
</para>
</sect2>
<sect2 role= "installation" >
2012-08-14 00:01:55 +08:00
<title > Installation of LibreOffice</title>
2014-08-31 22:43:46 +08:00
2014-10-07 10:27:15 +08:00
<important >
2014-09-22 15:10:59 +08:00
<para >
2016-10-12 02:12:13 +08:00
Unlike the other packages, we assume that you have not yet unpacked the
package. This is because the <option > --no-overwrite-dir</option>
2016-02-11 11:14:43 +08:00
switch is needed in case you unpack as the <systemitem
class="username">root</systemitem> user.
2014-09-22 15:10:59 +08:00
</para>
2014-10-07 10:27:15 +08:00
</important>
2014-09-22 15:10:59 +08:00
<screen > <userinput > tar -xf libreoffice-&libreoffice-dlversion; .tar.xz --no-overwrite-dir & &
2013-03-03 00:36:26 +08:00
cd libreoffice-&libreoffice-dlversion; </userinput> </screen>
2012-04-10 03:14:47 +08:00
2012-04-09 22:01:56 +08:00
<para >
2014-10-31 19:32:14 +08:00
Create symlinks to tarballs from the source directory so they won't
get downloaded again:
2012-04-09 22:01:56 +08:00
</para>
2014-08-23 04:43:57 +08:00
<screen > <userinput > install -dm755 external/tarballs & &
2014-10-07 10:27:15 +08:00
ln -sv ../../../libreoffice-dictionaries-&libreoffice-dlversion; .tar.xz external/tarballs/ & &
ln -sv ../../../libreoffice-help-&libreoffice-dlversion; .tar.xz external/tarballs/</userinput> </screen>
2012-04-09 22:01:56 +08:00
2013-08-17 02:31:45 +08:00
<para >
If you have downloaded the translations tarball, create a symlink:
</para>
2014-10-07 10:27:15 +08:00
<screen > <userinput > ln -sv ../../../libreoffice-translations-&libreoffice-dlversion; .tar.xz external/tarballs/</userinput> </screen>
2012-04-09 22:01:56 +08:00
2013-03-03 00:36:26 +08:00
<note >
<para >
During the build process, some packages will be downloaded (including
the ones listed as recommended and optional dependencies) if they are
2014-10-07 10:27:15 +08:00
not present on the system. Because of this, build time may vary from the
published time more than usual.
2013-03-03 00:36:26 +08:00
</para>
</note>
2013-02-12 02:51:17 +08:00
2014-02-27 20:19:13 +08:00
<para >
Due to the large size of the package, you may prefer to install it in
2013-09-02 20:23:48 +08:00
<filename class= "directory" > /opt</filename> , instead of
2014-02-02 05:46:04 +08:00
<filename class= "directory" > /usr</filename> . Depending on your choice,
replace <replaceable > < PREFIX> </replaceable> by
<filename class= "directory" > /usr</filename> or by
2014-02-27 20:19:13 +08:00
<filename class= "directory" > /opt/libreoffice-&libreoffice-dlversion; </filename> :
</para>
<screen > <userinput > export LO_PREFIX=<replaceable > < PREFIX> </replaceable> </userinput> </screen>
2017-02-05 22:10:11 +08:00
<!--
2015-09-09 09:13:25 +08:00
<para >
2016-11-12 01:22:57 +08:00
Fix build failures introduced by <xref linkend= "icu" /> :
2014-05-09 07:25:35 +08:00
</para>
2016-11-12 01:22:57 +08:00
<screen > <userinput > patch -Np1 -i ../libreoffice-&libreoffice-dlversion; -icu_58-1.patch</userinput> </screen>
2017-02-05 22:10:11 +08:00
-->
2014-10-31 19:32:14 +08:00
<para >
2015-04-05 00:39:16 +08:00
Locales "fr" and "en-GB", you will find below, are just examples; you
2014-10-31 19:32:14 +08:00
should change them to suit your needs - you might want to read the
"Command Explanations", further below, before proceeding.
</para>
2014-02-27 20:19:13 +08:00
<para >
Prepare <application > LibreOffice</application> for compilation by running
the following commands:
2012-04-09 22:01:56 +08:00
</para>
2015-02-02 01:47:04 +08:00
<screen > <userinput > sed -e "/gzip -f/d" \
2013-03-03 00:36:26 +08:00
-e "s|.1.gz|.1|g" \
2014-10-31 19:32:14 +08:00
-i bin/distro-install-desktop-integration & &
2013-08-17 02:31:45 +08:00
2014-08-31 22:12:19 +08:00
sed -e "/distro-install-file-lists/d" -i Makefile.in & &
2014-02-02 05:46:04 +08:00
2014-02-27 20:19:13 +08:00
./autogen.sh --prefix=$LO_PREFIX \
2014-02-02 05:46:04 +08:00
--sysconfdir=/etc \
2016-02-11 11:14:43 +08:00
--with-vendor=BLFS \
2016-02-17 02:32:43 +08:00
--with-lang='fr en-GB' \
2014-02-02 05:46:04 +08:00
--with-help \
2014-10-31 19:32:14 +08:00
--with-myspell-dicts \
2014-02-02 05:46:04 +08:00
--with-alloc=system \
2016-11-12 01:22:57 +08:00
--without-junit \
2014-10-31 19:32:14 +08:00
--without-system-dicts \
2016-02-11 11:14:43 +08:00
--disable-dconf \
2014-02-02 05:46:04 +08:00
--disable-odk \
--enable-release-build=yes \
2014-08-31 22:12:19 +08:00
--enable-python=system \
2016-02-11 11:14:43 +08:00
--with-system-apr \
2016-11-12 01:22:57 +08:00
--with-system-boost \
2014-02-02 05:46:04 +08:00
--with-system-cairo \
2016-02-11 11:14:43 +08:00
--with-system-clucene \
2014-02-02 05:46:04 +08:00
--with-system-curl \
--with-system-expat \
2014-02-07 07:15:02 +08:00
--with-system-graphite \
2014-02-02 05:46:04 +08:00
--with-system-harfbuzz \
2014-05-18 06:04:23 +08:00
--with-system-icu \
2014-02-02 05:46:04 +08:00
--with-system-jpeg \
--with-system-lcms2 \
2016-02-11 11:14:43 +08:00
--with-system-libatomic_ops \
2014-02-02 05:46:04 +08:00
--with-system-libpng \
--with-system-libxml \
--with-system-neon \
--with-system-nss \
--with-system-odbc \
--with-system-openldap \
--with-system-openssl \
--with-system-poppler \
2016-02-11 11:14:43 +08:00
--with-system-postgresql \
2014-02-02 05:46:04 +08:00
--with-system-redland \
2016-02-11 11:14:43 +08:00
--with-system-serf \
2016-04-27 07:09:23 +08:00
--with-system-zlib</userinput> </screen>
2012-04-10 20:43:21 +08:00
2012-04-09 22:01:56 +08:00
<para >
2013-03-03 00:36:26 +08:00
The instructions below will only build the package without running
any unit tests. If you prefer to run the unit tests, replace
2016-09-02 08:02:45 +08:00
<command > make build-nocheck</command> with <command > make build</command>
or (as a regular user only) just <command > make</command> , but do not be
surprised if a unit test fails right at the end of the build and
breaks it.
2012-04-09 22:01:56 +08:00
</para>
<para >
2016-06-01 03:58:06 +08:00
Build the package:
2012-04-09 22:01:56 +08:00
</para>
2016-09-02 08:02:45 +08:00
<screen > <userinput > make build-nocheck</userinput> </screen>
2012-04-09 22:01:56 +08:00
<para >
2013-03-03 00:36:26 +08:00
Now, as the <systemitem class= "username" > root</systemitem> user:
2012-04-09 22:01:56 +08:00
</para>
2016-09-02 08:02:45 +08:00
<screen role= "root" > <userinput > make distro-pack-install</userinput> </screen>
2013-03-03 00:36:26 +08:00
2013-09-02 20:23:48 +08:00
<para >
2014-11-13 03:57:23 +08:00
If installed in <filename
class="directory">/opt/libreoffice-&libreoffice-dlversion; </filename>
2015-02-02 01:47:04 +08:00
some additional steps are necessary. Issue the following commands, as
<systemitem class= "username" > root</systemitem> user:
2013-09-02 20:23:48 +08:00
</para>
2014-11-13 03:57:23 +08:00
<screen role= "root" > <userinput > if [ "$LO_PREFIX" != "/usr" ]; then
2014-10-07 10:27:15 +08:00
2015-02-02 01:47:04 +08:00
# This symlink is necessary for the desktop menu entries
2015-03-25 12:38:38 +08:00
ln -svf $LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice & &
2014-11-13 03:57:23 +08:00
2015-02-02 01:47:04 +08:00
# Icons
2015-11-16 06:34:56 +08:00
mkdir -vp /usr/share/pixmaps
2016-03-19 16:56:38 +08:00
for i in $LO_PREFIX/share/icons/hicolor/32x32/apps/*; do
2015-02-02 01:47:04 +08:00
ln -svf $i /usr/share/pixmaps
2015-03-27 00:14:06 +08:00
done & &
2014-11-13 03:57:23 +08:00
2015-02-02 01:47:04 +08:00
# Desktop menu entries
2015-03-25 12:38:38 +08:00
for i in $LO_PREFIX/lib/libreoffice/share/xdg/*; do
ln -svf $i /usr/share/applications/libreoffice-$(basename $i)
done & &
2015-02-02 01:47:04 +08:00
# Man pages
for i in $LO_PREFIX/share/man/man1/*; do
2015-03-25 12:38:38 +08:00
ln -svf $i /usr/share/man/man1/
2015-07-31 07:51:03 +08:00
done
2015-03-25 12:38:38 +08:00
unset i
2015-02-19 20:08:18 +08:00
fi</userinput> </screen>
2015-02-02 01:47:04 +08:00
2015-02-19 20:08:18 +08:00
<para >
If you have installed <xref linkend= "desktop-file-utils" /> , and you wish
to update the MIME database, issue, as the <systemitem class= "username" >
root</systemitem> user:
</para>
<screen role= "root" > <userinput > update-desktop-database</userinput> </screen>
2013-09-02 20:23:48 +08:00
2015-12-19 20:05:28 +08:00
<para >
The suite and main modules can be started from the menu. From a terminal,
the suite can be started with <command > libreoffice</command> command and
the modules with <command > libreoffice
--<replaceable > < module> </replaceable> </command> command,
respectively, where <replaceable > < module> </replaceable> is one of
base, calc, draw, impress, math or writer. Modules cannot be started using
their shell starting script names (see "Installed Programs", below), if
2016-10-12 02:12:13 +08:00
LO_PREFIX is other than <filename class= 'directory' > /usr</filename> ,
2015-12-19 20:05:28 +08:00
unless <filename class= 'directory' > $LO_PREFIX/bin</filename> directory is
appended to the PATH.
</para>
2013-03-03 00:36:26 +08:00
</sect2>
<sect2 role= "commands" >
<title > Command Explanations</title>
2012-07-01 00:59:52 +08:00
2012-04-09 22:01:56 +08:00
<para >
2014-10-07 10:27:15 +08:00
<command > sed -e ...</command> : The first sed prevents compression of the
2016-10-12 02:12:13 +08:00
manual pages and the second one prevents the install from failing.
2013-08-17 02:31:45 +08:00
</para>
2012-04-09 22:01:56 +08:00
<para >
2013-08-17 02:31:45 +08:00
<parameter > --with-vendor=BLFS</parameter> : This switch sets BLFS as
2013-03-31 18:41:33 +08:00
the vendor which is mentioned when you click "About" on the toolbar.
2012-04-09 22:01:56 +08:00
</para>
2012-07-01 00:59:52 +08:00
2013-08-17 02:31:45 +08:00
<para >
2016-02-17 02:32:43 +08:00
<parameter > --with-lang='fr en-GB'</parameter> : This switch sets
2013-08-17 19:32:07 +08:00
what languages to support. To list several languages, separate them with
a space. For all languages, use
<parameter > --with-lang=ALL</parameter> .
2013-08-17 02:31:45 +08:00
</para>
2014-10-31 19:32:14 +08:00
<note >
<para >
2015-05-03 06:12:17 +08:00
For a list of the available languages, look in
<filename > solenv/inc/langlist.mk</filename> .
2014-10-31 19:32:14 +08:00
</para>
</note>
2013-08-17 19:32:07 +08:00
<para >
<parameter > --with-help</parameter> : Without this switch, the help files
are not built.
2012-04-09 22:01:56 +08:00
</para>
2014-10-31 19:32:14 +08:00
<para >
<parameter > --with-myspell-dicts</parameter> : This switch adds myspell
dictionaries to the <application > LibreOffice</application> installation
set.
</para>
2012-04-09 22:01:56 +08:00
<para >
2013-03-03 00:36:26 +08:00
<parameter > --with-alloc=system</parameter> : This switch tells
2016-10-12 02:12:13 +08:00
<application > LibreOffice</application> to use the system allocator
instead of its internal one.
2012-04-09 22:01:56 +08:00
</para>
2016-02-11 11:14:43 +08:00
<para >
2016-11-12 01:22:57 +08:00
<parameter > --with-system-boost</parameter> : This switch enables using
system boost. From time to time, recent versions of boost break
the build of libreoffice. In this case, it is possible to use the
bundled copy of boost, by removing this flag.
2016-02-11 11:14:43 +08:00
</para>
<para >
<parameter > --disable-dconf</parameter> : This switch disables compiling
<application > LibreOffice</application> with the
<application > GNOME DConf</application> configuration system support.
</para>
2015-08-29 05:55:25 +08:00
2014-10-31 19:32:14 +08:00
<para >
2016-11-12 01:22:57 +08:00
<parameter > --without-junit</parameter> : This switch disables the HSQLDB
tests (the HSQLDB driver is written in Java). If you want to run the
tests, be sure to install <filename > junit.jar</filename> and <filename >
hamcrest.jar</filename> in <filename class= "directory" > /usr/share/java
</filename> .
2014-10-31 19:32:14 +08:00
</para>
2012-04-09 22:01:56 +08:00
<para >
2016-11-12 01:22:57 +08:00
<parameter > --without-system-dicts</parameter> : This switch disables use
of dictionaries from system paths, so the ones installed by this package
are used.
2012-05-05 21:47:13 +08:00
</para>
2012-04-09 22:01:56 +08:00
<para >
2013-10-12 00:14:19 +08:00
<parameter > --disable-odk</parameter> : This switch disables installing the
2013-03-03 00:36:26 +08:00
office development kit. Remove if you want to develop a
<application > LibreOffice</application> based application.
2012-04-09 22:01:56 +08:00
</para>
2017-06-28 16:10:10 +08:00
<!-- Seems to build with gcc - 7 and libreoffice - 5.3.4
2016-06-01 03:58:06 +08:00
<para >
2017-06-28 16:10:10 +08:00
<parameter > - -disable-firebird-sdbc</parameter> : The bundled version
of Firebird does not build properly with GCC-6.
2016-06-01 03:58:06 +08:00
</para>
2017-06-28 16:10:10 +08:00
-->
2016-06-01 03:58:06 +08:00
2014-02-01 02:37:37 +08:00
<para >
<parameter > --enable-release-build=yes</parameter> : This switch enables a
2014-10-31 19:32:14 +08:00
Release Build. <application > LibreOffice</application> 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).
2014-02-01 02:37:37 +08:00
</para>
2012-04-09 22:01:56 +08:00
<para >
2013-03-03 00:36:26 +08:00
<parameter > --enable-python=system</parameter> : This switch tells
<application > LibreOffice</application> to use installed
2014-10-31 19:32:14 +08:00
<application > Python 3</application> to build the translations instead of
the bundled one.
2012-04-09 22:01:56 +08:00
</para>
<para >
2013-10-12 00:14:19 +08:00
<parameter > --with-system-*</parameter> : These switches prevent
2013-03-03 00:36:26 +08:00
<application > LibreOffice</application> from trying to compile its own
versions of these dependencies. If you've not installed some of the
dependencies, remove the corresponding switches.
2012-04-09 22:01:56 +08:00
</para>
2012-10-06 04:30:08 +08:00
2013-03-03 00:36:26 +08:00
<para >
2016-11-12 01:22:57 +08:00
<option > --with-parallelism=< count> </option> : This switch
2016-04-27 07:09:23 +08:00
tells <application > LibreOffice</application> to use < count> CPU
cores to compile in parallel. (Do not include literal angle brackets.)
2016-11-12 01:22:57 +08:00
The default is to use all available cores on the system.
2013-03-03 00:36:26 +08:00
</para>
2013-04-04 04:21:38 +08:00
<para >
<option > --disable-cups</option> : Use this switch if you don't need
printing support.
</para>
2014-05-13 04:37:37 +08:00
<para >
2014-10-31 19:32:14 +08:00
<option > --disable-dbus</option> : 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.
2014-05-13 04:37:37 +08:00
</para>
2016-02-12 09:58:11 +08:00
<para >
2017-06-28 16:10:10 +08:00
<option > --disable-firebird-sdbc</option> : By default, the ability to
2016-02-12 09:58:11 +08:00
connect to a <application > firebird</application> database is enabled.
2017-06-28 16:10:10 +08:00
Add this switch if you do not need that feature.
</para>
2016-02-12 09:58:11 +08:00
2013-03-03 00:36:26 +08:00
<para >
2015-02-02 01:47:04 +08:00
<option > --disable-gstreamer-1-0</option> : Use this switch if you have not
installed <xref linkend= "gst10-plugins-base" /> .
2014-10-31 19:32:14 +08:00
</para>
2016-02-21 08:31:13 +08:00
<para >
2016-03-03 04:14:01 +08:00
<option > --disable-gtk3</option> : Use this switch if you have not installed
<application > GTK+-3</application> , or if you have installed it but wish
to use <application > GTK+-2</application> (the menu icons differ).
Note that a <application > GTK+-3</application> build still
2016-02-21 08:31:13 +08:00
requires <application > GTK+-2</application> to build the gtk-plugin.
</para>
2016-02-11 11:14:43 +08:00
<para >
<option > --disable-postgresql-sdbc</option> : This switch disables compiling
<application > LibreOffice</application> with the ability to connect to a
2016-03-19 16:56:38 +08:00
<application > PostgreSQL</application> database. Use it if you have not
installed <application > PostgreSQL</application> and you do not want
<application > LibreOffice</application> to compile its bundled copy.
2016-02-11 11:14:43 +08:00
</para>
2012-04-09 22:01:56 +08:00
<para >
2016-09-02 08:02:45 +08:00
<option > --without-fonts</option> : <application > LibreOffice</application>
includes a number of third-party TrueType fonts. If you have already
installed some or all of the same fonts, you may prefer to use the system
versions.
2012-04-09 22:01:56 +08:00
</para>
2016-11-12 01:22:57 +08:00
<para >
<option > --without-java</option> : This switch disables
<application > Java</application> support in
<application > LibreOffice</application> . Java is needed for the HSQLDB
driver, which allows reading databases created by other programs into
libreoffice <application > base</application> .
</para>
2012-04-09 22:01:56 +08:00
</sect2>
<sect2 role= "content" >
<title > Contents</title>
<segmentedlist >
<segtitle > Installed Programs</segtitle>
2013-01-26 00:32:25 +08:00
<segtitle > Installed Libraries</segtitle>
2012-10-06 04:30:08 +08:00
<segtitle > Installed Directory</segtitle>
2012-04-09 22:01:56 +08:00
<seglistitem >
2012-07-01 00:59:52 +08:00
<seg >
2013-03-03 00:36:26 +08:00
libreoffice, lobase, localc, lodraw, loffice, lofromtemplate,
2014-02-01 02:37:37 +08:00
loimpress, lomath, loweb, lowriter, soffice and unopkg;
several programs under
2014-02-27 20:19:13 +08:00
$LO_PREFIX/lib/libreoffice/program
2012-10-06 04:30:08 +08:00
</seg>
2013-01-26 00:32:25 +08:00
<seg >
2014-02-01 02:37:37 +08:00
several libraries under
2015-11-15 05:50:03 +08:00
$LO_PREFIX/lib/libreoffice/program
2013-01-26 00:32:25 +08:00
</seg>
2012-04-09 22:01:56 +08:00
<seg >
2014-02-27 20:19:13 +08:00
$LO_PREFIX/lib/libreoffice
2012-04-09 22:01:56 +08:00
</seg>
</seglistitem>
</segmentedlist>
<variablelist >
<bridgehead renderas= "sect3" > Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
2015-12-19 20:05:28 +08:00
<varlistentry id= "libreoffice-suite" >
<term > <command > libreoffice (or soffice)</command> </term>
<listitem >
<para >
is the main libreofice suite (symlink to
$LO_PREFIX/lib/libreoffice/program/soffice).
</para>
<indexterm zone= "libreoffice libreoffice-suite" >
<primary sortas= "b-libreoffice-suite" > libreoffice-suite</primary>
</indexterm>
</listitem>
</varlistentry>
2013-03-03 00:36:26 +08:00
<varlistentry id= "lobase" >
<term > <command > lobase</command> </term>
2012-04-09 22:01:56 +08:00
<listitem >
<para >
2015-12-19 20:05:28 +08:00
is the database manager module shell starting script.
2012-04-09 22:01:56 +08:00
</para>
2013-03-03 00:36:26 +08:00
<indexterm zone= "libreoffice lobase" >
<primary sortas= "b-lobase" > lobase</primary>
2012-04-09 22:01:56 +08:00
</indexterm>
</listitem>
</varlistentry>
2013-03-03 00:36:26 +08:00
<varlistentry id= "localc" >
<term > <command > localc</command> </term>
2012-04-09 22:01:56 +08:00
<listitem >
<para >
2015-12-19 20:05:28 +08:00
is the spreadsheet module shell starting script.
2012-04-09 22:01:56 +08:00
</para>
2013-03-03 00:36:26 +08:00
<indexterm zone= "libreoffice localc" >
<primary sortas= "b-localc" > localc</primary>
2012-04-09 22:01:56 +08:00
</indexterm>
</listitem>
</varlistentry>
2013-03-03 00:36:26 +08:00
<varlistentry id= "lodraw" >
<term > <command > lodraw</command> </term>
2012-04-09 22:01:56 +08:00
<listitem >
<para >
2015-12-19 20:05:28 +08:00
is the vector graphics editor and diagramming tool module shell
starting script.
2012-04-09 22:01:56 +08:00
</para>
2013-03-03 00:36:26 +08:00
<indexterm zone= "libreoffice lodraw" >
<primary sortas= "b-lodraw" > lodraw</primary>
2012-04-09 22:01:56 +08:00
</indexterm>
</listitem>
</varlistentry>
2013-03-03 00:36:26 +08:00
<varlistentry id= "loimpress" >
<term > <command > loimpress</command> </term>
2012-04-09 22:01:56 +08:00
<listitem >
<para >
2015-12-19 20:05:28 +08:00
is the (PowerPoint) presentations editor and displayer
module shell starting script.
2012-04-09 22:01:56 +08:00
</para>
2013-03-03 00:36:26 +08:00
<indexterm zone= "libreoffice loimpress" >
<primary sortas= "b-loimpress" > loimpress</primary>
2012-04-09 22:01:56 +08:00
</indexterm>
</listitem>
</varlistentry>
2013-03-03 00:36:26 +08:00
<varlistentry id= "lomath" >
<term > <command > lomath</command> </term>
2012-04-09 22:01:56 +08:00
<listitem >
<para >
2015-12-19 20:05:28 +08:00
is the mathematical formula editor module shell starting script.
2012-04-09 22:01:56 +08:00
</para>
2013-03-03 00:36:26 +08:00
<indexterm zone= "libreoffice lomath" >
<primary sortas= "b-lomath" > lomath</primary>
2012-04-09 22:01:56 +08:00
</indexterm>
</listitem>
</varlistentry>
2016-09-15 03:57:11 +08:00
<varlistentry id= "loweb" >
<term > <command > loweb</command> </term>
<listitem >
<para >
is the HTML editor module shell starting script.
</para>
<indexterm zone= "libreoffice loweb" >
<primary sortas= "b-loweb" > loweb</primary>
</indexterm>
</listitem>
</varlistentry>
2013-03-03 00:36:26 +08:00
<varlistentry id= "lowriter" >
<term > <command > lowriter</command> </term>
2012-04-12 21:29:17 +08:00
<listitem >
<para >
2015-12-19 20:05:28 +08:00
is the word processor module shell starting script.
2012-04-12 21:29:17 +08:00
</para>
2013-03-03 00:36:26 +08:00
<indexterm zone= "libreoffice lowriter" >
<primary sortas= "b-lowriter" > lowriter</primary>
2012-04-12 21:29:17 +08:00
</indexterm>
</listitem>
</varlistentry>
2012-04-14 00:45:32 +08:00
<varlistentry id= "unopkg" >
<term > <command > unopkg</command> </term>
<listitem >
<para >
2012-08-14 00:01:55 +08:00
is a tool to manage <application > LibreOffice</application>
2016-03-19 16:56:38 +08:00
extensions from the command line.
2012-04-14 00:45:32 +08:00
</para>
<indexterm zone= "libreoffice unopkg" >
<primary sortas= "b-unopkg" > unopkg</primary>
</indexterm>
</listitem>
</varlistentry>
2012-04-09 22:01:56 +08:00
</variablelist>
2012-10-06 04:30:08 +08:00
2012-04-09 22:01:56 +08:00
</sect2>
2012-10-06 04:30:08 +08:00
2012-04-09 22:01:56 +08:00
</sect1>