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

unresolved imports winapi::shared::windef, winapi::um::winuser #6

Open
alfvy opened this issue May 27, 2022 · 2 comments
Open

unresolved imports winapi::shared::windef, winapi::um::winuser #6

alfvy opened this issue May 27, 2022 · 2 comments

Comments

@alfvy
Copy link

alfvy commented May 27, 2022

trying to build VST UI for the first time, it gave me these errors:

   Compiling vst_window v0.3.0
error[E0432]: unresolved imports `winapi::shared::windef`, `winapi::um::winuser`
 --> C:\Users\alfy\.cargo\registry\src\github.com-1ecc6299db9ec823\vst_window-0.3.0\src\platform\windows\event_source.rs:6:25
  |
6 |     shared::{minwindef, windef},
  |                         ^^^^^^ no `windef` in `shared`
7 |     um::winuser,
  |     ^^^^^^^^^^^ no `winuser` in `um`

error[E0432]: unresolved imports `winapi::shared::windef`, `winapi::um::winuser`
 --> C:\Users\alfy\.cargo\registry\src\github.com-1ecc6299db9ec823\vst_window-0.3.0\src\platform\windows\window.rs:7:25
  |
7 |     shared::{minwindef, windef},
  |                         ^^^^^^ no `windef` in `shared`
8 |     um::{libloaderapi, winuser},
  |                        ^^^^^^^ no `winuser` in `um`

error[E0433]: failed to resolve: could not find `winuser` in `um`
  --> C:\Users\alfy\.cargo\registry\src\github.com-1ecc6299db9ec823\vst_window-0.3.0\src\platform\windows\event_source.rs:91:25
   |
91 |             winapi::um::winuser::SetCapture(hwnd);
   |                         ^^^^^^^ could not find `winuser` in `um`

error[E0433]: failed to resolve: could not find `winuser` in `um`
  --> C:\Users\alfy\.cargo\registry\src\github.com-1ecc6299db9ec823\vst_window-0.3.0\src\platform\windows\event_source.rs:98:25
   |
98 |             winapi::um::winuser::ReleaseCapture();
   |                         ^^^^^^^ could not find `winuser` in `um`

error[E0433]: failed to resolve: could not find `winuser` in `um`
   --> C:\Users\alfy\.cargo\registry\src\github.com-1ecc6299db9ec823\vst_window-0.3.0\src\platform\windows\event_source.rs:105:25
    |
105 |             winapi::um::winuser::SetCapture(hwnd);
    |                         ^^^^^^^ could not find `winuser` in `um`

error[E0433]: failed to resolve: could not find `winuser` in `um`
   --> C:\Users\alfy\.cargo\registry\src\github.com-1ecc6299db9ec823\vst_window-0.3.0\src\platform\windows\event_source.rs:112:25
    |
112 |             winapi::um::winuser::ReleaseCapture();
    |                         ^^^^^^^ could not find `winuser` in `um`

error[E0433]: failed to resolve: could not find `winuser` in `um`
   --> C:\Users\alfy\.cargo\registry\src\github.com-1ecc6299db9ec823\vst_window-0.3.0\src\platform\windows\event_source.rs:119:25
    |
119 |             winapi::um::winuser::SetCapture(hwnd);
    |                         ^^^^^^^ could not find `winuser` in `um`

error[E0433]: failed to resolve: could not find `winuser` in `um`
   --> C:\Users\alfy\.cargo\registry\src\github.com-1ecc6299db9ec823\vst_window-0.3.0\src\platform\windows\event_source.rs:126:25
    |
126 |             winapi::um::winuser::ReleaseCapture();
    |                         ^^^^^^^ could not find `winuser` in `um`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `vst_window` due to 8 previous errors
@antonok-edm
Copy link
Owner

@alfvy evidently, I've never tried building vst_window standalone on Windows; I've only ever tried building it as a dependency of a VST project.

Those should be enabled by the windef and winuser features on the winapi crate. Would you mind adding those to Cargo.toml and testing it out? If it works I'd be happy to accept a PR.

@alfvy
Copy link
Author

alfvy commented Jun 2, 2022

sorry for the long wait, I am in the middle of finals, the build failed and gave me the same errors, I did try building with Schwi's fork and it compiled flawlessly

also worth of note the plugin it self must implement the Send trait for it to be "thread safe"

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