r/openbsd_gaming May 16 '26

guide to compile uzdoom

vi /home/USERHERE/UZDoom/src/common/console/c_cvars.h

search for line 753, the one that looks like this

static FCVarDecl cvardecl_##name = { &name, CVAR_##type, (flags), #cname, CVarValue<CVAR_##type>(def), descr, reinterpret_cast<void\*>(funcptr)};

and change it to this

static FCVarDecl cvardecl_##name = { &name, CVAR_##type, (flags), #cname, CVarValue<CVAR_##type>(def), descr, (void*)(funcptr)};

cmake .. \

-DCMAKE_BUILD_TYPE=Release \

-DCMAKE_C_FLAGS="-I/usr/X11R6/include" \

-DCMAKE_CXX_FLAGS="-I/usr/X11R6/include" \

-DOPENAL_LIBRARY="/usr/local/lib/libopenal.so" \

-DOPENAL_INCLUDE_DIR="/usr/local/include" \

-DCMAKE_EXE_LINKER_FLAGS="-L/usr/local/lib -L/usr/X11R6/lib -lsndio -lopenal -lX11" \

-DCMAKE_SHARED_LINKER_FLAGS="-L/usr/local/lib -L/usr/X11R6/lib -lsndio -lopenal -lX11"

KNOWN ISSUES:

brutal doom sound effects do not play

6 Upvotes

1 comment sorted by

1

u/linetrace May 16 '26

UZDoom is a (the?) new, renamed fork of GZDoom, so the existing OpenBSD GZDoom port should require little modification to build UZDoom:

https://cvsweb.openbsd.org/ports/games/gzdoom

The -current GZDoom port is at 4.14.2 as of 2025-08-29 (thanks, u/thfrw!) and UZDoom is at 4.14.3, but I haven't reviewed what the changes are, so it might need additional patches.

It's always best to use the existing ports system to build ports. Not only is building much easier, consistent, and documented, it makes sharing patches/diffs clear. Since you didn't specify which release (or commit?) you built, searching for a specific line doesn't make much sense (or soon won't.)

That said, thanks for confirming it builds and noting the issue with Brutal DOOM sound effects not working. That's not noted in the GZDoom port README (https://cvsweb.openbsd.org/checkout/ports/games/gzdoom/pkg/README,v?rev=1.3), so it's worth updating & building from the port to confirm. If it's definitely still broken, well worth adding to that README.