Did not find what you were looking for?

Build Instructions Ubuntu

Dependencies and Prerequisites

This page is mainly build instructions for Ubuntu, but some comments are also added for RHEL8 and Windows.

Configuration and build

ToolMinimum version
git2.7.4
gcc10
python3

Update apt installer

sudo apt update

Install GCC and related tools

sudo apt install build-essential curl zip unzip tar flex bison

As gcc 10 is required, it can be useful to set the default compiler. Set default compiler

Dependencies for RHEL8

yum install curl zip unzip tar flex bison perl-IPC-Cmd gcc-toolset-10 freeglut

Clone and update sub modules

git clone https://github.com/OPM/ResInsight
cd ResInsight
git submodule update --init

Build and install required dependencies using vcpkg

vcpkg is located in the folder ThirdParty/vcpkg. The packages to be installed is specified in vcpkg.json. The actual install of the selected packages are done in the CMake configure step.

ThirdParty/vcpkg/bootstrap-vcpkg.sh

(Windows) Build and install required dependencies using vcpkg

Open a command prompt using “Run as Administrator” for Visual Studio x64.

Detailed Developer notes

ThirdParty/vcpkg/bootstrap-vcpkg.bat

Python dependencies

Install Python version 3.8 or newer, and use dev-requirements.txt

python3 -m pip install -r GrpcInterface/Python/dev-requirements.txt

Qt

System packages Ubuntu

sudo apt install -y qtbase5-dev libqt5svg5-dev qtbase5-private-dev libqt5networkauth5-dev

System packages RHEL8

sudo yum install -y qt5-devel qt5-qtnetworkauth-devel qt5-qtcharts-devel qt5-qtbase-private-devel gcc-toolset-10 gcc-toolset-10-libatomic-devel

Installation of custom Qt

Go to a folder to install custom Qt In this folder, execute

python3 -m pip install aqtinstall
aqt install-qt linux desktop 5.15.2 -m qtcharts qtnetworkauth

Build ResInsight

mkdir cmakebuild
cd cmakebuild
cmake \
-DCMAKE_PREFIX_PATH=/your_qt_path/5.15.2/gcc_64/lib/cmake \
-DRESINSIGHT_ENABLE_GRPC=true \
-DRESINSIGHT_GRPC_PYTHON_EXECUTABLE=python \
..

make -j8