Open theronic opened 5 years ago
Same thing here.
= note: /usr/lib/libudev.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: Could not compile `bridges`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name bridges src/main.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=4a79882c44fb469d -C extra-filename=-4a79882c44fb469d --out-dir /home/patrick/git/patrick/bridges/target/armv7-unknown-linux-gnueabihf/debug/deps --target armv7-unknown-linux-gnueabihf -C linker=arm-linux-gnueabihf-gcc -C incremental=/home/patrick/git/patrick/bridges/target/armv7-unknown-linux-gnueabihf/debug/incremental -L dependency=/home/patrick/git/patrick/bridges/target/armv7-unknown-linux-gnueabihf/debug/deps -L dependency=/home/patrick/git/patrick/bridges/target/debug/deps --extern clap=/home/patrick/git/patrick/bridges/target/armv7-unknown-linux-gnueabihf/debug/deps/libclap-21fd3cc5a54aee73.rlib --extern libc=/home/patrick/git/patrick/bridges/target/armv7-unknown-linux-gnueabihf/debug/deps/liblibc-aaea030eaa01561e.rlib --extern mio=/home/patrick/git/patrick/bridges/target/armv7-unknown-linux-gnueabihf/debug/deps/libmio-9408e9e805797b78.rlib --extern mio_serial=/home/patrick/git/patrick/bridges/target/armv7-unknown-linux-gnueabihf/debug/deps/libmio_serial-c5cbc2832fee4bcc.rlib --extern serialport=/home/patrick/git/patrick/bridges/target/armv7-unknown-linux-gnueabihf/debug/deps/libserialport-e7c479ba49978260.rlib -L native=/usr/lib` (exit code: 1)
When I use any code that tries to build anything from serialport package, I get the following error:
cargo tree
shows:connect serial port I suspect this is I suspect this is related to I don't know apt-get update && apt-get install -y libudev-dev