When I use any code that tries to build anything from serialport package, I get the following error:
error: linking with `arm-linux-gnueabihf-gcc-with-link-search` failed: exit code: 1
|
= note: "arm-linux-gnueabihf-gcc-with-link-search" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/source/target/arm-unknown-linux-gnueabihf/release/deps/ferm-3fdc3e8485851ba0.ferm.24vd4lm7-cgu.0.rcgu.o"
<redacted>
"/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcompiler_builtins-5f64e7823d30511e.rlib" "-Wl,-Bdynamic" "-ludev" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
= note: /usr/lib/x86_64-linux-gnu/libudev.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
error: aborting due to previous error
cargo tree shows:
├── serialport v3.1.0
│ ├── CoreFoundation-sys v0.1.4
│ │ ├── libc v0.2.44
│ │ └── mach v0.1.2
│ │ └── libc v0.2.44 (*)
│ ├── IOKit-sys v0.1.5
│ │ ├── CoreFoundation-sys v0.1.4 (*)
│ │ ├── libc v0.2.44 (*)
│ │ └── mach v0.1.2 (*)
│ ├── bitflags v1.0.4
│ ├── mach v0.2.3
│ │ └── libc v0.2.44 (*)
│ └── nix v0.11.0
│ ├── bitflags v1.0.4 (*)
│ ├── cfg-if v0.1.6
│ ├── libc v0.2.44 (*)
│ └── void v1.0.2
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
When I use any code that tries to build anything from serialport package, I get the following error:
cargo treeshows: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