Building OVITO on Linux

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.

Installing dependencies

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

Downloading the source code

Then download OVITO's source code into a new subdirectory named ovito/:

git clone ovito

Compiling OVITO

Within that directory, create a build directory and let CMake generate the Makefile:

cd ovito
mkdir build
cd build
      -DCMAKE_BUILD_TYPE=Release \
      -DPYTHON_INCLUDE_DIR=/usr/include/python3.5m \
      -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/ \

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. Changin the PYTHON_INCLUDE_DIR and PYTHON_LIBRARY settings may be needed to build OVITO against a different Python version.

Finally, compile OVITO:

make -j4

After a successful build, the executable can be found in the ovito/build/bin directory.