Note that the following instructions have been written for Ubuntu Linux 14.04 or later, or any compatible Debian-based distribution. Other Linux distributions may require slightly modified steps.
First install the required build tools and third-party libraries by running
sudo apt-get install build-essential git cmake-curses-gui qt5-default libboost-dev libqt5scintilla2-dev \ libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavresample-dev \ libavutil-dev libswscale-dev libnetcdf-dev libhdf5-dev libhdf5-serial-dev \ libbotan1.10-dev libmuparser-dev libqwt-qt5-dev python3-dev \ python3-sphinx python3-numpy python3-matplotlib python3-pyqt5 \ xsltproc docbook-xml
Then download OVITO's source code into a new subdirectory named
git clone https://gitlab.com/stuko/ovito.git ovito
Within that directory, create a build directory and let CMake generate the Makefile:
cd ovito mkdir build cd build cmake -DOVITO_BUILD_DOCUMENTATION=ON \ -DCMAKE_BUILD_TYPE=Release \ -DPYTHON_INCLUDE_DIR=/usr/include/python3.5m \ -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.5m.so \ ..
If this step fails, or if you want to disable certain components of OVITO, you can now run "ccmake ." to open the
CMake configuration program.
PYTHON_LIBRARY settings may be needed to
build OVITO against a different Python version.
Finally, compile OVITO:
After a successful build, the executable can be found in the