WARNING: This is broken in master and 4.4! Unless you plan to fix it don't use it
LibreOffice can be built without linking to X, cairo, GUI toolkits, etc... This might be helpful on servers or embedded environments.
Note that the
soffice --headless command line parameter works on Linux platforms by default already and does not require special build time configuration, but the binaries will require X11 libraries in order to run.
Since LibreOffice 4.1 you don't need git to have all the current headless build features.
To build LibreOffice without dependencies on X11 libraries:
./autogen.sh --without-java --without-x --with-theme=no
WARNING: Before LibreOffice 4.4 --without-x option was called --enable-headless
--headless is enabled by default:
From LibreOffice 4.1 there's a --pidfile switch that dumps the pid file of soffice.bin to ease monitoring.
A little test with the help of unoconv:
unoconv -f xls foobar.ods