how to build libreoffice on your desktop
TRANSCRIPT
1 openSUSE.Asia Summit October 21-22, 2017
How to build LibreOfficeon your desktop
Masataka KONDOLibreOffice Japanese TeamOctober 22nd , 2017
2 openSUSE.Asia Summit October 21-22, 2017
Self Introduction : Who am I
3 openSUSE.Asia Summit October 21-22, 2017
Activities in the Team
Used to be QA Coordinator of OpenOffice.org Japanese Team (2003-2004)Join LibreOffice Activities from Sep. 2012Staff : Mar. 2014 -
4 openSUSE.Asia Summit October 21-22, 2017
I Come from...
I live in Kakamigahara City ( 各務原市 ), Gifu Pref. City’s name called “Hard to Read It”.
There is Military Airdrome used by JASDF.(JASDF Gifu Air Base)Also, there are many aircraft manufacturing companiese.g. Kawasaki Heavy Industries
5 openSUSE.Asia Summit October 21-22, 2017
The Map
6 openSUSE.Asia Summit October 21-22, 2017
Example : Colorful Prototype ships “Viper Zero”
7 openSUSE.Asia Summit October 21-22, 2017
My Hobby
About 20 years of experience in Photography.12 years passed since I had started to use Digital SLR
8 openSUSE.Asia Summit October 21-22, 2017
Introduction : Why we try to build it
As I wrote in the Abstract, Building LibreOffice yourself is a first step of Development activity.
9 openSUSE.Asia Summit October 21-22, 2017
Build makes the software more active
For the Community :Many persons join their activities e.g. development.Increase the number of users
For you :Skill up to use software, with complehending it.Get skill to finding and fixing bugs.
And experience with new features, new software...
10 openSUSE.Asia Summit October 21-22, 2017
Another Reason : Just suitable for you
Recent version (e.g. 5.4.x) uses GTK3Old version, such as 5.0.x TDF build was not used GTK3
Self Build
TDF Distributed
11 openSUSE.Asia Summit October 21-22, 2017
Next step : LibreOffice Online (LOOL), and so on
To build LOOL, building LibreOffice core is needed. As improving LOOL, It might become much popular. Advanced : LibreOffice for Mobile Devices
Android version’s source code is integrated.On mac OS, for iOS will be able to build in the future.
12 openSUSE.Asia Summit October 21-22, 2017
On other environments
Shortly I’m going to introduce how to build LibreOffice on Windows or mac OS.
13 openSUSE.Asia Summit October 21-22, 2017
On Windows system
There are some examples introduced in JapaneseSometime talked on local “Study Parties” of LibreOffice
You need Microsoft’s Account to get VS2013 Community.To get older versions becomes difficult than before.
And Cygwin is also need to build it. To setup environment is much harder than others.
The hardest system, maybe.Finishing setup the environment must be almost finished.
14 openSUSE.Asia Summit October 21-22, 2017
On macOS
See TDF Development Wiki.First, you must install Xcode from App Store.Using “LODE” environment is the easiest way.
Unfortunately, Current version is not finished cause of building “firebird” sub block.
15 openSUSE.Asia Summit October 21-22, 2017
Linux is the most popular, the easiest...
You have already used it, haven’t you?Popular distributions are recommended.openSUSE is one of recommended distribution, of course!!
16 openSUSE.Asia Summit October 21-22, 2017
Case 1 : on openSUSE
Tutorial written in TDF wiki will lead you to success easily on openSUSE. Complementally how to use “Zypper” for openSUSE beginners or other distributions users.
17 openSUSE.Asia Summit October 21-22, 2017
Read the wiki first
Open wiki.documentfoundation.org/Development/BuildingOnLinux
18 openSUSE.Asia Summit October 21-22, 2017
Read the wiki...
Run “Zypper” shown as below :
And cloning source tree, autogen.sh will complete suitable settings.
Do not forget to install “git”.
% zypper si -d LibreOffice
% git clone git://anongit.freedesktop.org/libreoffice/core core
% zypper in git
19 openSUSE.Asia Summit October 21-22, 2017
Is it all, really?
Yes! It is just all procedure(1) % zypper si -d libreoffice(2) % ./autogen.sh(3) % make build
You need only enough time to compile all of the sourceI recommend you to sleep while make buildNext morning, you will get new one, probably.
20 openSUSE.Asia Summit October 21-22, 2017
If OS installation is not “Completed”.
“Incomplete install” may lead you to troublesI had encountered the trouble without Gnome/KDE.I want to use “Cinnamon” first...
Zypper will help you to install libraries needed.For users not use openSUSE usually ;
Its option “search” (shorten “se”) shows package nameAnd it shows also already installed or not yet.
21 openSUSE.Asia Summit October 21-22, 2017
Example : “zypper search”
./autogen.sh is stoped not installed cups library.
% ./autogen.sh....(snip)----configure: error: Could not find CUPS. Install libcups2-dev or cups-develError running configure at ./autogen.sh lin 293.
% zypper se cups-develS | Name | Summary | Type--+--------------------+----------------------------------+-------- | cups-devel | Development Environment for CUPS | package | libgnomecups-devel | GNOME CUPS library | package
22 openSUSE.Asia Summit October 21-22, 2017
In case of Ubuntu etc.
This procedure is important on next case.
23 openSUSE.Asia Summit October 21-22, 2017
In case of Ubuntu etc.
This procedure is important on next case.
24 openSUSE.Asia Summit October 21-22, 2017
I think it may be strange…! ?
On openSUSE, we can use zypper both as installation command, package search command, etc.We use on Debian or Ubuntu, “apt-get” as an installation tool.What is package search command on their systems?
Use “apt-cache” as package search command.Installation and Search commands have each different command name. It may be difficult for beginners, I think.
25 openSUSE.Asia Summit October 21-22, 2017
Case 2 : on Linux Mint
The Case of “Does not run dependency Script”. Install some libraries manually, and you can get more experience and interest about the software.
26 openSUSE.Asia Summit October 21-22, 2017
Cinnamon / Mate may cause troubles to setup
Build dependency correction procedure does not workSimilar trouble on openSUSE caused when I ignored to install Gnome/KDE environment.
Linux Mint :Based on Ubuntu (there’s also Debian based one) Cinnamon, or Mate is standard desktop environment
You can also choose KDE, Xfce version
How to solve :Install libraries manually, in each time when autogen.sh stopped.
27 openSUSE.Asia Summit October 21-22, 2017
What is the advantage to know that case
You can know what library needed by configure script.You can advise preciously when other beginners encounter their similar trouble.
“Rubber-Stump” experiences don’t make you better
I’m going to show the procedure step by step.
28 openSUSE.Asia Summit October 21-22, 2017
(Cinnamon version only) : There is not “aclocal”
“aclocal” has dependency between with autotoolYou must “autotools-dev” first, and you can install “automake” include “aclocal”.Mate version has “aclocal”, you will encounter this trouble on Cinnamon version only.
$ sudo apt-get install autotools-dev$ sudo apt-get install automake
29 openSUSE.Asia Summit October 21-22, 2017
Run autogen.sh again and again...
Script’s stops show you what library insufficient.- libcups2-dev- libfontconfig1-dev
Library’s names are ase able to search with Web or apt-cache.
$ sudo apt-get install libcups2-dev$ sudo apt-get install libfontconfig1-dev
30 openSUSE.Asia Summit October 21-22, 2017
C++ compiler is not installed
You can use gcc, but some environment is not installed g++ at the first time.Install It.
$ sudo apt-get install g++
31 openSUSE.Asia Summit October 21-22, 2017
OpenJDK is recommended
Of course you can install Oracle JDKYou must add PPA repository to install it.
You can also choose option “--without-java”.I recommend to install OpenJDK
$ sudo apt-get install openjdk-8-jdk
32 openSUSE.Asia Summit October 21-22, 2017
Insufficient libraries / binaries (1)
28 libraries / binaries to complete autogen.shI’m going to show below and next page.
- gperf- doxygen- libxslt1-dev- xsltproc- libxml2-utils- python3-dev- python-dev
$ sudo apt-get install gperf$ sudo apt-get install doxygen...(snip)...
33 openSUSE.Asia Summit October 21-22, 2017
Kerberos library is needed (from 16.4)
Linux Mint 18.x are based Ubuntu 16.4 or 17.4 (current)Libraries for Kerberos is needed.
This note was vanished in TDF wikiBut it remains in Japanese translated wiki.
We need two packages shown below:- comerr-dev- libkrb5-dev
$ sudo apt-get install comerr-dev$ sudo apt-get install libkrb5-dev
34 openSUSE.Asia Summit October 21-22, 2017
Insufficient libraries / binaries (2)
Continue from the previous page.- libx11-dev- libxt-dev- libxext-dev- libxrender-dev- libxrandr-dev- libgtk-3-dev- libdbus-glib-1-dev- libgtk2.0-dev
$ sudo apt-get install libx11-dev$ sudo apt-get install libxt-dev...(snip)...
35 openSUSE.Asia Summit October 21-22, 2017
This is the rest 3 packages to finish script
OpenGL and build tool, test tool.- libglew-dev- ant- junit4
$ sudo apt-get install libglew-dev$ sudo apt-get install ant$ sudo apt-get install junit4
36 openSUSE.Asia Summit October 21-22, 2017
Script was finished, but build will fail
You need one additional package to build LibreOfficeScript’s warning also resolve.
- nasm- libgcrypt11-dev
$ sudo apt-get install nasm$ sudo apt-get install libgcrypt11-dev
37 openSUSE.Asia Summit October 21-22, 2017
Tips building on Linux Mint
You can finish script with installation packages manually.I recommend write what package needed
38 openSUSE.Asia Summit October 21-22, 2017
Conclusion
One night of experience will change your life. Enjoy it!
39 openSUSE.Asia Summit October 21-22, 2017
Continue better habits for your life
You need only enough time to build it.Only a few hours with current machines.
I’m sorry about Arm architectures, evaluation board, etc.You must get “good sleep” for your health.
40 openSUSE.Asia Summit October 21-22, 2017
Demo :
41
All text and image content in this document is licensed under the Creative Commons Attribution-Share Alike 3.0 License (unless otherwise specified). "LibreOffice" and "The Document Foundation" are registered trademarks. Their respective logos and icons are subject to international copyright laws. The use of these therefore is subject to the trademark policy.
openSUSE.Asia Summit October 21-22, 2017
Let’s try. Good Luck!