- Home
- Desktop Apps
- Installation
- Compiling for Ubuntu
Compiling for Ubuntu
Introduction
Desktop Editors is an application that allows you to edit documents, spreadsheets, and presentations stored on your computer in offline mode. It’s also possible to connect Desktop Editors to your cloud and edit documents collaboratively.
You can easily compile Desktop Editors from source codes using the specially designed build_tools. The build_tools allow to automatically get and install all the components necessary for the compilation process, all the dependencies required for the Desktop Editors correct work, as well as to get the latest version of Desktop Editors source code and build all their components.
master
branch.System requirements
Hardware
- CPU: dual core 2 GHz or better
- RAM: at least 2 GB, but depends of the host OS. More is better
- HDD: at least 40 GB of free space
- SWAP: at least 4 GB, but depends on the host OS. More is better
Software
- OS: 64-bit Ubuntu 16.04
Installing dependencies
You might need to install Python and Git if they are not yet installed on your computer. This can be done using the following command:
sudo apt-get install -y python git
Building Desktop Editors source code
- Clone the build_tools repository:
git clone https://github.com/ONLYOFFICE/build_tools.git
- Go to the
build_tools/tools/linux
directory:cd build_tools/tools/linux
- Run the
automate.py
script specifying thedesktop
parameter to compile the Desktop Editors:./automate.py desktop
If you run the script without any parameters, this will build Desktop Editors alongside Document Server and Document Builder.
If necessary, you can build several products at once by running the script with the parameters corresponding to the necessary products. To learn more about compiling Document Server you can read this article. To learn more about compiling Document Builder please refer to this article../automate.py
Wait while the script is being executed. Depending on your computer capabilities, this process may take considerable time. For example, this takes 3 hours at least on Intel Core i7-7700
.
The script will compile all the dependencies and components that are part of Desktop Editors.
The build will be available in the ../../out/linux_64/onlyoffice/desktopeditors/
directory. Now you can proceed to running Desktop Editors on your server.
Running Desktop Editors
Go to the ../../out/linux_64/onlyoffice/desktopeditors/
directory
cd ../../out/linux_64/onlyoffice/desktopeditors
Execute the following command:
LD_LIBRARY_PATH=./ ./DesktopEditors