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

Better Installation Instructions for Arch Linux #64

Closed
maxbla opened this issue Apr 9, 2019 · 3 comments
Closed

Better Installation Instructions for Arch Linux #64

maxbla opened this issue Apr 9, 2019 · 3 comments

Comments

@maxbla
Copy link

maxbla commented Apr 9, 2019

OS: Arch Linux
Enigo version: 0.0.12
I kept getting a linker error (/usr/bin/ld: cannot find -lxdo) when building a very simple program, specifically this one:

extern crate enigo;
use enigo::{Enigo, MouseControllable};

fn main() {
    let mut enigo = Enigo::new();
    enigo.mouse_move_to(500, 200);
}

The error read:

/usr/bin/ld: cannot find -lxdo

on Arch Linux, packages are named differently from Ubuntu. apt install libxdo-dev (the recommendation from the readme) does not help. To get this working on arch, I had to use

pacman -S xdotool

This command should probably be added to the README. It took me several minutes to discover the right package to install through trial and error, and I thought the enigo crate might simply not work on Arch.

@pythoneer
Copy link
Member

pythoneer commented Apr 9, 2019

Thanks for your suggestions and sorry for your struggle. I think about it and maybe its a better way to link to another documentation (maybe xdo itself) because otherwise we need to have install instructions for every distribution.

@maxbla
Copy link
Author

maxbla commented Apr 9, 2019

The xdotool website has installation instructions for other OSs, but it doesn't include Arch! https://www.semicomplete.com/projects/xdotool/. I filed an issue there.

@pythoneer
Copy link
Member

Thanks, that's a good idea!

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