From 044bb02a2438547671ab5f388d1f6e493e75d6b8 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 7efd6890bc98ed15b4e0da792959ab7560259dc8 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 +```