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 python3-dev libboost-python-dev \
python3-sphinx python3-numpy python3-sip python3-pyqt5 \
xsltproc docbook-xml docbook-xsl docbook-xsl-doc-html doxygen
Then download OVITO's source code into a new subdirectory named ovito/
:
git clone git://git.code.sf.net/p/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 \
-DBoost_PYTHON_LIBRARY_RELEASE=/usr/lib/x86_64-linux-gnu/libboost_python-py35.so \
-DBoost_PYTHON_LIBRARY_DEBUG=/usr/lib/x86_64-linux-gnu/libboost_python-py35.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.
Changin the PYTHON_INCLUDE_DIR
, PYTHON_LIBRARY
, and Boost_PYTHON_LIBRARY_RELEASE
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.