Comments (14)
I have been testing disabling different functionality with compiling and this is what i came up with. With-system-XXXX options gave varying results so I left them out. Compile with 3 cpu was done in less than 2 hours.
--without-help
--without-myspell-dicts
--without-java
--without-doxygen
--disable-cups
--disable-dconf
--disable-odk
--without-junit
--disable-dbus
--disable-firebird-sdbc
--disable-postgresql-sdbc
--disable-gltf
--disable-extensions
--disable-pdfimport
--disable-neon
from officeonlin-install.sh.
Totally agree.
My suggestions:
At first look there is some safe options to disable features not needed by headless service:
- --disable-avmedia
- --disable-database-connectivity
- --disable-lpsolve
- --disable-coinmp
- --disable-gtk
- --disable-gtk3
- --disable-systray
- --disable-dbus
- --disable-gui
- --disable-randr
- --disable-gstreamer-1-0
- --without-helppack-integration
And enable some optimizations (may build longer):
- --enable-lto
- --enable-eot
- --enable-release-build
- --with-system-bzip2
- --with-system-zlib
- --with-system-jpeg
- --with-system-expat
- --with-system-libxml
- --with-system-icu
- --with-system-poppler
- --with-system-curl
- --with-system-boost
- --with-system-libpng
- --with-alloc=jemalloc (need libjemalloc-dev)
There is may be more options. Can look into Ubuntu/Debian LibreOffice source package.
from officeonlin-install.sh.
Questionable options:
- --enable-python=no - do LooL need python?
- --disable-neon - do we need webdav here?
- --disable-cups - do we need printing here?
- --disable-gltf --disable-collada - need some 3d modeling import?
- --enable-introspection=no - not sure about this
- --disable-pdfimport - how often people import pdf into Draw?
- --disable-odk - ODK probably not needed
- --disable-extension-update - this probably not needed too
- --without-java - JAVA probably not needed
from officeonlin-install.sh.
So, not all go well.
I'll update working set of options soon.
from officeonlin-install.sh.
Thank you @Sergey,
Do you know if it possible to build only some modules instead of all the project ? Like core, writer, table and draw ?
from officeonlin-install.sh.
I think not.
It's even not possible build LiO without GUI, OpenGL, DB drivers, other strange stuff.
At least we can reduce build time by using some system libraries.
And disable python, java, and small amount of other stuff.
from officeonlin-install.sh.
OK Thanks
I supposed it could be possible while reading the LiO's github Readme for they took the time to writes about what module are importants.
maybe we need to simply run the "make" from inside the module's folder...
from officeonlin-install.sh.
Once I was tried to build python-uno separately. No luck.
from officeonlin-install.sh.
And something strange happens with systemd unit:
- loolwsd can't make forks after some time,
- systemd looses cgroup it maked for loolwsd
May be it's because I using OpenVZ + 2.6.32 (Proxmox 3.4). It may have no complete support for cgroups.
I'll try KVM with fresh Debian 8.7 soon.
from officeonlin-install.sh.
Some more options to disable.
--disable-lpsolve
--disable-coinmp
--disable-systray
--disable-randr
--disable-gstreamer-1-0
--without-helppack-integration
--disable-report-builder
--disable-coinmp
--disable-pdfium
--disable-collada
from officeonlin-install.sh.
Very nice idea.
Where exactly do I have to put these params?
In the 'lo_configure_opts' var?
from officeonlin-install.sh.
I have created a pull request so it is already in the script.
#106
from officeonlin-install.sh.
Very nice. Thanks. Without knowing it, I downloaded the last version just after your pull.
from officeonlin-install.sh.
update:
I've been using the options found in this file : https://github.com/LibreOffice/online/blob/distro/collabora/collabora-online-3-0/docker/l10n-docker-nightly.sh for Libreoffice build (except the disable cups) and result have been quite goods building from scratch.
I'll look for pushing them as default.
from officeonlin-install.sh.
Related Issues (20)
- Build error on Debian 9 HOT 1
- Multiple editors "crashes" loolwsd HOT 1
- Build error on Debian 10 HOT 2
- Build Error on Debian 10 HOT 3
- [SOLVED] Error Editing Docs with Γ€,ΓΆ,ΓΌ etc. HOT 6
- Build fails on rapsberry pi 4 running Raspian Buster HOT 1
- I build a docker image and pushed it to docker hub. HOT 3
- Error when creating document HOT 11
- openjdk error HOT 1
- Style sidebar HOT 2
- configure: error: unrecognized options: --disable-gstreamer-0-10, --disable-kde4 HOT 5
- In deleteTestDirectory function: remove Directory file:///tmp/????'?? HOT 2
- Collaboration in document bug? HOT 1
- openjdk-8-jdk : unknown command HOT 1
- ERR No DocBroker found, or DocBroker marked to be destroyed. Terminating session ToClient
- Could Node.js be updated to a supported version? HOT 6
- Build process on Ubuntu 18.04 not working HOT 5
- Debian 11 HOT 3
- can't configure multiple hosts in the new group and alias_group options HOT 3
- download as pdf not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from officeonlin-install.sh.