Homebrew tap for XR (VR/AR/MR) software.

Monado does not build on Bazzite #35

Open opened by gayfarmerwithago.pro
assigned to matrixfurry.com

When attempting to install monado through brew on Bazzite (KDE), the following occurs:

kaestralblades@yugolin:/var/home/kaestralblades$ brew install monado
==> Would install 1 formula:
monado
==> Fetching downloads for: monado
✔︎ Formula monado (v25.1.0-726-g01c1f6b2)
==> Installing monado from matrixfurry.com/xr
==> cmake -S . -G Ninja -B build
==> cmake --build build
Last 15 lines from /home/kaestralblades/.cache/Homebrew/Logs/monado/02.cmake.log:
[45/615] cd /var/tmp/monado-20260830-28777-tvkfsn/build/src/external/openvr_includes && /home/linuxbrew/.linuxbrew/bin/python3.14 /var/tmp/monado-20260830-28777-tvkfsn/src/external/openvr_includes/generate_forward_macros.py -i /var/tmp/monado-20260830-28777-tvkfsn/src/external/openvr_includes/openvr_interfaces_unified.h -o /var/tmp/monado-20260830-28777-tvkfsn/build/src/external/openvr_includes/openvr_forward_macros.h --include openvr_interfaces_unified.h
Wrote 616 forwarding macro(s) and 84 FnTable macro(s) to /var/tmp/monado-20260830-28777-tvkfsn/build/src/external/openvr_includes/openvr_forward_macros.h
[46/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui_monado/imgui_monado.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui_monado/imgui_monado.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui_monado/imgui_monado.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui_monado/imgui_monado.cpp
[47/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/implot/implot_demo.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/implot/implot_demo.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/implot/implot_demo.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot/implot_demo.cpp
[48/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_tables.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_tables.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_tables.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui/imgui_tables.cpp
[49/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/cimgui/cimgui.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/cimgui/cimgui.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/cimgui/cimgui.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui/cimgui.cpp
[50/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/cimplot/cimplot.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/cimplot/cimplot.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/cimplot/cimplot.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimplot/cimplot.cpp
[51/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_demo.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_demo.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_demo.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui/imgui_demo.cpp
[52/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_draw.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_draw.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_draw.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui/imgui_draw.cpp
[53/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/implot/implot.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/implot/implot.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/implot/implot.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot/implot.cpp
[54/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_widgets.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_widgets.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui_widgets.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui/imgui_widgets.cpp
[55/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/imgui/imgui.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui/imgui.cpp
[56/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/cimgui -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot -isystem /var/tmp/monado-20260830-28777-tvkfsn/src/external/glad/include -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -w -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui.dir/implot/implot_items.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui.dir/implot/implot_items.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui.dir/implot/implot_items.cpp.o -c /var/tmp/monado-20260830-28777-tvkfsn/src/external/imgui/implot/implot_items.cpp
ninja: build stopped: subcommand failed.


If reporting this issue please do so to (not Homebrew/* repositories):
  matrixfurry.com/xr

Warning: Unable to query GitHub for recent issues on the tap
Validation Failed: [{"message" => "The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource" => "Search", "field" => "q", "code" => "invalid"}]

The following appears to be the logs:

kaestralblades@yugolin:/var/home/kaestralblades$ cat /home/kaestralblades/.cache/Homebrew/Logs/monado/02.cmake.log | grep -C 5 -i "error:"
[26/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DCIMGUI_USE_SDL2 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-11498-y5d6ib/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-11498-y5d6ib/src/external/imgui -isystem /var/tmp/monado-20260830-11498-y5d6ib/src/external/glad/include -isystem /home/linuxbrew/.linuxbrew/include/SDL2 -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui-sdl2.dir/imgui/backends/imgui_impl_sdl2.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui-sdl2.dir/imgui/backends/imgui_impl_sdl2.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui-sdl2.dir/imgui/backends/imgui_impl_sdl2.cpp.o -c /var/tmp/monado-20260830-11498-y5d6ib/src/external/imgui/imgui/backends/imgui_impl_sdl2.cpp
FAILED: [code=1] src/external/imgui/CMakeFiles/xrt-external-imgui-sdl2.dir/imgui/backends/imgui_impl_sdl2.cpp.o 
/var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/g++ -DCIMGUI_NO_EXPORT -DCIMGUI_USE_OPENGL3 -DCIMGUI_USE_SDL2 -DIMGUI_IMPL_API="extern \"C\"" -isystem /var/tmp/monado-20260830-11498-y5d6ib/src/external/imgui/imgui -isystem /var/tmp/monado-20260830-11498-y5d6ib/src/external/imgui -isystem /var/tmp/monado-20260830-11498-y5d6ib/src/external/glad/include -isystem /home/linuxbrew/.linuxbrew/include/SDL2 -pedantic -Wall -Wextra -Wno-unused-parameter -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu++20 -fPIC -fdiagnostics-color=always -MD -MT src/external/imgui/CMakeFiles/xrt-external-imgui-sdl2.dir/imgui/backends/imgui_impl_sdl2.cpp.o -MF src/external/imgui/CMakeFiles/xrt-external-imgui-sdl2.dir/imgui/backends/imgui_impl_sdl2.cpp.o.d -o src/external/imgui/CMakeFiles/xrt-external-imgui-sdl2.dir/imgui/backends/imgui_impl_sdl2.cpp.o -c /var/tmp/monado-20260830-11498-y5d6ib/src/external/imgui/imgui/backends/imgui_impl_sdl2.cpp
In file included from /home/linuxbrew/.linuxbrew/include/SDL2/SDL_syswm.h:68,
                 from /var/tmp/monado-20260830-11498-y5d6ib/src/external/imgui/imgui/backends/imgui_impl_sdl2.cpp:127:
/home/linuxbrew/.linuxbrew/include/X11/Xlib.h:44:10: fatal error: X11/X.h: No such file or directory
   44 | #include <X11/X.h>
      |          ^~~~~~~~~
compilation terminated.
[27/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/gcc -DXRT_HAVE_SYSTEM_CJSON -D_GNU_SOURCE -I/var/tmp/monado-20260830-11498-y5d6ib/src/external/metrics -I/var/tmp/monado-20260830-11498-y5d6ib/src/external/nanopb -I/var/tmp/monado-20260830-11498-y5d6ib/src/xrt/auxiliary -I/var/tmp/monado-20260830-11498-y5d6ib/build/src/xrt/auxiliary -I/var/tmp/monado-20260830-11498-y5d6ib/src/xrt/include -I/var/tmp/monado-20260830-11498-y5d6ib/build/src/xrt/include -isystem /var/tmp/monado-20260830-11498-y5d6ib/src/external/bcdec -isystem /home/linuxbrew/.linuxbrew/Cellar/cjson/1.7.19/include -isystem /home/linuxbrew/.linuxbrew/opt/eigen@3/include/eigen3 -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-missing-braces -Werror-implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu11 -fPIC -fdiagnostics-color=always -MD -MT src/xrt/auxiliary/util/CMakeFiles/aux_util.dir/u_body_tracker.c.o -MF src/xrt/auxiliary/util/CMakeFiles/aux_util.dir/u_body_tracker.c.o.d -o src/xrt/auxiliary/util/CMakeFiles/aux_util.dir/u_body_tracker.c.o -c /var/tmp/monado-20260830-11498-y5d6ib/src/xrt/auxiliary/util/u_body_tracker.c
[28/615] /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/bin/gcc -DXRT_HAVE_SYSTEM_CJSON -D_GNU_SOURCE -I/var/tmp/monado-20260830-11498-y5d6ib/src/external/metrics -I/var/tmp/monado-20260830-11498-y5d6ib/src/external/nanopb -I/var/tmp/monado-20260830-11498-y5d6ib/src/xrt/auxiliary -I/var/tmp/monado-20260830-11498-y5d6ib/build/src/xrt/auxiliary -I/var/tmp/monado-20260830-11498-y5d6ib/src/xrt/include -I/var/tmp/monado-20260830-11498-y5d6ib/build/src/xrt/include -isystem /var/tmp/monado-20260830-11498-y5d6ib/src/external/bcdec -isystem /home/linuxbrew/.linuxbrew/Cellar/cjson/1.7.19/include -isystem /home/linuxbrew/.linuxbrew/opt/eigen@3/include/eigen3 -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-missing-braces -Werror-implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -msse2 -mfpmath=sse -O3 -DNDEBUG -std=gnu11 -fPIC -fdiagnostics-color=always -MD -MT src/xrt/auxiliary/util/CMakeFiles/aux_util.dir/u_bitwise.c.o -MF src/xrt/auxiliary/util/CMakeFiles/aux_util.dir/u_bitwise.c.o.d -o src/xrt/auxiliary/util/CMakeFiles/aux_util.dir/u_bitwise.c.o -c /var/tmp/monado-20260830-11498-y5d6ib/src/xrt/auxiliary/util/u_bitwise.c

Thank you for the logs! Build errors like this have been a known issue on Bazzite for a while, but I’ll look into this one and see if I can fix it. I’ll also probably add a warning about these issues to the readme.

Our CI will hopefully be fixed soon, so this shouldn’t be as much of an issue in the future.

I've tried pretty much all of my ideas to get this working, but nothing fixed the issue. It looks like I'll have to fix the CI tomorrow so we can work around this

I encountered this problem today as well, and spent some time digging in and troubleshooting.

The crux of the issue is that the proper compile and link flags are not being set by cmake for imgui, xrt/auxiliary/ogl, and xrt/auxiliary/vk. It's possible to patch the CMakeList.txt files for these libraries to correct this:

diff --git a/src/external/imgui/CMakeLists.txt b/src/external/imgui/CMakeLists.txt
index fb8828323..d0c355394 100644
--- a/src/external/imgui/CMakeLists.txt
+++ b/src/external/imgui/CMakeLists.txt
@@ -38,9 +38,12 @@ add_library(
 	imgui_monado/imgui_monado.cpp
 	)
 
+find_package(PkgConfig REQUIRED)
+pkg_search_module(XCB REQUIRED xcb)
+
 target_include_directories(
 	xrt-external-imgui SYSTEM
-	PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
+	PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${XCB_INCLUDE_DIRS}
 	PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/imgui ${CMAKE_CURRENT_SOURCE_DIR}/cimgui
 		${CMAKE_CURRENT_SOURCE_DIR}/implot
 	)
diff --git a/src/xrt/auxiliary/ogl/CMakeLists.txt b/src/xrt/auxiliary/ogl/CMakeLists.txt
index 59730061e..a05e8b0ea 100644
--- a/src/xrt/auxiliary/ogl/CMakeLists.txt
+++ b/src/xrt/auxiliary/ogl/CMakeLists.txt
@@ -1,6 +1,9 @@
 # Copyright 2019-2023, Collabora, Ltd.
 # SPDX-License-Identifier: BSL-1.0
 
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(X11 REQUIRED x11)
+
 add_library(
 	aux_ogl STATIC
 	ogl_documentation.h
@@ -9,7 +12,10 @@ add_library(
 	ogl_helpers.c
 	ogl_helpers.h
 	)
-target_link_libraries(aux_ogl PUBLIC aux-includes xrt-external-glad aux_util)
+
+target_link_libraries(aux_ogl PUBLIC aux-includes xrt-external-glad aux_util
+	${X11_LIBRARIES})
+target_include_directories(aux_ogl PUBLIC ${X11_INCLUDE_DIRS})
 
 if(XRT_HAVE_OPENGL_GLX AND XRT_HAVE_XLIB)
 	target_sources(aux_ogl PRIVATE glx_api.c glx_api.h)
diff --git a/src/xrt/auxiliary/vk/CMakeLists.txt b/src/xrt/auxiliary/vk/CMakeLists.txt
index c2d053dd5..701a531fa 100644
--- a/src/xrt/auxiliary/vk/CMakeLists.txt
+++ b/src/xrt/auxiliary/vk/CMakeLists.txt
@@ -35,6 +35,9 @@ endforeach()
 # Library
 #
 
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(XCB REQUIRED xcb)
+
 add_library(
 	aux_vk STATIC
 	vk_bundle_init.c
@@ -74,8 +77,8 @@ add_library(
 	vk_time.c
 	${VK_GENERATED_OUTPUTS}
 	)
-target_include_directories(aux_vk PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
-target_link_libraries(aux_vk PUBLIC xrt-external-vulkan-headers aux_os aux_util)
+target_include_directories(aux_vk PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${XCB_INCLUDE_DIRS})
+target_link_libraries(aux_vk PUBLIC xrt-external-vulkan-headers aux_os aux_util ${XCB_LIBRARIES})
 target_link_libraries(aux_vk PRIVATE xrt-external-vulkan-loader)
 
 if(ANDROID)

I'm not sure how best to make the homebrew recipe do that automatically. I'm guessing in CI the libraries are being installed at the system level, and not purely by homebrew, which is probably why it's working? Because they're in the default include dirs.

Thank you! I'll add this patch to the formula.

I'm guessing in CI the libraries are being installed at the system level, and not purely by homebrew, which is probably why it's working?

It builds in CI just fine, I just need to fix our CI server. The builds are only failing on Bazzite

As a temporary workaround on bazzite, we can install libX11-devel and libxcb-devel via rpm-ostree: rpm-ostree install libxcb-devel libX11-devel, and then reboot.

bazzite discourages the use of rpm-ostree, so it would be nicer if we could fix this in homebrew.

Sign up or Sign in to add to the discussion.