Skip to content

can't compile on x11 FreeBSD error[E0425]: cannot find function _listen in this scope #168

@coolName22

Description

@coolName22

when I try to compile any of the examples I get this error

error[E0425]: cannot find function _listen in this scope
--> /home/guest/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rdev-0.5.3/src/lib.rs:272:5
|
272 | _listen(callback)
| ^^^^^^^ not found in this scope

error[E0425]: cannot find function _simulate in this scope
--> /home/guest/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rdev-0.5.3/src/lib.rs:308:5
|
308 | _simulate(event_type)
| ^^^^^^^^^ not found in this scope

error[E0425]: cannot find function _display_size in this scope
--> /home/guest/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rdev-0.5.3/src/lib.rs:321:5
|
321 | _display_size()
| ^^^^^^^^^^^^^ not found in this scope
.

I added the evdev = "0.13.1" crate to the Cargo.toml but it's still broken

I had a similar issue with enigo not being able to compile but then I used the feature x11rb and enigo worked enigo-rs/enigo#437 but I need the input detection of rdev

I have no idea how to fix this please help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions