This page is mainly build instructions for Ubuntu, but some comments are also added for RHEL8 and Windows.
Tool | Minimum version |
---|---|
git | 2.7.4 |
gcc | 10 |
python | 3 |
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
git clone https://github.com/OPM/ResInsight
cd ResInsight
git submodule update --init
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
Open a command prompt using “Run as Administrator” for Visual Studio x64.
ThirdParty/vcpkg/bootstrap-vcpkg.bat
Install Python version 3.8 or newer, and use dev-requirements.txt
python3 -m pip install -r GrpcInterface/Python/dev-requirements.txt
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
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 \
-DCMAKE_TOOLCHAIN_FILE=../ThirdParty/vcpkg/scripts/buildsystems/vcpkg.cmake \
-DVCPKG_TARGET_TRIPLET=x64-linux-release \
..
make -j8