enigo: Linking error `cannot find -lxdo` when trying to compile 0.0.12 on Linux
After upgrading to 0.0.12 from 0.0.11, when I try to compile on Linux (works fine on gnu Windows) it gives error: linking with `cc` failed: exit code: 1
and the reason note: /usr/bin/ld: cannot find -lxdo
The only change to dependencies in 0.0.12 that seem to affect linux is objc 0.2.2
, but when I tried to compile that by itself, it compiled just fine.
I also installed xdo, but that didn’t seem to change anything.
Any ideas?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (2 by maintainers)
Commits related to this issue
- Install xdotool on Travis (see enigo-rs/enigo#55) — committed to bvanrijn/image-to-mc by bvanrijn 6 years ago
You can try activating the x11rb feature. If you do that, you won’t need to install any dependencies. There might still be some bugs, that is why it is not the default yet. Please open an issue if you encounter a bug when enabling the feature
@jim4067 I don’t know if the message came too late 🛸
libxdo-dev
It now uses libxdo instead of X11 directly so we can use a well-known and therefore less buggy backend. To fix the linking error, install
xdotool
😃