diff options
| author | Tapple Gao <tapplek@gmail.com> | 2026-02-09 06:04:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-09 16:04:18 +0200 |
| commit | 52ac93e21e19715e7cfb04207c6d3a565866ea16 (patch) | |
| tree | 579baf7dcfaeb77d51404e12dd37035b55164d6a | |
| parent | 5533f58d41443971d667de52c1e73bf24e429247 (diff) | |
Some notes in linux build instructions (#5388)
* Some notes in linux build instructions
* note clang stability
| -rw-r--r-- | doc/BUILD.LINUX.md | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/BUILD.LINUX.md b/doc/BUILD.LINUX.md index 28c0689cd5..09acfafaec 100644 --- a/doc/BUILD.LINUX.md +++ b/doc/BUILD.LINUX.md @@ -25,6 +25,11 @@ sudo apt install build-essential cmake git libfontconfig-dev libglib2.0-dev libg sudo dnf install @development-tools @c-development cmake fontconfig-devel git glib-devel gstreamer1-devel gstreamer1-plugins-base-devel libX11-devel mesa-compat-libOSMesa-devel libglvnd-devel ninja-build python3 vlc-devel wayland-devel ``` +To build with clang instead of gcc, also install: +``` +sudo dnf install clang lld +``` + ### OpenSUSE Tumbleweed ``` sudo zypper in -t pattern devel_basis devel_C_C++ @@ -65,7 +70,7 @@ cd ~/code/secondlife/viewer autobuild configure -c ReleaseOS -A64 ``` -### Clang +### Clang (faster build; less stable) ``` autobuild configure -c ReleaseOS -- -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_LINKER_TYPE=LLD ``` @@ -77,3 +82,6 @@ autobuild build -c ReleaseOS --no-configure > [!NOTE] > If the above was successful you should find the viewer package in `viewer/build-linux-x86_64/newview` + +### Troubleshooting +- If you encounter warnings, try adding `-- -DGCC_DISABLE_FATAL_WARNINGS=TRUE` or `-DCLANG_DISABLE_FATAL_WARNINGS=TRUE` to the configure command |
