Open yurivict opened 1 year ago
Hi,
This is because of the lack of FreeBSD support in baseview that you pointed out here: https://github.com/RustAudio/baseview/issues/91
I don’t know if there are other blockers for BSD support.
I added the pull request for that issue in baseline.
But now the build fails like this:
--> /disk-samsung/freebsd-ports/audio/octasine/work/iced_baseview-b78fa8057d1b7ba0adf0351a59173ec4e8ec9ee4/src/conversion.rs:28:13
|
28 | baseview::MouseEvent::ButtonPressed(button) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: /disk-samsung/freebsd-ports/audio/octasine/work/baseview-c0c01e77c3c8ae36bede98374893f46ab8595007/src/event.rs:46:5
|
46 | ButtonPressed {
| ------------- `baseview::MouseEvent::ButtonPressed` defined here
|
help: use struct pattern syntax instead
|
28 | baseview::MouseEvent::ButtonPressed { /* fields */ } => {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: consider importing one of these items instead
|
1 | use crate::conversion::IcedMouseEvent::ButtonPressed;
|
1 | use iced_core::mouse::Event::ButtonPressed;
|
1 | use iced_native::mouse::Event::ButtonPressed;
|
help: if you import `ButtonPressed`, refer to it directly
|
28 - baseview::MouseEvent::ButtonPressed(button) => {
28 + ButtonPressed(button) => {
|
error[E0532]: expected tuple struct or tuple variant, found struct variant `baseview::MouseEvent::ButtonReleased`
--> /disk-samsung/freebsd-ports/audio/octasine/work/iced_baseview-b78fa8057d1b7ba0adf0351a59173ec4e8ec9ee4/src/conversion.rs:35:13
|
35 | baseview::MouseEvent::ButtonReleased(button) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: /disk-samsung/freebsd-ports/audio/octasine/work/baseview-c0c01e77c3c8ae36bede98374893f46ab8595007/src/event.rs:54:5
|
54 | ButtonReleased {
| -------------- `baseview::MouseEvent::ButtonReleased` defined here
|
help: use struct pattern syntax instead
|
35 | baseview::MouseEvent::ButtonReleased { /* fields */ } => {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: consider importing one of these items instead
|
1 | use crate::conversion::IcedMouseEvent::ButtonReleased;
|
1 | use iced_core::mouse::Event::ButtonReleased;
|
1 | use iced_native::mouse::Event::ButtonReleased;
|
help: if you import `ButtonReleased`, refer to it directly
|
35 - baseview::MouseEvent::ButtonReleased(button) => {
35 + ButtonReleased(button) => {
|
error[E0532]: expected tuple struct or tuple variant, found struct variant `baseview::MouseEvent::WheelScrolled`
--> /disk-samsung/freebsd-ports/audio/octasine/work/iced_baseview-b78fa8057d1b7ba0adf0351a59173ec4e8ec9ee4/src/conversion.rs:42:13
|
42 | baseview::MouseEvent::WheelScrolled(delta) => match delta {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `baseview::MouseEvent::WheelScrolled { /* fields */ }`
|
::: /disk-samsung/freebsd-ports/audio/octasine/work/baseview-c0c01e77c3c8ae36bede98374893f46ab8595007/src/event.rs:62:5
|
62 | WheelScrolled {
| ------------- `baseview::MouseEvent::WheelScrolled` defined here
error[E0027]: pattern does not mention field `modifiers`
--> /disk-samsung/freebsd-ports/audio/octasine/work/iced_baseview-b78fa8057d1b7ba0adf0351a59173ec4e8ec9ee4/src/application/state.rs:121:36
|
121 | baseview::Event::Mouse(baseview::MouseEvent::CursorMoved {
| ____________________________________^
122 | | position,
123 | | }) => {
| |_____________^ missing field `modifiers`
|
help: include the missing field in the pattern
|
122 | position, modifiers }) => {
| ~~~~~~~~~~~~~
help: if you don't care about this missing field, you can explicitly ignore it
|
122 | position, .. }) => {
| ~~~~~~
Hmm, yeah, that’s probably because iced_baseview hasn’t been updated to use the very latest baseview yet.
Could you please check if https://github.com/iced-rs/iced even runs on BSD? The repo says it supports “Windows, macOS, Linux, and the Web”.
Iced example is built fine. It crashes during runtime: https://github.com/iced-rs/iced/issues/1499
The
platrorm
crate used in the code isn't listed in Cargo.lockVersion: 0.8.1 rust-1.63.0 FreeBSD 13.1 STABLE