= note: ld.lld: error: unable to find library -lusb-1.0
cosoc opened this issue · comments
你好好瞧哦 commented
os info: debian 11
install lib
apt install libusb-dev libusb-1.0-0 libusb-1.0-0-dev
build
#!/bin/bash
SYSROOT=/usr/lib/x86_64-linux-gnu
export PKG_CONFIG_PATH=
export PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig
export PKG_CONFIG_SYSROOT_DIR=/usr/lib/x86_64-linux-gnu
export PKG_CONFIG_ALLOW_CROSS=1
export LD_LIBRARY_PATH=
cargo zigbuild --bin my_bin_cli --target=x86_64-unknown-linux-musl --features vendored --release
error
= note: ld.lld: error: unable to find library -lusb-1.0
messense commented
You can't just mix gnu and musl libraries together.