Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS CI (and macOS dependency instructions) #111

Open
andreasabel opened this issue Jan 23, 2025 · 4 comments
Open

macOS CI (and macOS dependency instructions) #111

andreasabel opened this issue Jan 23, 2025 · 4 comments

Comments

@andreasabel
Copy link

andreasabel commented Jan 23, 2025

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
Copy link
Author

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.

@liskin
Copy link
Member

liskin commented Jan 23, 2025

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.

@andreasabel
Copy link
Author

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...

@geekosaur
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants