Skip to content

Commit

Permalink
Merge pull request NVlabs#1456 from javierganan99/update-readme-build…
Browse files Browse the repository at this point in the history
…-GUI

Update docker readme to also build with GUI
  • Loading branch information
Tom94 committed Sep 23, 2023
2 parents e5110ff + 7dd26d1 commit c1f35ac
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## VS Code Dev Container

> Basic dev container for running Instant Neural Graphics Primitives without GUI.
> Basic dev container for running Instant Neural Graphics Primitives.
### Requirements

Expand All @@ -12,7 +12,22 @@

### How to build

Without GUI.

```sh
cmake -DNGP_BUILD_WITH_GUI=off ./ -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build --config RelWithDebInfo -j 16
```

With GUI for Linux distributions.

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.

```sh
xhost +x
```
Build the project inside the docker container.
```sh
cmake -DNGP_BUILD_WITH_GUI=off ./ -B ./build
cmake ./ -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build --config RelWithDebInfo -j 16
```

0 comments on commit c1f35ac

Please sign in to comment.