Build Instructions CentOS 7

Dependencies and Prerequisites

vcpkg can be used to install grpc for C++. This method is cross platform, and can be easier to use than directly installing grpc and dependencies directly from grpc source code. The source code for vcpkg is avaialable as a Git sub module in the folder ‘vcpkg’. Python3 is required.

vcpkg requires relatively new versions of git and compiler.


grpc quickstart

Reference project

A test project for CentOS7 is configured using GitHub actions. A blank Centos7 Docker image is used, and the required dependencies are installed.

Test project for CentOS 7

Configuration and build

Tool Minimum version
git 2.7.4
gcc 7
python 3


yum install -y centos-release-scl
yum-config-manager --enable rhel-server-rhscl-7-rpms
yum install -y devtoolset-7


yum install -y
yum install -y git222

Clone and update sub modules

Init of submodules is required to get the source code for vcpkg

git clone git:// ResInsight
cd ResInsight
git submodule update --init

Build and install grpc using vcpkg

vcpkg is located in the folder vcpkg

vcpkg/vcpkg install grpc

Build ResInsight

mkdir cmakebuild
cd cmakebuild
cmake3 \
-DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake \

make -j8

Other build descriptions

Build description for Windows and Linux