Git Product home page Git Product logo

Comments (14)

Kassiematis avatar Kassiematis commented on July 21, 2024 4

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.

sergey-dryabzhinsky avatar sergey-dryabzhinsky commented on July 21, 2024

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.

sergey-dryabzhinsky avatar sergey-dryabzhinsky commented on July 21, 2024

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.

sergey-dryabzhinsky avatar sergey-dryabzhinsky commented on July 21, 2024

So, not all go well.
I'll update working set of options soon.

from officeonlin-install.sh.

aalaesar avatar aalaesar commented on July 21, 2024

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.

sergey-dryabzhinsky avatar sergey-dryabzhinsky commented on July 21, 2024

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.

aalaesar avatar aalaesar commented on July 21, 2024

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.

sergey-dryabzhinsky avatar sergey-dryabzhinsky commented on July 21, 2024

Once I was tried to build python-uno separately. No luck.

from officeonlin-install.sh.

sergey-dryabzhinsky avatar sergey-dryabzhinsky commented on July 21, 2024

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.

Kassiematis avatar Kassiematis commented on July 21, 2024

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.

quenenni avatar quenenni commented on July 21, 2024

Very nice idea.
Where exactly do I have to put these params?
In the 'lo_configure_opts' var?

from officeonlin-install.sh.

Kassiematis avatar Kassiematis commented on July 21, 2024

I have created a pull request so it is already in the script.
#106

from officeonlin-install.sh.

quenenni avatar quenenni commented on July 21, 2024

Very nice. Thanks. Without knowing it, I downloaded the last version just after your pull.

from officeonlin-install.sh.

aalaesar avatar aalaesar commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.