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

Make wayland a soft-dependency (via feature flag or other) #750

Open
1 of 2 tasks
LinoBigatti opened this issue Jun 9, 2023 · 3 comments
Open
1 of 2 tasks

Make wayland a soft-dependency (via feature flag or other) #750

LinoBigatti opened this issue Jun 9, 2023 · 3 comments

Comments

@LinoBigatti
Copy link

LinoBigatti commented Jun 9, 2023

Is your feature request related to a problem? Please describe.
Users building tauri apps for personal use in Gentoo Linux (and possibly other source-based distros) have the option to build gtk+ without Wayland support, as to not pull in Wayland as a dependency when only using X11. However, these people will find themselves with a linking error:

/home/lino/.cargo/registry/src/github.com-1ecc6299db9ec823/tao-0.16.2/src/platform_impl/linux/window.rs:812: undefined reference to `gdk_wayland_window_get_wl_surface'
          collect2: error: ld returned 1 exit status
          
  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified

Users with a pure Wayland system might have this issue too, but in reverse.

Describe the solution you'd like
A feature flag (like --features wayland and --features x11) could be used to turn on/off the code paths related to these libraries. This would fix the linking errors. These features should probably come enabled by default, as this is the current behaviour.

Describe alternatives you've considered
Gentoo users need to emerge gtk+ with the wayland use flag enabled. This works, but pulls in unnecesary dependencies into the system that will never be used. If it is decided that users should make this change themselves, it should be reflected in the docs.

Would you want to assign yourself to implement this feature?

  • Yes
  • No
@wusyong
Copy link
Member

wusyong commented Jun 10, 2023

I think we should auto-detect this when we provoding hooks. I'll look into this next week.
cc @dklassic

@teonaseverin
Copy link

We have the same issue when building a Tauri application in Yocto. Do you have any updates on this?

@becseya
Copy link

becseya commented Mar 8, 2024

@teonaseverin Did you manage to make Tauri run under Yocto?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📬Proposal
Development

No branches or pull requests

4 participants