WeirdConstructor / Kickmess

Kickmess - A kick drum synthesizer plugin
GNU Affero General Public License v3.0
40 stars 2 forks source link

error[E0433]: failed to resolve: use of undeclared crate or module `platform` #6

Open yurivict opened 3 years ago

yurivict commented 3 years ago
error[E0433]: failed to resolve: use of undeclared crate or module `platform`
  --> /usr/ports/audio/kickmess-lv2/work/baseview-3cb9848ee790dc0e99d511b1fcc19205c3242c40/src/window.rs:21:21
   |
21 |     window: &'a mut platform::Window,
   |                     ^^^^^^^^ use of undeclared crate or module `platform`

error[E0433]: failed to resolve: use of undeclared crate or module `platform`
  --> /usr/ports/audio/kickmess-lv2/work/baseview-3cb9848ee790dc0e99d511b1fcc19205c3242c40/src/window.rs:27:36
   |
27 |     pub(crate) fn new(window: &mut platform::Window) -> Window {
   |                                    ^^^^^^^^ use of undeclared crate or module `platform`

error[E0433]: failed to resolve: use of undeclared crate or module `platform`
  --> /usr/ports/audio/kickmess-lv2/work/baseview-3cb9848ee790dc0e99d511b1fcc19205c3242c40/src/window.rs:41:19
   |
41 |         platform::Window::open_parented::<P, H, B>(parent, options, build)
   |                   ^^^^^^ not found in `platform`
   |
help: consider importing this struct
   |
1  | use crate::Window;
   |

error[E0433]: failed to resolve: use of undeclared crate or module `platform`
  --> /usr/ports/audio/kickmess-lv2/work/baseview-3cb9848ee790dc0e99d511b1fcc19205c3242c40/src/window.rs:50:19
   |
50 |         platform::Window::open_as_if_parented::<H, B>(options, build)
   |                   ^^^^^^ not found in `platform`
   |
help: consider importing this struct
   |
1  | use crate::Window;
   |

error[E0433]: failed to resolve: use of undeclared crate or module `platform`
  --> /usr/ports/audio/kickmess-lv2/work/baseview-3cb9848ee790dc0e99d511b1fcc19205c3242c40/src/window.rs:59:19
   |
59 |         platform::Window::open_blocking::<H, B>(options, build)
   |                   ^^^^^^ not found in `platform`
   |
help: consider importing this struct
   |
1  | use crate::Window;
   |

warning: unused imports: `Code`, `Location`
  --> /usr/ports/audio/kickmess-lv2/work/baseview-3cb9848ee790dc0e99d511b1fcc19205c3242c40/src/keyboard.rs:20:22
   |
20 | use keyboard_types::{Code, Location};
   |                      ^^^^  ^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

   Compiling raw-gl-context v0.1.2 (/usr/ports/audio/kickmess-lv2/work/raw-gl-context-a5a1b597562efa08a5e48b5ae24eebfa68c9de3c)
     Running `/usr/local/bin/rustc --crate-name raw_gl_context --edition=2018 /usr/ports/audio/kickmess-lv2/work/raw-gl-context-a5a1b597562efa08a5e48b5ae24eebfa68c9de3c/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C embed-bitcode=no -C metadata=775c587e77c8fc2a -C extra-filename=-775c587e77c8fc2a --out-dir /usr/ports/audio/kickmess-lv2/work/target/release/deps -L dependency=/usr/ports/audio/kickmess-lv2/work/target/release/deps --extern raw_window_handle=/usr/ports/audio/kickmess-lv2/work/target/release/deps/libraw_window_handle-f1efa13ceba8558b.rmeta -C linker=cc -C link-arg=-fstack-protector-strong`
error[E0433]: failed to resolve: use of undeclared crate or module `platform`
  --> /usr/ports/audio/kickmess-lv2/work/raw-gl-context-a5a1b597562efa08a5e48b5ae24eebfa68c9de3c/src/lib.rs:69:14
   |
69 |     context: platform::GlContext,
   |              ^^^^^^^^ use of undeclared crate or module `platform`

error[E0433]: failed to resolve: use of undeclared crate or module `platform`
  --> /usr/ports/audio/kickmess-lv2/work/raw-gl-context-a5a1b597562efa08a5e48b5ae24eebfa68c9de3c/src/lib.rs:78:9
   |
78 |         platform::GlContext::create(parent, config).map(|context| GlContext {
   |         ^^^^^^^^ use of undeclared crate or module `platform`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0433`.
error: could not compile `raw-gl-context`

Caused by:
  process didn't exit successfully: `/usr/local/bin/rustc --crate-name raw_gl_context --edition=2018 /usr/ports/audio/kickmess-lv2/work/raw-gl-context-a5a1b597562efa08a5e48b5ae24eebfa68c9de3c/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C embed-bitcode=no -C metadata=775c587e77c8fc2a -C extra-filename=-775c587e77c8fc2a --out-dir /usr/ports/audio/kickmess-lv2/work/target/release/deps -L dependency=/usr/ports/audio/kickmess-lv2/work/target/release/deps --extern raw_window_handle=/usr/ports/audio/kickmess-lv2/work/target/release/deps/libraw_window_handle-f1efa13ceba8558b.rmeta -C linker=cc -C link-arg=-fstack-protector-strong` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: aborting due to 5 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0433`.
^C*** Signal 2=========================================>             ] 133/172: x11-dl, wayland-scanner, vst, nix, rustybuzz                                                                

OS: FreeBSD 12.2

WeirdConstructor commented 3 years ago

It seems that the crates/libraries that Kickmess uses are not supporting FreeBSD. If FreeBSD has support for X11, there might be a chance to extend the target_os selection to FreeBSD in raw-gl-context and baseview.

I don't run FreeBSD, so I can't support FreeBSD currently.