Closed jonnyandrew closed 6 months ago
Does the error you get with cargo run
have any more information than linking with `cc` failed: exit status: 1
? Generally link errors will have more specific information about what part of linking fails.
sudo apt install gcc-multilib
this may fix.
Does the error you get with
cargo run
have any more information thanlinking with `cc` failed: exit status: 1
? Generally link errors will have more specific information about what part of linking fails.
Ah sorry, I didn't spot it the first time round:
cannot find -lxdo: No such file or directory
I fixed the problem by installing libxdo-dev
:) Thanks for your help!
to fix on fedora, you should install
sudo dnf install libxdo-devel
It should be noted that this currently leads to a somewhat rough experience for new users: Just checking out the repo and running cargo run --example hello_world
results in an intimidating:
I'm wondering if the hard dependency on -ldxo
is actually intentional, or could it be made optional? Why does running the example depend on linking to an x11 automation tool?
Yeah, I faced the same issue while following this https://dioxuslabs.com/learn/0.5/getting_started.
I had to also run sudo dnf install perl
also to make it build on my machine
also encountered same issue on Arch Linux, and solved by doing
sudo pacman -S xdotool
it will install libxdo
and fixes the issue for Arch :)
Problem
Error compiling a desktop app on Ubuntu Linux:
Steps To Reproduce
cargo run
ORdx serve --hot-reload --platform desktop
Note that I already followed the desktop getting started guide to
Expected behavior
Sample project compiles and runs.
Screenshots
N/A
Environment:
desktop
Questionnaire