From 3eedb6a62bd339964aa44438f41d299f4d34045d Mon Sep 17 00:00:00 2001 From: atos Date: Sat, 23 Sep 2023 14:33:04 +0200 Subject: [PATCH 1/2] Modified instructions to add the GUI build. --- .devcontainer/README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.devcontainer/README.md b/.devcontainer/README.md index c28a840e0..39cdfc1d8 100644 --- a/.devcontainer/README.md +++ b/.devcontainer/README.md @@ -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 @@ -12,7 +12,22 @@ ### How to build +Without GUI. + ```sh cmake -DNGP_BUILD_WITH_GUI=off ./ -B ./build 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 ./ -B ./build +cmake --build build --config RelWithDebInfo -j 16 +``` \ No newline at end of file From 7dd26d1ec8efd630aa628423974ef48307001979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Sat, 23 Sep 2023 20:39:51 +0800 Subject: [PATCH 2/2] Docker README: use `RelWithDebInfo` build type by default --- .devcontainer/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.devcontainer/README.md b/.devcontainer/README.md index 39cdfc1d8..a4020b780 100644 --- a/.devcontainer/README.md +++ b/.devcontainer/README.md @@ -15,7 +15,7 @@ Without GUI. ```sh -cmake -DNGP_BUILD_WITH_GUI=off ./ -B ./build +cmake -DNGP_BUILD_WITH_GUI=off ./ -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo cmake --build build --config RelWithDebInfo -j 16 ``` @@ -28,6 +28,6 @@ xhost +x ``` Build the project inside the docker container. ```sh -cmake ./ -B ./build +cmake ./ -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo cmake --build build --config RelWithDebInfo -j 16 -``` \ No newline at end of file +```