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

Linking error on ubuntu 22.04 libinput_device_config_dwtp_set_enabled #71

Closed
ViddeM opened this issue May 21, 2024 · 3 comments
Closed

Comments

@ViddeM
Copy link

ViddeM commented May 21, 2024

When building a project depending on libinput I get a linking error saying:
input-0.9.0/src/device.rs:995: undefined reference to libinput_device_config_dwtp_set_enabled'`

I saw #59 but I already had such a symlink and furthermore my error seems unrelated (but feel free to educate me if I'm wrong).

My libinput version is 1.20.

@Drakulix
Copy link
Member

You are using a rather old system, as such your system likely doesn't ship a recent enough version of libinput, that has the required function.

By default this crate always assumes the highest version: https://github.com/Smithay/input.rs/blob/master/Cargo.toml#L33

You have to disable the default features to fix this.

@ViddeM
Copy link
Author

ViddeM commented May 21, 2024

Ah I see, yeah I'm using a company provided variant of ubuntu and they don't support 24 yet 😢

I got this issue trying to compile another project (not one of mine): niri (https://github.com/YaLTeR/niri) but after changing things to make it compile with the 1_19 feature it seems to be compiling now. Let's see how much I screwed up doing that x)

Thanks for the quick reply anyways! :)

@ViddeM ViddeM closed this as completed May 21, 2024
@Drakulix
Copy link
Member

If it just works niri is likely not using the method either, in that case maybe make a PR to disable the feature. Otherwise downstream in general needs to detect this during compile-time and work around missing methods.

No problem!

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

2 participants