-
Notifications
You must be signed in to change notification settings - Fork 97
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 support #14
base: master
Are you sure you want to change the base?
Macos support #14
Conversation
Saw your comment re Arch in the other PR. That line is removed here as well because it breaks macOS as well as 18.10. I understand if you reject this for the same reason. I'd like to keep my fork up as an macOS port in that case if it's all the same to you and we can't find a way to catch the Arch case. I don't have an Arch install myself, so it would be difficult for me to help on that. |
Closing for now. Going to try to special case arch https://github.com/schultyy/os_type |
I have no Arch install but this (in theory) handles the Arch case. If someone could test that to be safe that would probably be best. If the macOS changes have to stay separate, that's cool too. |
I'll try to test this out once I get home from work tonight. |
I appreciate that a lot and sorry for all the Github emails I must have generated for you today :) |
Don't worry about it. The contribution is definitely welcome. |
I tested this on my system and unfortunately it doesn't work. Here is what is returned for
I think this is because I am running Antergos instead of straight Arch. This is the output of
I suspect that Manjaro and any other Arch based distros would have the same problem. I think a different approach is required. |
Yeah, so I did some digging and it looks like any rolling distro is going to have this problem and there are too many of them to catch individually if we go this route. It's a big catch 22 though even ignoring macOS, because the version in master is broken on Ubuntu in most common configurations. Also, the root issue that forced the env for Arch actually seems to be an underlying bug not having to do with this project. That leaves us a few options that all aren't great:
Let me know what you think and if you have any other ideas / ways to skin this cat. Thanks! |
I think that, for the purpose of this specific PR (macOS support), we should be fine using conditional compilation instead of The original
which should prevent it from trying to set the environment variable on macOS. Was this not the case? If so, you can use the same syntax for choosing the correct shaders.
|
OK, I will make those changes and update the PR after work today. |
Any progress on this? |
Got swamped in day job. I'll jump back on this over the weekend. Sorry for the delay. |
No problem. |
Is there a reason why this hasn't been merged? |
Currently this breaks some OSs besides macOS. It needs some tweaks to detect which OS is being used correctly. |
Hey I'm back from under the lurch here. Which OS does this break? |
Yes I think conditional compilation is probably the way to go here. We'll have to test it on each platform to be sure, though. |
@unlimitedbacon I can help with the testing if desired. |
Actually, this has gotten more complicated on Catalina. Basically by default a ton of the required libs no longer exist. I am not sure macOS support is really worth perusing, given the level of effort by my estimation. |
That is unfortunate. Is it because Apple has deprecated OpenGL? |
Hi, I'm on |
Any news here? Would be interested in the mac version being on crates. |
Co-authored-by: Vitor Vasconcellos <[email protected]>
Co-authored-by: Vitor Vasconcellos <[email protected]>
Co-authored-by: lotuc <[email protected]> Co-authored-by: Vitor Vasconcellos <[email protected]>
Co-authored-by: lotuc <[email protected]> Co-authored-by: Vitor Vasconcellos <[email protected]>
For your consideration: I have added macOS Mojave command line support
I am happy to make any additions to the ReadMe re macOS configuration if you like. However, the only real dependency is Mojave and the standard Rust tool-chain. I would also be happy to create macOS binaries for the release page.