X11 icon indicating copy to clipboard operation
X11 copied to clipboard

macOS CI (and macOS dependency instructions)

Open andreasabel opened this issue 11 months ago • 4 comments

configure: error: X11 libraries not found, so X11 package cannot be built

It would be good to document in README which steps to take to install the X11 dependencies on macOS. Also a CI running on macos-latest could help ensure that these instructions are staying fresh.

What used to work is brew install libxrandr libxscrnsaver: https://github.com/teach-afp/afp-code/blob/af948f0540737c65d818372d187e19e7621917a5/.github/workflows/ci.yml#L63-L66 But this was for the Intel mac (macos-12), it is broken on the ARM image (macos-14).

andreasabel avatar Jan 23 '25 15:01 andreasabel

On my local machine I got it to build after installing Xquartz: https://www.xquartz.org/index.html Not sure if this is an option for CI.

andreasabel avatar Jan 23 '25 15:01 andreasabel

We'll probably need someone to volunteer here as none of us in the xmonad team use MacOS much. Up until now I didn't even consider it might build or work at all.

And I wonder what the usecase is anyway. I think I tried XQuartz relatively recently and the experience was super bad. It was a thousand times slower than just running Linux in QEMU.

liskin avatar Jan 23 '25 15:01 liskin

I can confirm that brew install --cask xquartz installs the necessary prerequisites: https://github.com/teach-afp/afp-code/pull/3/files

I only use it for teaching, mostly to run legacy code...

andreasabel avatar Jan 23 '25 16:01 andreasabel

FWIW, what I had to do when I ran macOS (2016ish) was install XQuartz (directly) and patch xmonad and xmonad-contrib to use pkg-config. brew may obviate the patching.

geekosaur avatar Jan 23 '25 17:01 geekosaur