Skip to content

Commit

Permalink
Update build instructions for Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Jan 24, 2023
1 parent f29e3e4 commit 28b7bf1
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 96 deletions.
24 changes: 4 additions & 20 deletions content/getting-started/download-and-install/BuildInstructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ On some configurations you will be asked to specify the location of Qt. Preferre
Example for Windows : `CMAKE_PREFIX_PATH=F:/Qt/5.15.2/msvc2019_64`

### CMake
[CMake](https://cmake.org/download/) version 3.12 or later is supported.
[CMake](https://cmake.org/download/) version 3.15 or later is supported.

## Build Instructions
The ResInsight build may be configured in different ways, with optional support for Octave plugins,
Expand All @@ -50,27 +50,11 @@ This makes it easier to see all of the options for ResInsight.
- Run the compiler using the generated makefiles or solution file/project files to build ResInsight

### Windows
ResInsight has been verified to build and run on Windows 10 using Microsoft Visual Studio 2017/2019. Typical usage on Windows is to follow the build instructions above, and then open the generated solution file in Visual Studio to build the application.
ResInsight has been verified to build and run on Windows 10/11 using Microsoft Visual Studio 2019/2022. Typical usage on Windows is to follow the build instructions above, and then open the generated solution file in Visual Studio to build the application.

### Linux

Typical usage is to follow the build instructions above to build the makefiles. Then go to the build directory, and run:

- make
- make install

To build from the command line without using the CMake GUI:

- mkdir ResInsight_build
- cd ResInsight_build
- ...
- (set CMake options)
- ...
- cmake < path to ResInsight source folder >
- make
- make install

You will find the ResInsight binary under the Install directory in your build directory.
For a reference build instruction for Ubuntu, see [Reference installation description for Ubuntu]({{< ref "build-instructions-ubuntu.md" >}})

### CMake Options for ResInsight

Expand Down Expand Up @@ -126,7 +110,7 @@ ResInsight has been verified to build and run with Octave versions 3.4.3, 3.8.1,
##### Octave Dependencies for Debian Based Distributions

The following command line can be used as a starting point to install required libraries
`sudo apt-get install git cmake build-essential octave liboctave-dev qtbase5-dev qtscript5-dev`
`sudo apt-get install git cmake build-essential octave liboctave-dev qtbase5-dev qtscript5-dev libqt5svg5-dev qtbase5-private-dev`

#### ODB support

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
+++
title = "Build Instructions Ubuntu"
published = true
hidden = false
weight = 30
+++

## Dependencies and Prerequisites



### Configuration and build

| Tool | Minimum version |
|-------------------------|------------------|
| git | 2.7.4 |
| gcc | 7 |
| python | 3 |


Update apt installer

sudo apt update

Install GCC and related tools

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

Install Qt

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


### Clone and update sub modules

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

### Build and install required dependencies using vcpkg
vcpkg is located in the folder ThirdParty/vcpkg

ThirdParty/vcpkg/bootstrap-vcpkg.sh
ThirdParty/vcpkg/vcpkg install grpc boost-filesystem boost-spirit eigen3

### Build ResInsight
mkdir cmakebuild
cd cmakebuild
cmake \
-DRESINSIGHT_ENABLE_GRPC=true \
-DVCPKG_TARGET_TRIPLET=x64-linux \
-DCMAKE_TOOLCHAIN_FILE=..ThirdParty/vcpkg/scripts/buildsystems/vcpkg.cmake \
-DRESINSIGHT_GRPC_PYTHON_EXECUTABLE=python \
..

make -j8


### Other build descriptions

[Link to workflow for CentOS 7](https://github.com/OPM/ResInsight/blob/dev/.github/workflows/centos7.yml)
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ The binary distributions does not support ABAQUS odb files. For building ResInsi
[Build Instructions]({{< ref "buildinstructions.md" >}}).
{{% /notice %}}


## Install From downloaded tarball
1. Download TAR.GZ binary distribution from [https://github.com/OPM/ResInsight/releases](https://github.com/OPM/ResInsight/releases "release section on GitHub")
2. Extract content from TAR file
3. Start ./ResInsight

## Custom Qt configuration
If you are using a version of Qt that is not available in system path, you need to do the following to make runtime Qt paths available to ResInsight

Expand Down

0 comments on commit 28b7bf1

Please sign in to comment.