- Get the code
$ git clone git://anongit.freedesktop.org/libreoffice/core |
$ git clone git://anongit.freedesktop.org/libreoffice/core
Grab a cup of coffee!
Receiving objects: 100% (2851664/2851664), 917.96 MiB | 2.67 MiB/s, done. |
Receiving objects: 100% (2851664/2851664), 917.96 MiB | 2.67 MiB/s, done.
- in order to speed up the building process we highly recommend to install ccache and create some links to point g++ and gcc compilers to the ccache binary:
sudo apt-get install ccache
ln -s /usr/bin/ccache ~/bin/g++
ln -s /usr/bin/ccache ~/bin/gcc
ccache --max-size 32G |
sudo apt-get install ccache
ln -s /usr/bin/ccache ~/bin/g++
ln -s /usr/bin/ccache ~/bin/gcc
ccache --max-size 32G
If you are using a laptop’s hard disk to build LibreOffice, then it would be a good idea to enable also ccache compression:
$ export CCACHE_COMPRESS=1 |
$ export CCACHE_COMPRESS=1
- Download all the dependencies needed to build LO:
sudo apt-get build-dep libreoffice |
sudo apt-get build-dep libreoffice
- Check that dependencies are filled and that we have a well-equipped build environment
- Rock and Roll!
Want to read more about the building process? Then, don’t miss this developer oriented webpage or this one.