Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This shell session says it all for me:

root@debianvm:/home/matt# echo $PKG_CONFIG_PATH
root@debianvm:/home/matt# ls $PKG_CONFIG_PATH | grep libusb-1.0
root@debianvm:/home/matt# pkg-config libusb-1.0 --cflags
Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found

Any ideas? Looks to me like the pkg-config man page lies.

share|improve this question
up vote 0 down vote accepted

I figured it out. This VM was configured to be a cross-build environment before I knew much, and I added the cross-build tools to the PATH. The stripped-down ARM version of pkg-config works differently, I guess it has a different way of finding the .pc files. Still working on that. But my main problem was solved by removing the cross toolchain from the path, so the x86 pkg-config is being looked at.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.