-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build instructions for Ubuntu
- Loading branch information
Showing
4 changed files
with
66 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 0 additions & 70 deletions
70
content/getting-started/download-and-install/build-instructions-centos7.md
This file was deleted.
Oops, something went wrong.
62 changes: 62 additions & 0 deletions
62
content/getting-started/download-and-install/build-instructions-ubuntu.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters