You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/getting-started/Overview.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ When ResInsight is compiled with ABAQUS-odb support, _`*.odb`_ files can be impo
106
106
107
107
The geomechanical cases are sorted into its own folder in the project tree named **Geomechanical Models** {{< image-in-text src="images/getting-started/GeoMechCases24x24.png" >}} as opposed to the **Grid Models** folder where the Eclipse cases and **Grid Case Groups** resides.
108
108
109
-
See [Build Instructions]({{< ref "buildinstructions.md" >}}) on how to compile ResInsight with odb-support.
109
+
See [Build Instructions]({{< ref "cmake-configuration.md" >}}) on how to compile ResInsight with odb-support.
The version of Qt ResInsight depends on is probably not available as a package for the Linux distribution you are working with. Here is a short description on how to install a custom Qt version.
52
53
53
-
ThirdParty/vcpkg/bootstrap-vcpkg.bat
54
+
[aqtinstall](https://github.com/miurahr/aqtinstall) is a Python tool used to install precompiled versions of Qt. Other ways to install Qt is described [official Qt documentation](https://www.qt.io/download-qt-installer-oss)
54
55
55
-
### Python dependencies
56
-
Install Python version 3.8 or newer, and use dev-requirements.txt
The configuration flags for a basic build is given in `CMakePresets.json` in the root of the repository. Configuration flags specific for the system to build on can be specified in `CMakeUserPresets.json`. This file is ignored by git.
[aqtinstall](https://github.com/miurahr/aqtinstall) is a Python tool used to install Qt directly from Qt distribution sites, and does not require a user account for Qt sites. Other ways to install Qt is described [official Qt documentation](https://www.qt.io/download-qt-installer-oss)
44
+
45
+
Create a root folder for Qt installations. In this folder, create a virtual environment for **aqtinstall**:
46
+
47
+
python3 -m venv myvenv
48
+
myvenv/Scripts/activate
49
+
pip3 install aqtinstall
50
+
aqt install-qt linux desktop 6.6.3 -m qtcharts qt5compat qtnetworkauth
51
+
52
+
53
+
### Build ResInsight
54
+
55
+
The configuration flags for a basic build is given in `CMakePresets.json` in the root of the repository. Configuration flags specific for the system to build on can be specified in `CMakeUserPresets.json`. This file is ignored by git.
56
+
57
+
- Create a copy of `CMakeUserPresets-example.json` and rename to `CMakeUserPresets.json`
58
+
- Update the path to your local installation of Qt6 for the key `CMAKE_PREFIX_PATH` in `CMakeUserPresets.json`
59
+
60
+
Start Visual Studio, and open the ResInsight source folder. When you open the ResInsight folder for the first time, **vcpkg** may spend a few minutes building the required dependencies specified in `vcpkg.json`.
Copy file name to clipboardExpand all lines: content/getting-started/download-and-install/cmake-configuration.md
+5-45
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,13 @@
1
1
+++
2
-
title = "Building ResInsight from Source"
2
+
title = "CMake Configuration"
3
3
published = true
4
4
hidden = false
5
-
weight = 30
5
+
weight = 35
6
+
aliases = [
7
+
"/getting-started/buildinstructions/"
8
+
]
6
9
+++
7
10
8
-
## Source code
9
-
The source code is hosted at [GitHub](https://github.com/opm/resinsight)
10
-
11
-
In a git enabled shell do: `git clone https://github.com/OPM/ResInsight.git`
12
-
13
-
## Dependencies and Prerequisites
14
-
15
-
### Windows Compiler
16
-
17
-
Visual Studio 2019 and later is supported.
18
-
19
-
### GCC Compiler
20
-
21
-
On RedHat Linux 7 or CentOS 7 you need to install devtoolset-10, and enable it with
22
-
23
-
source /opt/rh/devtoolset-10/enable
24
-
25
-
### Qt 5
26
-
Qt 5.12 or later is supported, Qt 5.15 is recommended.
27
-
28
-
[Qt download](http://download.qt.io/archive/qt/)
29
-
30
-
On some configurations you will be asked to specify the location of Qt. Preferred method is to add Qt path to CMake variable **CMAKE_PREFIX_PATH**
31
-
32
-
Example for Windows : `CMAKE_PREFIX_PATH=F:/Qt/5.15.2/msvc2019_64`
33
11
34
12
### CMake
35
13
[CMake](https://cmake.org/download/) version 3.15 or later is supported.
@@ -38,24 +16,6 @@ Example for Windows : `CMAKE_PREFIX_PATH=F:/Qt/5.15.2/msvc2019_64`
38
16
The ResInsight build may be configured in different ways, with optional support for Octave plugins,
39
17
ABAQUS ODB API, HDF5, Pyton, and OpenMP. This is configured using options in CMake.
40
18
41
-
If you check the button 'Grouped' in the CMake GUI, the CMake variables are grouped by prefix.
42
-
This makes it easier to see all of the options for ResInsight.
43
-
44
-
- Open the CMake GUI
45
-
- Set the path to the source code
46
-
- Set the path to the build directory
47
-
- Click **Configure** and select your preferred compiler
48
-
- Set the build options and click "Configure" again (see ResInsight specific options below)
49
-
- Click **Generate** to generate the makefiles or solution file and project files in the build directory
50
-
- Run the compiler using the generated makefiles or solution file/project files to build ResInsight
51
-
52
-
### Windows
53
-
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.
54
-
55
-
### Linux
56
-
57
-
For a reference build instruction for Ubuntu, see [Reference installation description for Ubuntu]({{< ref "build-instructions-ubuntu.md" >}})
Copy file name to clipboardExpand all lines: content/import/GeomechanicalData.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ weight = 20
6
6
7
7
ResInsight can be built with support for reading and displaying geomechanical analysis models produced by ABAQUS in the _`*.odb`_ format. This is only possible if you or your organization has a copy of the ODB-Api from Simulia, and a valid license to use it.
8
8
9
-
If you have, and would like to a use these features, please see [ Build Instructions ]({{< relref "buildinstructions.md" >}}) for a description on how to build ResInsight and how to include the support for odb-files.
9
+
If you have, and would like to a use these features, please see [ Build Instructions ]({{< relref "cmake-configuration.md" >}}) for a description on how to build ResInsight and how to include the support for odb-files.
10
10
11
11
### Geo Mechanical Data Support
12
12
Geo-mechanical data can be imported using the **Import -> Geo Mechanical Cases menu**. Here three options are present: **Import Geo Mechanical Model**, **Import Geo Mechanical Model (Time Step Filtered)** (both for odb files) and **Import Element Property Table**.
0 commit comments