berkowski / mio-serial

MIT License
85 stars 48 forks source link

libudev problems #18

Open patrickelectric opened 5 years ago

patrickelectric commented 5 years ago

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.*"
berkowski commented 5 years ago

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?

Noah-Kennedy commented 5 years ago

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.

patrickelectric commented 5 years ago

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