Skip to content

Commit

Permalink
Merge pull request #1456 from javierganan99/update-readme-build-GUI
Browse files Browse the repository at this point in the history
Update docker readme to also build with GUI
  • Loading branch information
Tom94 authored Sep 23, 2023
2 parents df345a5 + 7efd689 commit 99169e2
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
```

1 comment on commit 99169e2

@Chiefy0x1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

accessKey
:
""

Please sign in to comment.