Skip to content

Commit 99169e2

Browse files
authored
Merge pull request #1456 from javierganan99/update-readme-build-GUI
Update docker readme to also build with GUI
2 parents df345a5 + 7efd689 commit 99169e2

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.devcontainer/README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## VS Code Dev Container
22

3-
> Basic dev container for running Instant Neural Graphics Primitives without GUI.
3+
> Basic dev container for running Instant Neural Graphics Primitives.
44
55
### Requirements
66

@@ -12,7 +12,22 @@
1212

1313
### How to build
1414

15+
Without GUI.
16+
17+
```sh
18+
cmake -DNGP_BUILD_WITH_GUI=off ./ -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
19+
cmake --build build --config RelWithDebInfo -j 16
20+
```
21+
22+
With GUI for Linux distributions.
23+
24+
Allow the docker to connect to the local X server. For example, to allow any remote machine to connect to the local X server, execute the follwing command from the host shell.
25+
26+
```sh
27+
xhost +x
28+
```
29+
Build the project inside the docker container.
1530
```sh
16-
cmake -DNGP_BUILD_WITH_GUI=off ./ -B ./build
31+
cmake ./ -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
1732
cmake --build build --config RelWithDebInfo -j 16
1833
```

0 commit comments

Comments
 (0)