Package libusb was not found in the pkg-config search path

徘徊边缘 提交于 2019-12-02 06:45:09

Just run:

pkg-config --cflags --libs /usr/local/Cellar/libusb/1.0.20/lib/pkgconfig/libusb-1.0.pc

I have the the same problem. This work for me (Ubuntu):

sudo apt-get install libmagickwand-dev

The problem appears to be that homebrew installs libusb with the -1.0 appended to the package and file names. So:

pkg-config --cflags --libs libusb-1.0

will find it, while:

pkg-config --cflags --libs libusb

won't. Since many ./configure and other scripts are looking for it without the -1.0 appended, they fail. To me, this looks like a bug in the homebrew package. Manually creating a non-1.0 named version worked for me, but it's not a very elegant solution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!