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

running on mac. #11

Open
figo2264 opened this issue Oct 18, 2024 · 4 comments
Open

running on mac. #11

figo2264 opened this issue Oct 18, 2024 · 4 comments

Comments

@figo2264
Copy link

error[E0432]: unresolved import `metal::CoreAnimationLayer`
  --> crates/libs/vulkan/src/utils/platforms.rs:19:5
   |
19 | use metal::CoreAnimationLayer;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ no `CoreAnimationLayer` in the root

error[E0405]: cannot find trait `EntryV1_0` in this scope
  --> crates/libs/vulkan/src/utils/platforms.rs:76:33
   |
76 | pub unsafe fn create_surface<E: EntryV1_0, I: InstanceV1_0>(
   |                                 ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `InstanceV1_0` in this scope
  --> crates/libs/vulkan/src/utils/platforms.rs:76:47
   |
76 | pub unsafe fn create_surface<E: EntryV1_0, I: InstanceV1_0>(
   |                                               ^^^^^^^^^^^^ not found in this scope

warning: unused imports: `Entry`, `Instance`
 --> crates/libs/vulkan/src/utils/platforms.rs:2:11
  |
2 | use ash::{Entry, Instance};
  |           ^^^^^  ^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Some errors have detailed explanations: E0405, E0432.
For more information about an error, try `rustc --explain E0405`.
warning: `vulkan` (lib) generated 1 warning
error: could not compile `vulkan` (lib) due to 3 previous errors; 1 warning emitted
warning: build failed, waiting for other jobs to finish...

Somehow when I run cargo run or build, it failed to build with those messages.

@KaminariOS
Copy link
Owner

KaminariOS commented Oct 18, 2024

I have never tested the code on Mac. Honestly I stole this piece of platform code from somewhere I don't remember. I should have deleted it. From the error message, it seems that pub unsafe fn create_surface<E: EntryV1_0, I: InstanceV1_0> should be renamed to match the imports.

However, even if this part of the code gets fixed, this project still won't work on Mac because it uses Nvidia extensions of Vulkan for GPU ray tracing. As in the README, the ideal platform of this project is Linux(or Windows) with a Nvidia RTX GPU.

@figo2264
Copy link
Author

Thanks for the fast feedback.
If it has been tested only on linux, can I do it WSL because i have another box at work which has RTX 3080 but it runs windows

@KaminariOS
Copy link
Owner

WSL may work but it wont be easy.

Acutally Windows does work, see this: #9 (comment).

He mentioned that he got it to work on Windows easily.

I never tested it myself because I don't use Windows.

@figo2264
Copy link
Author

Thanks..I will test it

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

2 participants