Friday, November 8, 2019

OVITO

I. Ovito Interpreter

Packages are provided for the following platforms:
Operating systemArchitectureCPython versions
Windows64-bit (x86_64)3.7 / 3.8
Linux64-bit (x86_64)3.5 / 3.6 / 3.7 / 3.8

1. install Ovito with pure python: (require python3.7)

Note: Ovito interface encounters error when use with conda-jupyter. So use pip-jupyter on pure python3.7
make anaconda available in cmd windows, and can double click to open jypyter file
add 2 new environment variable path: Environment Variables --> System Variables --> path --> edit
C:\DevProgram\python37
C:\DevProgram\python37\Scripts

python -m pip install --upgrade pip
pip install tess ovito jupyter numpy scipy













Installing dependencies

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 \
                     libfftw3-dev xsltproc docbook-xml



Getting the source code

Then download OVITO's source code into a new subdirectory named ovito/:
git clone https://gitlab.com/stuko/ovito.git ovito


Compiling 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_EXECUTABLE=/usr/bin/python3 \
      -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. Changing 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.

No comments:

Post a Comment