Skip to content

Instantly share code, notes, and snippets.

@joelreymont

joelreymont/log Secret

Last active September 7, 2023 17:00
Show Gist options
  • Save joelreymont/c031ec435502f603c88c3c1685d8fa5e to your computer and use it in GitHub Desktop.
Save joelreymont/c031ec435502f603c88c3c1685d8fa5e to your computer and use it in GitHub Desktop.
https://github.com/a1ien/rusb/blob/master/build.rs
[libusb1-sys 0.6.4] Can't find libusb pkg: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" PKG_CONFIG_LIBDIR="/home/papa/Work/yocto/poky/build/tmp/work/cortexa72-poky-linux/usbmon/0.1.0.AUTOINC+4237eab893-r0/recipe-sysroot/usr/lib/pkgconfig" PKG_CONFIG_PATH="/home/papa/Work/yocto/poky/build/tmp/work/cortexa72-poky-linux/usbmon/0.1.0.AUTOINC+4237eab893-r0/recipe-sysroot/usr/lib/pkgconfig:/home/papa/Work/yocto/poky/build/tmp/work/cortexa72-poky-linux/usbmon/0.1.0.AUTOINC+4237eab893-r0/recipe-sysroot/usr/share/pkgconfig" PKG_CONFIG_SYSROOT_DIR="/home/papa/Work/yocto/poky/build/tmp/work/cortexa72-poky-linux/usbmon/0.1.0.AUTOINC+4237eab893-r0/recipe-sysroot" "pkg-config" "--libs" "--cflags" "libusb-1.0"` did not exit successfully: exit status: 1
[libusb1-sys 0.6.4] error: could not find system library 'libusb-1.0' required by the 'libusb1-sys' crate
[libusb1-sys 0.6.4]
[libusb1-sys 0.6.4] --- stderr
[libusb1-sys 0.6.4] Package libusb-1.0 was not found in the pkg-config search path.
[libusb1-sys 0.6.4] Perhaps you should add the directory containing `libusb-1.0.pc'
[libusb1-sys 0.6.4] to the PKG_CONFIG_PATH environment variable
[libusb1-sys 0.6.4] No package 'libusb-1.0' found
[libusb1-sys 0.6.4] Can't find libusb pkg: Could not run `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" PKG_CONFIG_LIBDIR="/home/papa/Work/yocto/poky/build/tmp/work/cortexa72-poky-linux/usbmon/0.1.0.AUTOINC+4237eab893-r0/recipe-sysroot/usr/lib/pkgconfig" PKG_CONFIG_PATH="/home/papa/Work/yocto/poky/build/tmp/work/cortexa72-poky-linux/usbmon/0.1.0.AUTOINC+4237eab893-r0/recipe-sysroot/usr/lib/pkgconfig:/home/papa/Work/yocto/poky/build/tmp/work/cortexa72-poky-linux/usbmon/0.1.0.AUTOINC+4237eab893-r0/recipe-sysroot/usr/share/pkgconfig" PKG_CONFIG_SYSROOT_DIR="/home/papa/Work/yocto/poky/build/tmp/work/cortexa72-poky-linux/usbmon/0.1.0.AUTOINC+4237eab893-r0/recipe-sysroot" "/home/papa/Work/yocto/poky/build/tmp/work/cortexa72-poky-linux/usbmon/0.1.0.AUTOINC+4237eab893-r0/recipe-sysroot-native/usr/bin/pkg-config" "--libs" "--cflags" "libusb-1.0"`
[libusb1-sys 0.6.4] The pkg-config command could not be found.
[libusb1-sys 0.6.4]
[libusb1-sys 0.6.4] Most likely, you need to install a pkg-config package for your OS.
[libusb1-sys 0.6.4] Try `apt install pkg-config`, or `yum install pkg-config`,
[libusb1-sys 0.6.4] or `pkg install pkg-config`, or `apk add pkgconfig` depending on your distribution.
[libusb1-sys 0.6.4]
[libusb1-sys 0.6.4] If you've already installed it, ensure the pkg-config command is one of the
[libusb1-sys 0.6.4] directories in the PATH environment variable.
[libusb1-sys 0.6.4]
[libusb1-sys 0.6.4] If you did not expect this build to link to a pre-installed system library,
[libusb1-sys 0.6.4] then check documentation of the libusb1-sys crate for an option to
[libusb1-sys 0.6.4] build the library from source, or disable features or dependencies
[libusb1-sys 0.6.4] that require pkg-config.
[libusb1-sys 0.6.4] cargo:vendored=1
[libusb1-sys 0.6.4] cargo:static=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment