mio-serial icon indicating copy to clipboard operation
mio-serial copied to clipboard

libudev problems

Open patrickelectric opened this issue 6 years ago • 3 comments

It fails to compile with: /usr/lib/libudev.so: file not recognized: File format not recognized cargo build --target=armv7-unknown-linux-gnueabihf Any idea of how to solve that ?

My cargo file

[dependencies]
clap = "2.31.2"
libc = "0.2.*"
mio = "0.6"
mio-serial = "3.*"
serialport = "3.*"

patrickelectric avatar Aug 21 '19 15:08 patrickelectric

Need a bit more information, but it looks like maybe you're trying to cross compile and it's trying to link against libudev.so on the host instead of the target?

berkowski avatar Aug 23 '19 13:08 berkowski

I can't speak to @patrickelectric, but I have been having that same issue. I think you are right about the cause, how do I make it link against libudev.so on the target? I am targeting the same toolchain as patrick.

Noah-Kennedy avatar Nov 02 '19 19:11 Noah-Kennedy

I dont remember right now what I did to fix, but for now I'm using musl.

patrickelectric avatar Nov 03 '19 05:11 patrickelectric