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

Build in FreeBSD headless failed with unresolved import wry::webview::WebviewExtUnix and other misc error. #87

Closed
Trung0246 opened this issue Sep 2, 2023 · 1 comment

Comments

@Trung0246
Copy link

Trung0246 commented Sep 2, 2023

I'm attempting to build privaxy on freebsd and encountered these error:

error[E0432]: unresolved import `wry::webview::WebviewExtUnix`
    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-runtime-wry-0.12.2/src/lib.rs:2267:23
     |
2267 |                   use wry::webview::WebviewExtUnix;
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `WebviewExtUnix` in `webview`

   Compiling yew-router v0.16.0
error[E0046]: not all trait items implemented, missing: `skip_taskbar`
   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-runtime-wry-0.12.2/src/lib.rs:693:1
    |
693 | impl WindowBuilder for WindowBuilderWrapper {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `skip_taskbar` in implementation
    |
    = help: implement the missing item: `fn skip_taskbar(self, _: bool) -> Self { todo!() }`

error[E0599]: no method named `webview` found for reference `&Arc<wry::webview::WebView>` in the current scope
    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-runtime-wry-0.12.2/src/lib.rs:2268:23
     |
2268 |                   f(w.webview());
     |                       ^^^^^^^ private field, not a method

error[E0599]: no method named `gtk_window` found for enum `WindowHandle` in the current scope
    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-runtime-wry-0.12.2/src/lib.rs:2360:40
     |
1552 | enum WindowHandle {
     | ----------------- method `gtk_window` not found for this enum
...
2360 |               tx.send(GtkWindow(window.gtk_window().clone())).unwrap()
     |                                        ^^^^^^^^^^ method not found in `WindowHandle`
     |
     = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
     |
7    + use wry::application::platform::unix::WindowExtUnix;
     |

It looks like it some gtk and UI related stuff (maybe tauri webview thing) but I'm not sure. Is privaxy GUI run using gtk or with webpage dashboard? If it is the latter case then can I just build the server since my freebsd env is headless.

Maybe relevant: #74, #13

@Trung0246 Trung0246 changed the title Build in FreeBSD failed with unresolved import wry::webview::WebviewExtUnix and other misc error. Build in FreeBSD headless failed with unresolved import wry::webview::WebviewExtUnix and other misc error. Sep 2, 2023
@Trung0246
Copy link
Author

Edit: Checking the github action on how to build server only looks like I missed some flag (especially adding --bin privaxy).

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

1 participant