Xrandr not found when building GTK4 for Mac

I tried to build GTK4 from the source code, but I get an error saying ‘Dependency “xrandr” not found, tried pkgconfig, framework and cmake’. I tried installing xrandr through macports, but it still will not work. Am I missing something?
I am using a Mac with an M1 chip.


Do you need the X11 backend on Mac?

Have you tried passing -Dx11-backend=false to the meson setup?

This worked perfectly. Thanks!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.