source: xsoft/office/libreoffice.xml@ 602c131c

12.2 lazarus trunk
Last change on this file since 602c131c was 8bb252db, checked in by Douglas R. Reno <renodr@…>, 5 weeks ago

Libreoffice: Fix a segmentation fault caused by the Boost patch

  • Property mode set to 100644
File size: 36.7 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[d2d3fc5]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[c6b192c]7 <!ENTITY libreoffice-dl "https://download.documentfoundation.org/libreoffice/src/&libreoffice-version;">
[c20bced]8
9 <!ENTITY libreoffice-core-download-http "&libreoffice-dl;/libreoffice-&libreoffice-dlversion;.tar.xz">
[614e662e]10 <!ENTITY libreoffice-core-md5sum "54f582e82b049f4fbfdc3073551cfea5">
[6e287f7]11 <!ENTITY libreoffice-core-size "267 MB">
[c20bced]12
13 <!ENTITY libreoffice-dict-download-http "&libreoffice-dl;/libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz">
[614e662e]14 <!ENTITY libreoffice-dict-md5sum "9d4e91ede414eddc91d4023cce7f1d56">
[51347047]15 <!ENTITY libreoffice-dict-size "52 MB">
[c20bced]16
17 <!ENTITY libreoffice-help-download-http "&libreoffice-dl;/libreoffice-help-&libreoffice-dlversion;.tar.xz">
[614e662e]18 <!ENTITY libreoffice-help-md5sum "24f7dd6a164230cec5335db62d7350e3">
[b273739]19 <!ENTITY libreoffice-help-size "160 MB">
[c20bced]20
21 <!ENTITY libreoffice-translations-download-http "&libreoffice-dl;/libreoffice-translations-&libreoffice-dlversion;.tar.xz">
[614e662e]22 <!ENTITY libreoffice-translations-md5sum "86208eb27c1bd4f61d44e58abae61f59">
[59928210]23 <!ENTITY libreoffice-translations-size "210 MB">
[514797f]24
[71cf6a3]25 <!-- full size remeasured for 7.0.0.3 -->
[05800b9]26
[614e662e]27 <!ENTITY libreoffice-buildsize "8.2 GB including the additional files if downloaded during the build (732 MB installed). Installing the whole set of languages requires more than 25 GB (around 3 GB installed)">
[bbd73d4]28
29 <!-- Editors: many updates to poppler will break LO using system poppler until
30 somebody is able to provide a patch or sed. In these cases, please mark
31 the dependency as currently broken and move the \-\-with-system-poppler
32 line to a comment. Also please switch poppler between recommended and
33 optional according to whether or not we use the system version. The
34 installed size will be increased by 2 MB if using the shipped poppler, but
[8558044]35 the variation in build times will be lost in the noise. - ken
[8a797817]36
[56da5dcf]37 Not a problem with 7.1.7.2 and poppler-21.05.0. - bdubbs
[95e781d]38 A problem with 7.3.1.3 and poppler-21.05.0, Arch had a patch. - bdubbs
[8a797817]39
40 -->
[05800b9]41
[8558044]42 <!-- for 6.1.2.1 I allowed 2 SBU for downloads, my total was
43 64.76 SBU with fast downloads
[71cf6a3]44 for 6.1.4.2 I and 7.0.0.3 just used the total time - bdubbs
[bbd73d4]45
46 For 6.4.0.3 downloading everything including dictionaries,
47 help, translations took less than 2 minutes (1.1 SBU) with
48 a good domestic internet connection. Total time was 60 SBU - ken
[9873d1ea]49
50 60 SBU not including download of translations, help and dictionary
51 for 6.4.6.2 - pierre
[f853c30e]52
53 56 SBU for 7.0.3.1 not including download of translations, help, and
54 dictionaries. -renodr
[7a9a7b26]55
56 For 7.2.5.2, It was 58 SBU including DL time.
[d202fac9]57
[ce80a743]58 For 7.5.4.2, I increased the parallelism to 8. -bdubbs
[05800b9]59 -->
[59928210]60 <!ENTITY libreoffice-time "34 SBU with parallelism=8 (will vary due to download time)">
[33569f0f]61
[d2d3fc5]62]>
63
[cbdad90b]64<sect1 id="libreoffice" xreflabel="LibreOffice-&libreoffice-dlversion;">
[d2d3fc5]65 <?dbhtml filename="libreoffice.html"?>
66
67
[d2bea743]68 <title>LibreOffice-&libreoffice-version;</title>
[d2d3fc5]69
70 <indexterm zone="libreoffice">
[8c853a1]71 <primary sortas="a-LibreOffice">LibreOffice</primary>
[d2d3fc5]72 </indexterm>
73
74 <sect2 role="package">
[fa29663]75 <title>Introduction to LibreOffice</title>
[d2d3fc5]76
77 <para>
[fa29663]78 <application>LibreOffice</application> is a full-featured office suite.
79 It is largely compatible with <application>Microsoft Office</application>
[8c853a1]80 and is descended from <application>OpenOffice.org</application>.
[d2d3fc5]81 </para>
82
[d8c3e3f]83 &lfs121_checked;
[d2d3fc5]84
85 <bridgehead renderas="sect3">Package Information</bridgehead>
86 <itemizedlist spacing="compact">
87 <listitem>
88 <para>
[9e1dd1b]89 Core Download: <ulink url="&libreoffice-core-download-http;"/>
[d2d3fc5]90 </para>
91 </listitem>
92 <listitem>
93 <para>
94 Core Download MD5 sum: &libreoffice-core-md5sum;
95 </para>
96 </listitem>
97 <listitem>
98 <para>
99 Core Download size: &libreoffice-core-size;
100 </para>
101 </listitem>
[c20bced]102 <listitem>
103 <para>
[9e1dd1b]104 Estimated disk space required: &libreoffice-buildsize;
[c20bced]105 </para>
106 </listitem>
107 <listitem>
108 <para>
[9e1dd1b]109 Estimated build time: &libreoffice-time;
[c20bced]110 </para>
111 </listitem>
[9e1dd1b]112 </itemizedlist>
113
114 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[bbd73d4]115
116 <note>
117 <para>
118 Around 80 smallish tarballs and zip files will be downloaded during the
[9be2df0]119 build. The download time will vary with the local internet speed and
[76244b01]120 server load. The download time is about 3 minutes on a fiber connection
121 and probably not much more than 10 minutes on an ADSL connection.
[8627918]122 If you have not installed one or more of the following dependencies,
123 they will also be downloaded during the build.
[bbd73d4]124 </para>
125 </note>
126
[9e1dd1b]127 <itemizedlist spacing="compact">
[c20bced]128 <listitem>
129 <para>
[9e1dd1b]130 Dictionaries: <ulink url="&libreoffice-dict-download-http;"/>
[c20bced]131 </para>
132 </listitem>
[c4e1c2a0]133
[c20bced]134 <listitem>
135 <para>
[9e1dd1b]136 Dictionaries MD5 sum: &libreoffice-dict-md5sum;
[c20bced]137 </para>
138 </listitem>
[c4e1c2a0]139
[c20bced]140 <listitem>
141 <para>
[9e1dd1b]142 Dictionaries size: &libreoffice-dict-size;
[c20bced]143 </para>
144 </listitem>
[c4e1c2a0]145
[d2d3fc5]146 <listitem>
147 <para>
[9e1dd1b]148 Help Files: <ulink url="&libreoffice-help-download-http;"/>
[d2d3fc5]149 </para>
150 </listitem>
[c4e1c2a0]151
[d2d3fc5]152 <listitem>
153 <para>
[9e1dd1b]154 Help Files MD5 sum: &libreoffice-help-md5sum;
[d2d3fc5]155 </para>
156 </listitem>
[c4e1c2a0]157
[c20bced]158 <listitem>
159 <para>
[9e1dd1b]160 Help Files size: &libreoffice-help-size;
[c20bced]161 </para>
162 </listitem>
[c4e1c2a0]163
[c20bced]164 <listitem>
165 <para>
[9e1dd1b]166 Translations: <ulink url="&libreoffice-translations-download-http;"/>
[c20bced]167 </para>
168 </listitem>
[c4e1c2a0]169
[c20bced]170 <listitem>
171 <para>
[9e1dd1b]172 Translations MD5 sum: &libreoffice-translations-md5sum;
[c20bced]173 </para>
174 </listitem>
[c4e1c2a0]175
[c20bced]176 <listitem>
177 <para>
[9e1dd1b]178 Translations size: &libreoffice-translations-size;
[c20bced]179 </para>
180 </listitem>
[efba2c1]181
[95e781d]182<!-- keep one commented patch, it's sure to again need one or more in a few months:-->
[f4362f22]183
[199671b8]184 <listitem>
[efc0d11]185 <para>
[61678cd2]186 Required patch to fix building with <xref linkend="boost"/>:
[8bb252db]187 <ulink url="&patch-root;/libreoffice-&libreoffice-dlversion;-boost_fixes-2.patch"/>
[10cbf37]188 </para>
189 </listitem>
[61678cd2]190
[c20bced]191 </itemizedlist>
[fa29663]192 <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
[d2d3fc5]193
194 <bridgehead renderas="sect4">Required</bridgehead>
195 <para role="required">
[4392a40]196 <xref linkend="perl-archive-zip"/>,
[d97601a]197 <xref linkend="unzip"/>,
[c20bced]198 <xref linkend="wget"/>,
[d6d4ea1]199 <xref linkend="which"/>, and
[c20bced]200 <xref linkend="zip"/>
[d2d3fc5]201 </para>
202
[afb71d0a]203 &build-use-internet;
204
[d2d3fc5]205 <bridgehead renderas="sect4">Recommended</bridgehead>
206 <note>
207 <para>
[601a838]208 Most of these packages are recommended because if they're not installed,
[ceadeab]209 the build process will compile and install its own (often older)
[1022c00c]210 version, with the side effect of increasing both build and installed disk
211 space along with increasing build time.
[d2d3fc5]212 </para>
213 </note>
214
215 <para role="recommended">
[909868fa]216 <xref linkend="apache-ant"/>,
[54d58907]217 <xref linkend="boost"/>,
[7f5a5884]218 <xref linkend="clucene"/>,
[87dfe6b]219 <xref linkend="cups"/>,
[c20bced]220 <xref linkend="curl"/>,
[1b70960]221 <xref linkend="libepoxy"/>,
[76df61c]222 <xref linkend="libjpeg"/>,
[74762a5]223 <xref linkend="llvm"/> (clang is preferred for rendering with skia),
[7cc81bb]224 <xref linkend="glm"/>,
[76df61c]225 <xref linkend="glu"/>,
[3b9bfde]226 <xref linkend="gpgme"/>,
[2a75b9b]227 <xref linkend="graphite2"/>,
[c20bced]228 <xref linkend="gst10-plugins-base"/>,
[bbd73d4]229 <xref linkend="gtk3"/>,
[2a75b9b]230 <xref linkend="harfbuzz"/>,
[4347e969]231 <xref linkend="icu"/>,
[d8ddab5]232 <xref linkend="libatomic_ops"/>,
[c20bced]233 <xref linkend="lcms2"/>,
[d2d3fc5]234 <xref linkend="librsvg"/>,
[d608866]235 <xref linkend="libtiff"/>,
236 <xref linkend="libwebp"/>,
[c20bced]237 <xref linkend="libxml2"/> and
238 <xref linkend="libxslt"/>,
[a90582a1]239 <xref linkend="lxml"/>,
[7a395d1]240 <xref linkend="mesa"/>,
[d2d3fc5]241 <xref linkend="nss"/>,
[86d09e6]242 <xref linkend="openldap"/> (if connecting to an LDAP server),
[59928210]243 <xref linkend="poppler"/> (currentlly broken),
[d8ddab5]244 <xref linkend="postgresql"/>,
[b54fdc84]245 <xref linkend="redland"/>, and
[c20bced]246 <xref linkend="unixodbc"/>
[d2d3fc5]247 </para>
248
249 <bridgehead renderas="sect4">Optional</bridgehead>
250 <para role="optional">
[02c77612]251 <xref linkend="abseil-cpp"/>,
[4469169]252 <xref linkend="avahi"/>,
[c20bced]253 <xref linkend="bluez"/>,
[d8ddab5]254 <xref linkend="dconf"/>,
[a76bd33]255 <xref linkend="desktop-file-utils"/>,
[4469169]256 <xref linkend="doxygen"/> (not relevant if using --disable-odk),
[1d23596]257 <xref linkend="evolution-data-server"/>,
[f4bb9987]258 <xref linkend="gdb"/>,
[94b42903]259 <xref linkend="gnutls"/>,
[5bfcd23e]260 <xref linkend="kf6-frameworks"/>,
[dba494f]261 <xref linkend="libpaper"/>,
[75b1a338]262 <xref linkend="mariadb"/> or <ulink url="https://www.mysql.com/">MySQL</ulink>,
[b33ea6fa]263 <xref linkend="mitkrb"/>,
[037fc0be]264 <xref linkend="nasm"/>,
[4de66bc7]265 <xref linkend="qt6"/>,
[b33ea6fa]266 <xref linkend="sane"/>,
[037fc0be]267 <xref linkend="valgrind"/>,
[b33ea6fa]268 <xref linkend="vlc"/>,
[037fc0be]269 <ulink url="https://commons.apache.org/proper/commons-codec/">Apache Commons Codec</ulink>,
[e539ccf]270 <ulink url="https://hc.apache.org/httpcomponents-client-ga/index.html">Apache Commons HttpClient</ulink>,
[037fc0be]271 <ulink url="https://commons.apache.org/proper/commons-lang/">Apache Commons Lang</ulink>,
272 <ulink url="https://commons.apache.org/proper/commons-logging/">Apache Commons Logging</ulink>,
[6f96550]273 <ulink url="https://beanshell.github.io/">BeanShell</ulink>,
[0418c9fa]274 <ulink url="https://box2d.org/documentation/">box2d</ulink>,
[64812ba3]275 <ulink url="https://projects.coin-or.org/CoinMP/">CoinMP</ulink>,
[51347047]276 <ulink url='https://freedesktop.org/wiki/Software/cppunit/'>Cppunit</ulink>,
[75b1a338]277 <ulink url="https://www.firebirdsql.org/">Firebird</ulink>,
[d8ddab5]278 <ulink url="https://github.com/behdad/glyphy">glyphy</ulink>,
[01701da9]279 <ulink url="&gnome-download-http;/gnome-vfs/">Gnome VFS</ulink>,
[0e719c4]280 <ulink url="https://github.com/hamcrest/JavaHamcrest/releases">hamcrest</ulink>,
281 <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
[c6b192c]282 <ulink url="https://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
[75b1a338]283 <ulink url="https://include-what-you-use.org/">iwyu</ulink>,
[c1e7218]284 <ulink url="https://github.com/junit-team/junit4/releases">junit4</ulink>,
[5892480]285 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libabw">libabw</ulink>,
286 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr">libcdr</ulink>,
[c6b192c]287 <ulink url="https://sourceforge.net/projects/libcmis/">libcmis</ulink>,
[17aa21c]288 <ulink url="https://www.sourceforge.net/projects/libebook/">libebook</ulink>,
[0418c9fa]289 <ulink url="https://sourceforge.net/projects/libepubgen/">libepubgen</ulink>,
[5e311fb]290 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libetonyek">libetonyek</ulink>,
[7313b4b]291 <ulink url="https://wiki.documentfoundation.org/Libexttextcat">libexttextcat</ulink>,
[5892480]292 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand">libfreehand</ulink>,
[75b1a338]293 <ulink url="https://tagoh.github.io/liblangtag/">liblangtag</ulink>,
[5892480]294 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libmspub">libmspub</ulink>,
[c6b192c]295 <ulink url="https://sourceforge.net/projects/libmwaw/">libmwaw</ulink>,
[0418c9fa]296 <ulink url="https://github.com/Numbertext/libnumbertext">libnumbertext</ulink>,
[c6b192c]297 <ulink url="https://sourceforge.net/projects/libwpd/files/libodfgen/">libodfgen</ulink>,
[5892480]298 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker">libpagemaker</ulink>,
[0418c9fa]299 <ulink url="https://github.com/nayuki/QR-Code-generator">libqrcodegen</ulink>,
300 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libqxp">libqxp</ulink>,
[c6b192c]301 <ulink url="https://sourceforge.net/projects/libwpd/files/librevenge/">librevenge (WordPerfect Document importer)</ulink>,
[0418c9fa]302 <ulink url="https://github.com/fosnola/libstaroffice/wiki">libstaroffice</ulink>,
[5892480]303 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio">libvisio</ulink>,
[17aa21c]304 <ulink url="https://libwpd.sourceforge.net/">libwpd</ulink>,
305 <ulink url="https://libwpg.sourceforge.net/">libwpg</ulink>,
[f853c30e]306 <ulink url="https://sourceforge.net/p/libwps/wiki/Home/">libwps</ulink>,
[0418c9fa]307 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libzmf">libzmf</ulink>,
[17aa21c]308 <ulink url="https://lpsolve.sourceforge.net/">lp_solve</ulink>,
[0e719c4]309 <ulink url="https://gitlab.com/mdds/mdds">mdds</ulink>,
[c6b192c]310 <ulink url="https://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
[0418c9fa]311 <ulink url="https://odftoolkit.org/conformance/ODFValidator.html">odfvalidator</ulink>,
312 <ulink url="https://code.google.com/archive/p/officeotron/">officeotron</ulink>,
[64812ba3]313 <ulink url="https://github.com/KhronosGroup/OpenCOLLADA/">OpenCOLLADA</ulink>,
[e539ccf]314 <ulink url="https://gitlab.com/orcus/orcus">Orcus</ulink>,
315 <ulink url="https://sourceware.org/systemtap/">SystemTap</ulink>, and
[1d23596]316 <ulink url="https://ukoethe.github.io/vigra/">VIGRA</ulink>
[d2d3fc5]317 </para>
318
[622c1021]319 <para>
320 There are many optional dependencies not listed here. They can be
[8627918]321 found in the <filename>download.lst</filename> file in the sources
322 directory.
[f4bb9987]323 </para>
324
[d2d3fc5]325 <para condition="html" role="usernotes">
[42ddc30]326 Editor Notes: <ulink url="&blfs-wiki;/libreoffice"/>
[d2d3fc5]327 </para>
328 </sect2>
329
330 <sect2 role="installation">
[fa29663]331 <title>Installation of LibreOffice</title>
[8627918]332 <!-- since there is no "." in the "tar -t" listing, I cannot see
333 how no-overwrite-dir would be needed...
[89e6d61]334 <important>
[7d38d9a]335 <para>
[7313b4b]336 Unlike the other packages, we assume that you have not yet unpacked the
[8627918]337 package. This is because the <option>- -no-overwrite-dir</option>
[d8ddab5]338 switch is needed in case you unpack as the <systemitem
339 class="username">root</systemitem> user.
[7d38d9a]340 </para>
[89e6d61]341 </important>
[7d38d9a]342
[8627918]343<screen role="nodump"><userinput>tar -xf libreoffice-&libreoffice-dlversion;.tar.xz - -no-overwrite-dir &amp;&amp;
[c20bced]344cd libreoffice-&libreoffice-dlversion;</userinput></screen>
[8627918]345-->
[d97601a]346
[9214104]347<!-- keep a commented instruction if no patches are currently required -->
[61678cd2]348
[dcee7a56]349 <para>
[61678cd2]350 First, fix build failures introduced by the latest Boost version:
[5cc300f]351 </para>
352
[8bb252db]353<screen><userinput>patch -Np1 -i ../libreoffice-&libreoffice-dlversion;-boost_fixes-2.patch</userinput></screen>
[06c23e6]354
[b273739]355 <para>
[364b3e05]356 First, fix a bug with linking to zlib:
[b273739]357 </para>
358
[364b3e05]359<screen><userinput remap="pre">sed -i '/icuuc \\/a zlib\\' writerperfect/Library_wpftdraw.mk</userinput></screen>
[b273739]360
[59928210]361<!--
[8d0bd18a]362 <para>
363 Next, fix a build failure with ICU-74+:
364 </para>
365
366<screen><userinput>sed -e /LBCM/d -i i18npool/source/breakiterator/data/line.txt</userinput></screen>
[59928210]367-->
[d2d3fc5]368 <para>
[bbd73d4]369 If you have downloaded the dictionaries, help and translations tarballs,
370 create symlinks to them from the source directory so they won't get
371 downloaded again:
[d2d3fc5]372 </para>
373
[420c072]374<screen><userinput>install -dm755 external/tarballs &amp;&amp;
[89e6d61]375ln -sv ../../../libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz external/tarballs/ &amp;&amp;
[bbd73d4]376ln -sv ../../../libreoffice-help-&libreoffice-dlversion;.tar.xz external/tarballs/ &amp;&amp;
377ln -sv ../../../libreoffice-translations-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
[d2d3fc5]378
[9be2df0]379 <para>
380 The instructions in the package unpack some tarballs into a location
[6f62ab4]381 it cannot find later. Create some symlinks to help the build system out:
[9be2df0]382 </para>
383
384<screen><userinput>ln -sv src/libreoffice-help-&libreoffice-dlversion;/helpcontent2/ &amp;&amp;
385ln -sv src/libreoffice-dictionaries-&libreoffice-dlversion;/dictionaries/ &amp;&amp;
386ln -sv src/libreoffice-translations-&libreoffice-dlversion;/translations/</userinput></screen>
387
[c20bced]388 <note>
389 <para>
390 During the build process, some packages will be downloaded (including
391 the ones listed as recommended and optional dependencies) if they are
[89e6d61]392 not present on the system. Because of this, build time may vary from the
393 published time more than usual.
[c20bced]394 </para>
395 </note>
[0d7900a]396
[0c77b5ab]397 <para>
398 Due to the large size of the package, you may prefer to install it in
[d83f555]399 <filename class="directory">/opt</filename>, instead of
[14ea7e8]400 <filename class="directory">/usr</filename>. Depending on your choice,
401 replace <replaceable>&lt;PREFIX&gt;</replaceable> by
402 <filename class="directory">/usr</filename> or by
[0c77b5ab]403 <filename class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>:
404 </para>
405
406<screen><userinput>export LO_PREFIX=<replaceable>&lt;PREFIX&gt;</replaceable></userinput></screen>
[10cbf37]407
[7f380f4]408 <para>
[d2bea743]409 Locales "fr" and "en-GB", you will find below, are just examples; you
[7f380f4]410 should change them to suit your needs - you might want to read the
411 "Command Explanations", further below, before proceeding.
412 </para>
413
[93f46ca]414 <note>
415 <para>
[8558044]416 If you set the ACLOCAL environment variable to support installing
[9c9beb8]417 Xorg in /opt, you will need to unset it for this package.
[93f46ca]418 </para>
419 </note>
420
[835b017e]421 <para>
[efba2c1]422 If you are building on a 32 bit machine, <envar>CFLAGS</envar> is set to
[7a9a7b26]423 <command>-Os</command>, which breaks the build. Prevent this
[728887b]424 by issuing:
[835b017e]425 </para>
426
427<screen><userinput>case $(uname -m) in
428 i?86) sed /-Os/d -i solenv/gbuild/platform/LINUX_INTEL_GCC.mk ;;
429esac</userinput></screen>
[b307bd7c]430
[0c77b5ab]431 <para>
432 Prepare <application>LibreOffice</application> for compilation by running
433 the following commands:
[d2d3fc5]434 </para>
435
[8627918]436 <!--Editors: if it happens you need to remove some "with-system-xxx"
437 instruction because libreoffice temporarily cannot use the current
438 system version, please keep it around commented out, so that it can be
439 remembered to test it with higher versions of libreoffice. -->
440
[64812ba3]441<screen><userinput>sed -e "/gzip -f/d" \
[c20bced]442 -e "s|.1.gz|.1|g" \
[7f380f4]443 -i bin/distro-install-desktop-integration &amp;&amp;
[ed2cf3c]444
[5153eb9]445sed -e "/distro-install-file-lists/d" -i Makefile.in &amp;&amp;
[14ea7e8]446
[0c77b5ab]447./autogen.sh --prefix=$LO_PREFIX \
[14ea7e8]448 --sysconfdir=/etc \
[d8ddab5]449 --with-vendor=BLFS \
[201a54c]450 --with-lang='fr en-GB' \
[14ea7e8]451 --with-help \
[7f380f4]452 --with-myspell-dicts \
[cc9c627]453 --without-junit \
[7f380f4]454 --without-system-dicts \
[d8ddab5]455 --disable-dconf \
[14ea7e8]456 --disable-odk \
457 --enable-release-build=yes \
[5153eb9]458 --enable-python=system \
[6bbca81]459 --with-jdk-home=/opt/jdk \
[8627918]460 --with-system-boost \
[d8ddab5]461 --with-system-clucene \
[14ea7e8]462 --with-system-curl \
[6bbca81]463 --with-system-epoxy \
[14ea7e8]464 --with-system-expat \
[4132210]465 --with-system-glm \
[3b9bfde]466 --with-system-gpgmepp \
[2a75b9b]467 --with-system-graphite \
[14ea7e8]468 --with-system-harfbuzz \
469 --with-system-jpeg \
470 --with-system-lcms2 \
[d8ddab5]471 --with-system-libatomic_ops \
[14ea7e8]472 --with-system-libpng \
473 --with-system-libxml \
474 --with-system-nss \
475 --with-system-odbc \
476 --with-system-openldap \
[541e056]477 --with-system-openssl \
[bbd73d4]478 --with-system-poppler \
[d8ddab5]479 --with-system-postgresql \
[14ea7e8]480 --with-system-redland \
[d14db83]481 --with-system-libtiff \
482 --with-system-libwebp \
[ff13fdc2]483 --with-system-zlib</userinput></screen>
[85ab851]484
485<!-- this one might be to be removed with one of the next
486 releases of LO (after 24.2.1.2) as it seems the issue
487 is known by upstream:
488 https://www.mail-archive.com/libreoffice@lists.freedesktop.org/msg336884.html
[59928210]489
490 Removed from above: - -with-system-icu due to problem with version icu-75.1
[85ab851]491-->
492 <para>
493 Fix a misconfiguration when installing on 32-bit machines:
494 </para>
495<screen><userinput>if [ "$(uname -m)" == "i686" ]; then
496 sed -e "s/LFS_CFLAGS=$/&amp;-D_FILE_OFFSET_BITS=64/" -i config_host.mk
497fi</userinput></screen>
498
[f31e7938]499<!--
[d2d3fc5]500 <para>
[c20bced]501 The instructions below will only build the package without running
502 any unit tests. If you prefer to run the unit tests, replace
[34fbc15b]503 <command>make build-nocheck</command> with <command>make build</command>
504 or (as a regular user only) just <command>make</command>, but do not be
505 surprised if a unit test fails right at the end of the build and
506 breaks it.
[d2d3fc5]507 </para>
[f31e7938]508-->
[d2d3fc5]509 <para>
[33569f0f]510 Build the package:
[d2d3fc5]511 </para>
512
[d14db83]513<screen><userinput>make build</userinput></screen>
[d2d3fc5]514
515 <para>
[c20bced]516 Now, as the <systemitem class="username">root</systemitem> user:
[d2d3fc5]517 </para>
518
[34fbc15b]519<screen role="root"><userinput>make distro-pack-install</userinput></screen>
[c20bced]520
[d83f555]521 <para>
[cbdad90b]522 If installed in <filename
523 class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>
[f853c30e]524 some additional steps are necessary. Issue the following commands as the
[64812ba3]525 <systemitem class="username">root</systemitem> user:
[d83f555]526 </para>
527
[cbdad90b]528<screen role="root"><userinput>if [ "$LO_PREFIX" != "/usr" ]; then
[89e6d61]529
[64812ba3]530 # This symlink is necessary for the desktop menu entries
[e43a76ca]531 ln -svf $LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice &amp;&amp;
[cbdad90b]532
[29dd48c]533 # Set up a generic location independent of version number
[8097885]534 ln -sfv $LO_PREFIX /opt/libreoffice
[29dd48c]535
[64812ba3]536 # Icons
[20f09631]537 mkdir -vp /usr/share/pixmaps
[63e837a6]538 for i in $LO_PREFIX/share/icons/hicolor/32x32/apps/*; do
[64812ba3]539 ln -svf $i /usr/share/pixmaps
[defca61]540 done &amp;&amp;
[cbdad90b]541
[64812ba3]542 # Desktop menu entries
[e43a76ca]543 for i in $LO_PREFIX/lib/libreoffice/share/xdg/*; do
544 ln -svf $i /usr/share/applications/libreoffice-$(basename $i)
545 done &amp;&amp;
[64812ba3]546
547 # Man pages
548 for i in $LO_PREFIX/share/man/man1/*; do
[e43a76ca]549 ln -svf $i /usr/share/man/man1/
[5a3365b]550 done
551
[e43a76ca]552 unset i
[a76bd33]553fi</userinput></screen>
[64812ba3]554
[a76bd33]555 <para>
556 If you have installed <xref linkend="desktop-file-utils"/>, and you wish
557 to update the MIME database, issue, as the <systemitem class="username">
558 root</systemitem> user:
559 </para>
560
561<screen role="root"><userinput>update-desktop-database</userinput></screen>
[d83f555]562
[514797f]563 <para>
564 The suite and main modules can be started from the menu. From a terminal,
[964c190]565 the suite can be started with the <command>libreoffice</command> command
566 and the modules with the <command>libreoffice
[514797f]567 --<replaceable>&lt;module&gt;</replaceable></command> command,
568 respectively, where <replaceable>&lt;module&gt;</replaceable> is one of
[8558044]569 base, calc, draw, impress, math, web, or writer. Modules cannot be started
570 using their shell starting script names (see "Installed Programs", below),
[1b70960]571 if LO_PREFIX is other than <filename class='directory'>/usr</filename>,
[f853c30e]572 unless the <filename class='directory'>$LO_PREFIX/bin</filename> directory
573 is appended to the PATH.
[514797f]574 </para>
575
[c20bced]576 </sect2>
577
578 <sect2 role="commands">
579 <title>Command Explanations</title>
[4c796cf]580
[d2d3fc5]581 <para>
[89e6d61]582 <command>sed -e ...</command>: The first sed prevents compression of the
[0418c9fa]583 manual pages and the second one prevents the install from failing.
[ed2cf3c]584 </para>
585
[d2d3fc5]586 <para>
[ed2cf3c]587 <parameter>--with-vendor=BLFS</parameter>: This switch sets BLFS as
[be307b9]588 the vendor which is mentioned when you click "About" from the Help menu
589 on the toolbar.
[d2d3fc5]590 </para>
[4c796cf]591
[ed2cf3c]592 <para>
[201a54c]593 <parameter>--with-lang='fr en-GB'</parameter>: This switch sets
[ffc716b]594 what languages to support. To list several languages, separate them with
595 a space. For all languages, use
[8627918]596 <option>--with-lang=ALL</option>. Note that the translations file
[e163e7e]597 is not needed and won't be downloaded if using only en-US as a language.
[ed2cf3c]598 </para>
599
[7f380f4]600 <note>
601 <para>
[01c0bb8]602 For a list of the available languages, look in
603 <filename>solenv/inc/langlist.mk</filename>.
[7f380f4]604 </para>
605 </note>
[ffc716b]606
607 <para>
608 <parameter>--with-help</parameter>: Without this switch, the help files
609 are not built.
[d2d3fc5]610 </para>
611
[6bbca81]612 <para>
613 <parameter>--with-jdk-home=/opt/jdk</parameter>: This parameter will silence
614 a warning that the configure script attempted to find JAVA_HOME
615 automatically (even though that is passed in the environment). Omit this if
616 you disabled java.
617 </para>
618
[7f380f4]619 <para>
620 <parameter>--with-myspell-dicts</parameter>: This switch adds myspell
621 dictionaries to the <application>LibreOffice</application> installation
622 set.
623 </para>
[efba2c1]624
[d8ddab5]625 <para>
[8627918]626 <parameter>--with-system-boost</parameter>: This switch enables using
[cc9c627]627 system boost. From time to time, recent versions of boost break
628 the build of libreoffice. In this case, it is possible to use the
[5e311fb]629 bundled copy of boost by removing this flag.
[d8ddab5]630 </para>
631
632 <para>
633 <parameter>--disable-dconf</parameter>: This switch disables compiling
634 <application>LibreOffice</application> with the
635 <application>GNOME DConf</application> configuration system support.
636 </para>
[28370fe]637
[7f380f4]638 <para>
[b4bff899]639 <parameter>--without-junit</parameter>: This switch disables the tests
[c1e7218]640 for the deprecated HSQLDB driver which is written in Java.
641 <!-- If you wish
[b4bff899]642 to build this driver replace this switch with the set of switches
[c1e7218]643 described below after '- -without-java'.-->
[7f380f4]644 </para>
645
[d2d3fc5]646 <para>
[8558044]647 <parameter>--without-system-dicts</parameter>: This switch disables the
648 use of dictionaries from system paths so that the ones installed by this
[f853c30e]649 package are used.
[5b9edb4]650 </para>
651
[d2d3fc5]652 <para>
[92b7b3a]653 <parameter>--disable-odk</parameter>: This switch disables installing the
[c20bced]654 office development kit. Remove if you want to develop a
655 <application>LibreOffice</application> based application.
[d2d3fc5]656 </para>
657
[4469169]658 <para>
659 <parameter>--enable-release-build=yes</parameter>: This switch enables a
[7f380f4]660 Release Build. <application>LibreOffice</application> can be built as a
661 Release Build or as a Developer Build, because their default installation
662 paths and user profile paths are different. Developer Build displays the
663 words "Dev" and "Beta" in several places (e.g, menu and splash screen).
[4469169]664 </para>
[d2d3fc5]665
666 <para>
[c20bced]667 <parameter>--enable-python=system</parameter>: This switch tells
[e539ccf]668 <application>LibreOffice</application> to use the system installed
[bbd73d4]669 <application>Python 3</application> instead of
[7f380f4]670 the bundled one.
[d2d3fc5]671 </para>
672
[59928210]673 <para>
674 <parameter>--with-system-icu</parameter>: Use the installed version of
675 icu. This version of libreoffice (24.2.3.2) is broken with icu-75.1.
676 </para>
677
[d2d3fc5]678 <para>
[92b7b3a]679 <parameter>--with-system-*</parameter>: These switches prevent
[c20bced]680 <application>LibreOffice</application> from trying to compile its own
681 versions of these dependencies. If you've not installed some of the
682 dependencies, remove the corresponding switches.
[d2d3fc5]683 </para>
[8c853a1]684
[0293de0]685 <para>
[964c190]686 <command>make distro-pack-install</command>: This does a normal
[0293de0]687 install, but if you add a DESTDIR environment variable it will also
688 install a lot of (text) gid_Module_* files in the DESTDIR, to help
689 distributions which want to break the package into parts.
690 </para>
[488b738f]691
[c20bced]692 <para>
[cc9c627]693 <option>--with-parallelism=&lt;count&gt;</option>: This switch
[ff13fdc2]694 tells <application>LibreOffice</application> to use &lt;count&gt; CPU
695 cores to compile in parallel. (Do not include literal angle brackets.)
[cc9c627]696 The default is to use all available cores on the system.
[c20bced]697 </para>
698
[87dfe6b]699 <para>
700 <option>--disable-cups</option>: Use this switch if you don't need
701 printing support.
702 </para>
703
[54666831]704 <para>
[7f380f4]705 <option>--disable-dbus</option>: Use this switch if you've not installed
706 D-Bus-1.8.0 or later. It also disables Bluetooth support and font install
707 via PackageKit.
[54666831]708 </para>
709
[1cbfd1a]710 <para>
[011ed8fa]711 <option>--disable-firebird-sdbc</option>: By default, the ability to
[1cbfd1a]712 connect to a <application>firebird</application> database is enabled.
[011ed8fa]713 Add this switch if you do not need that feature.
714 </para>
[1cbfd1a]715
[c20bced]716 <para>
[64812ba3]717 <option>--disable-gstreamer-1-0</option>: Use this switch if you have not
718 installed <xref linkend="gst10-plugins-base"/>.
[7f380f4]719 </para>
720
[d8ddab5]721 <para>
722 <option>--disable-postgresql-sdbc</option>: This switch disables compiling
723 <application>LibreOffice</application> with the ability to connect to a
[63e837a6]724 <application>PostgreSQL</application> database. Use it if you have not
725 installed <application>PostgreSQL</application> and you do not want
726 <application>LibreOffice</application> to compile its bundled copy.
[d8ddab5]727 </para>
728
[443f05a]729 <para>
[08790cc]730 <option>--disable-skia</option>: Use <xref linkend="cairo"/> for rendering
[443f05a]731 instead of skia.
732 </para>
733
[768a7aa]734<!-- This needs KF5, and has not been ported to KF6. However, enable-kf6 brings
735 in a new VCL plugin so that it works properly in Plasma 6, so it's not
736 needed.
[bbd73d4]737 <para>
[768a7aa]738 <option>- -enable-gtk3-kde5</option>: This switch allows the Visual Class
[bbd73d4]739 Library, which is responsible for widgets, to be built with KF5 file
740 dialogs if GTK+-3, Qt5 and Plasma are all available.
741 </para>
[768a7aa]742-->
[bbd73d4]743
[7c57f82]744 <para>
745 <option>--enable-lto</option>: This switch will enable Link Time
746 Optimization, which results in slightly smaller libraries (about 40 MB).
747 This is said to make <application>LibreOffice</application> programs
748 load faster (and possibly run faster, e.g. when recalculating a
[3d516cf]749 spreadsheet). On an 8-core machine with 16 GB of memory, the difference
750 in compile times was minimal, but an extra 2 GB was used for the work
[7c57f82]751 files. On machines with fewer processors or a lack of memory, the compile
752 might be much slower.
753 </para>
754
[cc9c627]755 <para>
[0293de0]756 <option>--without-java</option>: This switch disables
[cc9c627]757 <application>Java</application> support in
[b4bff899]758 <application>LibreOffice</application>. Java is needed for the
759 deprecated HSQLDB driver, which allows reading databases created by
760 other programs or in earlier versions of libreoffice
[efba2c1]761 <application>base</application>. It is also needed for some optional
762 user interface components.
[0293de0]763 </para>
[9be2df0]764
[f0506d09]765 <para>
766 <option>--without-fonts</option>: <application>LibreOffice</application>
767 includes a number of third-party TrueType fonts. If you have already
768 installed some or all of the same fonts, you may prefer to use the system
769 versions.
770 </para>
771
[768a7aa]772<!-- We no longer carry KDE 5, so let's only cover KDE 6.
[be307b9]773 <para>
[768a7aa]774 <option>- -enable-kf5</option>: Builds with KDE/Plasma integration. If
[5bfcd23e]775 &qt5-deps; and/or <xref linkend="kf6-frameworks"/> are not
[0293de0]776 installed in <filename class="directory">/usr</filename>, the include
777 and library directories must be specified in <envar>QT5INC</envar>,
778 <envar>QT5LIB</envar>, <envar>KF5INC</envar>, and <envar>KF5LIB</envar>,
779 respectively.
[be307b9]780 </para>
[768a7aa]781-->
[c1e7218]782 <para>
[dba494f]783 <option>--enable-evolution2</option>: Enables support for Evolution
784 address books through Evolution Data Server. Note that Evolution Data
785 Server must be installed for this feature to function.
786 </para>
[be307b9]787
[768a7aa]788<!-- Let's not encourage the use of Qt5 since LXQt and Plasma now use Qt6.
[efba2c1]789 <para>
[768a7aa]790 <option>- -enable-qt5</option>: This switch enables support for integration
[efba2c1]791 with Qt5 and the Qt5 theming engine. If &qt5-deps; is not installed in
792 <filename class="directory">/usr</filename>, the include and library
793 directories must be specified in the <envar>QT5INC</envar> and
794 <envar>QT5LIB</envar> environment variables.
795 </para>
[768a7aa]796-->
[efba2c1]797
[51347047]798 <para>
799 <option>--enable-qt6</option>: This switch enables support for integration
800 with Qt6 and the Qt6 theming engine. If <xref linkend="qt6"/> is not
801 installed in <filename class="directory">/usr</filename>, the include and
802 library directories must be specified in the <envar>QT6INC</envar> and
803 <envar>QT6LIB</envar> environment variables.
804 </para>
805
[02c77612]806 <para>
[768a7aa]807 <option>--enable-kf6</option>: Builds with KDE/Plasma integration. If
[51347047]808 <xref linkend="qt6"/> and/or <xref linkend="kf6-frameworks"/> are not
809 installed in <filename class="directory">/usr</filename>, the include
810 and library directories must be specified in <envar>QT6INC</envar>,
811 <envar>QT6LIB</envar>, <envar>KF6INC</envar>, and <envar>KF6LIB</envar>,
[768a7aa]812 respectively. This includes a style plugin and KIO integration.
813 </para>
814
815 <para>
816 <option>--with-system-abseil</option>: This switch enables using a system
817 version of the Abseil C++ libraries instead of the bundled copy. Add this
818 switch if <xref linkend="abseil-cpp"/> is installed and you wish to use
819 it instead of the bundled copy.
[51347047]820 </para>
821
[d2d3fc5]822 </sect2>
823
824 <sect2 role="content">
825 <title>Contents</title>
826
827 <segmentedlist>
828 <segtitle>Installed Programs</segtitle>
[c3c56b2]829 <segtitle>Installed Libraries</segtitle>
[8c853a1]830 <segtitle>Installed Directory</segtitle>
[d2d3fc5]831
832 <seglistitem>
[4c796cf]833 <seg>
[c20bced]834 libreoffice, lobase, localc, lodraw, loffice, lofromtemplate,
[4469169]835 loimpress, lomath, loweb, lowriter, soffice and unopkg;
836 several programs under
[0c77b5ab]837 $LO_PREFIX/lib/libreoffice/program
[8c853a1]838 </seg>
[c3c56b2]839 <seg>
[4469169]840 several libraries under
[ff7ea587]841 $LO_PREFIX/lib/libreoffice/program
[c3c56b2]842 </seg>
[d2d3fc5]843 <seg>
[c1e7218]844 $LO_PREFIX/lib/libreoffice
[d2d3fc5]845 </seg>
846 </seglistitem>
847 </segmentedlist>
848
849 <variablelist>
850 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
851 <?dbfo list-presentation="list"?>
852 <?dbhtml list-presentation="table"?>
853
[514797f]854 <varlistentry id="libreoffice-suite">
855 <term><command>libreoffice (or soffice)</command></term>
856 <listitem>
857 <para>
858 is the main libreofice suite (symlink to
[4c24eb0a]859 $LO_PREFIX/lib/libreoffice/program/soffice)
[514797f]860 </para>
861 <indexterm zone="libreoffice libreoffice-suite">
862 <primary sortas="b-libreoffice-suite">libreoffice-suite</primary>
863 </indexterm>
864 </listitem>
865 </varlistentry>
866
[c20bced]867 <varlistentry id="lobase">
868 <term><command>lobase</command></term>
[d2d3fc5]869 <listitem>
870 <para>
[4c24eb0a]871 is the database manager module shell starting script
[d2d3fc5]872 </para>
[c20bced]873 <indexterm zone="libreoffice lobase">
874 <primary sortas="b-lobase">lobase</primary>
[d2d3fc5]875 </indexterm>
876 </listitem>
877 </varlistentry>
878
[c20bced]879 <varlistentry id="localc">
880 <term><command>localc</command></term>
[d2d3fc5]881 <listitem>
882 <para>
[4c24eb0a]883 is the spreadsheet module shell starting script
[d2d3fc5]884 </para>
[c20bced]885 <indexterm zone="libreoffice localc">
886 <primary sortas="b-localc">localc</primary>
[d2d3fc5]887 </indexterm>
888 </listitem>
889 </varlistentry>
890
[c20bced]891 <varlistentry id="lodraw">
892 <term><command>lodraw</command></term>
[d2d3fc5]893 <listitem>
894 <para>
[514797f]895 is the vector graphics editor and diagramming tool module shell
[4c24eb0a]896 starting script
[d2d3fc5]897 </para>
[c20bced]898 <indexterm zone="libreoffice lodraw">
899 <primary sortas="b-lodraw">lodraw</primary>
[d2d3fc5]900 </indexterm>
901 </listitem>
902 </varlistentry>
903
[c20bced]904 <varlistentry id="loimpress">
905 <term><command>loimpress</command></term>
[d2d3fc5]906 <listitem>
907 <para>
[514797f]908 is the (PowerPoint) presentations editor and displayer
[4c24eb0a]909 module shell starting script
[d2d3fc5]910 </para>
[c20bced]911 <indexterm zone="libreoffice loimpress">
912 <primary sortas="b-loimpress">loimpress</primary>
[d2d3fc5]913 </indexterm>
914 </listitem>
915 </varlistentry>
916
[c20bced]917 <varlistentry id="lomath">
918 <term><command>lomath</command></term>
[d2d3fc5]919 <listitem>
920 <para>
[4c24eb0a]921 is the mathematical formula editor module shell starting script
[d2d3fc5]922 </para>
[c20bced]923 <indexterm zone="libreoffice lomath">
924 <primary sortas="b-lomath">lomath</primary>
[d2d3fc5]925 </indexterm>
926 </listitem>
927 </varlistentry>
928
[006bd37]929 <varlistentry id="loweb">
930 <term><command>loweb</command></term>
931 <listitem>
932 <para>
[4c24eb0a]933 is the HTML editor module shell starting script
[006bd37]934 </para>
935 <indexterm zone="libreoffice loweb">
936 <primary sortas="b-loweb">loweb</primary>
937 </indexterm>
938 </listitem>
939 </varlistentry>
940
[c20bced]941 <varlistentry id="lowriter">
942 <term><command>lowriter</command></term>
[2511f83]943 <listitem>
944 <para>
[4c24eb0a]945 is the word processor module shell starting script
[2511f83]946 </para>
[c20bced]947 <indexterm zone="libreoffice lowriter">
948 <primary sortas="b-lowriter">lowriter</primary>
[2511f83]949 </indexterm>
950 </listitem>
951 </varlistentry>
952
[8d5cd1bb]953 <varlistentry id="unopkg">
954 <term><command>unopkg</command></term>
955 <listitem>
956 <para>
[fa29663]957 is a tool to manage <application>LibreOffice</application>
[4c24eb0a]958 extensions from the command line
[8d5cd1bb]959 </para>
960 <indexterm zone="libreoffice unopkg">
961 <primary sortas="b-unopkg">unopkg</primary>
962 </indexterm>
963 </listitem>
964 </varlistentry>
965
[d2d3fc5]966 </variablelist>
[8c853a1]967
[d2d3fc5]968 </sect2>
[8c853a1]969
[d2d3fc5]970</sect1>
Note: See TracBrowser for help on using the repository browser.