From 182dca068d4d1ea6ec35a32f40d8108dc0c23a8c Mon Sep 17 00:00:00 2001 From: Paul Levy Date: Thu, 25 Jan 2024 17:31:31 -0500 Subject: [PATCH 1/2] Update build.md with CUDA Ubuntu 23.10 fix --- docs/source/build.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/source/build.md b/docs/source/build.md index 5318ab8806..fd59fe14ab 100644 --- a/docs/source/build.md +++ b/docs/source/build.md @@ -168,6 +168,24 @@ sudo add-apt-repository 'deb https://developer.download.nvidia.com/compute/cuda/ sudo apt-get update sudo apt-get -y install cuda ``` +If you are on Ubuntu 23.10, there is a CUDA install problem. This is the fix: + +The libtinfo5 package isn't available in Ubuntu 23.10's default repositories yet. We can install it by adding the universe repo for Ubuntu 23.04 (Lunar Lobster). + +Open a terminal window and run: +``` +sudo nano /etc/apt/sources.list +``` +Add this line (adds the Ubuntu 23.04 aka "Lunar Lobster" universe repository to apt): +``` +deb http://archive.ubuntu.com/ubuntu/ lunar universe +``` +Save and exit, then run: +``` +sudo apt update +``` +...and now the install command for CUDA should work, automatically downloading and installing libtinfo5 while installing CUDA + I did clone the CUDA samples repo and build deviceQuery which will be a quick test to make sure your GPU is recognized ``` git clone https://github.com/nvidia/cuda-samples From 16a353a64b6501fc5391f00ca59baef522f3d9c2 Mon Sep 17 00:00:00 2001 From: Paul Levy Date: Thu, 25 Jan 2024 17:36:20 -0500 Subject: [PATCH 2/2] Update build.md --- docs/source/build.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/build.md b/docs/source/build.md index fd59fe14ab..9b0674077d 100644 --- a/docs/source/build.md +++ b/docs/source/build.md @@ -116,7 +116,7 @@ sudo apt-get install libglew-dev Build Openscenegraph. This sets GL profile and context which aren't necessary so change accordingly for your needs. ``` git clone https://github.com/openscenegraph/OpenSceneGraph.git -cd osg +cd OpenSceneGraph mkdir build && cd build cmake .. -DOPENGL_PROFILE=GL3 -DOSG_GL_CONTEXT_VERSION=4.6 make -j8 @@ -149,7 +149,7 @@ In WSL2 (I have tried Ubuntu 20 and 22), follow the previous Linux build example Build Openscenegraph. This sets GL profile to Core and context to 3.3 for Mesa compatibility ``` git clone https://github.com/openscenegraph/OpenSceneGraph.git -cd osg +cd OpenSceneGraph mkdir build && cd build cmake .. -DOPENGL_PROFILE=GL3 -DOSG_GL_CONTEXT_VERSION=3.3 make -j8