-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
docs/Setup: Missing dependency installation instructions for arm64 macOS #1360
Comments
https://github.com/cart/glsl-to-spirv contains prebuilt binaries for several targets, but arm macOS is missing it seems. |
Thanks! I'm not 100% sure, but I don't think
Its README also states:
...and
|
I've found that the Vulkan SDK download for macOS is indeed a universal binary, so works on Apple Silicon, and it works as expected to allow compiling Bevy without However, due to For Linux, however, the directory can be auto detected if neither of those variables are set, so I'm thinking of opening a PR in |
|
I see, thank you for the explanation! In that case, it looks like my efforts might be better focused on updating this fork to include universal binaries for macOS, seeing as all the required libs in |
PR to add support for Apple Silicon to |
PR in |
Thanks for looking in to this! I've responded to cart/glsl-to-spirv#11 |
glsl-to-spirv is no longer used |
Bevy version
bff44f7 (latest
master
at time of opening)Operating system & version
macOS 11.2 (20D64; arm64)
What you did
Follow the Getting Started page from the Bevy Book, i.e.
git clone https://github.com/bevyengine/bevy cd bevy cargo run --example breakout
What you expected to happen
The example runs without any additional dependencies, since the Setup page states:
What actually happened
The example fails to build and run:
Additional information
See also: #928 (comment)
Installing
cmake
usingsudo port install cmake
(presumablybrew install cmake
also works) allows the build to complete successfully, however ideally this should be included in the Setup docs for clarity.According to the shaderc-sys crate's README, the shaderc library is shipped with the Vulkan SDK, which I think is available as a universal binary supporting Apple Silicon, meaning
cmake
shouldn't be required - I haven't yet tested to see if this works (planning to try some time tomorrow).I'm happy to write a PR to document this on the Setup page, after determining if installing the Vulkan SDK works to skip building from source instead of installing
cmake
, so that this can be included in the docs if appropriate.The text was updated successfully, but these errors were encountered: