Shirakumo / alloy

A new user interface protocol and toolkit implementation
https://shirakumo.github.io/alloy
zlib License
181 stars 12 forks source link

Alloy on Mac Osx #23

Closed Inc0n closed 1 year ago

Inc0n commented 1 year ago

The example on glfw, doesn't even start an window... Perhaps alloy is not supported on Mac Osx, for some reasons? There is no error either. But cl-glfw3 is fine, the example basic-window ran fine.

Shinmera commented 1 year ago

Did you run things from the main thread, ie, without slime? Mac in general has issues with main-threadiness.

Inc0n commented 1 year ago

No, unfortunately I ran it within slime.

Shinmera commented 1 year ago

You might be able to run sbcl from the terminal, then start swank later and avoid the issue that way. I don't remember what magic incantations are required these days, and honestly ran out of patience dealing with Apple's bs years ago.

Inc0n commented 1 year ago

Very true indeed, I regretted a long time ago after acquiring this m1, sigh

Shinmera commented 1 year ago

In any case, main-threadness aside, Alloy does work on MacOS. There's no other platform dependent stuff in it, anyhow.

Inc0n commented 1 year ago

Okay, with thread out of the way.... now when I run it, it flashes a very small window (presumably because I didn't set window height or width), and disappears very quickly. There is no substantial output from the slime repl that suggests anything related to this behaviour.

Shinmera commented 1 year ago

Did you try any of the examples, or?

Inc0n commented 1 year ago

I was trying combo from https://github.com/Shirakumo/alloy/blob/master/examples/windows.lisp. Also the example you gave me while back: https://github.com/Shirakumo/alloy/issues/1#issuecomment-611354210. Both have the same behaviour.

Shinmera commented 1 year ago

Odd. The examples work fine on Linux and Windows.

Inc0n commented 1 year ago

Sigh just not on macs or because of something from my personal setup, I don't know for sure which.

Shinmera commented 1 year ago

I'm afraid I don't know any more than you. As I said, I haven't tested on mac in years. Last I tried a Kandria build on it all the UI bits (which are all Alloy) did work. I imagine this is some minor problem in the alloy-glfw backend or something.