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

Wayland-client won't compile #562

Closed
Rheydskey opened this issue Oct 12, 2020 · 15 comments
Closed

Wayland-client won't compile #562

Rheydskey opened this issue Oct 12, 2020 · 15 comments
Labels
question Further information is requested

Comments

@Rheydskey
Copy link

Wayland-client doesn't want to compile, I don't know why.
I tried to install some dependencies but no result.
So I give you the compilation errors in pastebin: https://pastebin.com/ehKUQm2n

@twitchyliquid64
Copy link

Looking at wayland-rs project, it says:

Requires at least rust 1.41 to be used, and version 1.15 of the wayland system libraries

Can you confirm those are both true?

@Rheydskey
Copy link
Author

I can deactivate Wayland because I'm on Xorg. Using the features?

@twitchyliquid64
Copy link

I think the features are all under control of the underlying crates. In any case, the library just implements the protocol, so no biggy if its unused. Im guessing feature flag plumbing is needed through the intermediate crates, or you need to install the library.

If I can put my 'strong-opinion' cap on, I would recommend migrating away from Xorg now that its formally in sunset mode / bitrotting. Wayland is the future!

@Rheydskey
Copy link
Author

I'd like to use Wayland but the performance in games is too unpleasant to play and DEs like KDE or GNOME are totally finished for Wayland. Also the fact that I have a Nvidia graphics card is a hindrance.
And I looked for the library I have version 1.18 with Arch Linux

@twitchyliquid64
Copy link

I'd like to use Wayland but the performance in games is too unpleasant to play and DEs like KDE or GNOME are totally finished for Wayland. Also the fact that I have a Nvidia graphics card is a hindrance.

Ah, Nvidia. AFAICT their approach of bolting on closed-source drivers (via DKMS) instead of participating in kernel development Linux-style results in a ton of bugs and wierdness. I have no idea if their DKMS stuff messed with Wayland.

As far as I can tell anecdotally, it looks like most people who use Linux are avoiding Nvidia hardware due to the constant issues. Personally, I got very frustrated with the bugs I was encountering with Nvidia and switched about a year ago. Everything works perfectly now, and I dont look back XD

And I looked for the library I have version 1.18 with Arch Linux

This might be an issue with wayland-rs - maybe open an issue there?

@hecrj
Copy link
Member

hecrj commented Oct 13, 2020

@Rheydskey I think you may be able to fix the issue by installing the Wayland development libraries.

@hecrj hecrj added the question Further information is requested label Oct 13, 2020
@Rheydskey
Copy link
Author

@Rheydskey I think you may be able to fix the issue by installing the Wayland development libraries.

Do you have the name of the package under ArchLinux ?

@hecrj
Copy link
Member

hecrj commented Oct 14, 2020

Have you tried the wayland package?

@Rheydskey
Copy link
Author

Yes, already installed

@valpackett
Copy link
Contributor

Compiling wayland-client v0.23.6

That's a suspiciously low version, the latest is 0.28.1. winit 0.23 does use wayland-rs 0.28. iced uses winit 0.23 as of 11 days ago.

…you're not using iced 0.1.1 from crates.io, are you?

@Rheydskey
Copy link
Author

…you're not using iced 0.1.1 from crates.io, are you?

I compile each time an example of the github

@raymanfx
Copy link

FYI I had the same issue on Fedora 33.
Apparently I tried to compile my app against a version of iced on GitHub which, at the time, pulled in wayland-client v0.23.6. The latest code tracks winit v0.23 which indeed pulls in wayland-rs v0.28 (and thus an updated version of wayland-client as well).

TL;DR to fix your issue: cargo update should be sufficient.

@Rheydskey
Copy link
Author

Thank you it works

@valpackett
Copy link
Contributor

Right, heh, I also just saw this on a completely clean checkout of this repo without updates. @hecrj please commit a cargo update :)

@hecrj
Copy link
Member

hecrj commented Nov 10, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants