windows pkg-config libusb libusb.pc

  • Installed pkg-config-lite
  • Set %PATH% to pkg-config-lite-0.28-1\bin
  • Set %PKG_CONFIG_PATH% to pkg-config-lite-0.28-1\libs I created
  • Verified pkg-config was working using pkg-config -v
  • Donwloaded libusb for Windows by clicking Downloads > Latest Windows binaries
  • Created a libusb.pc file in the PKG_CONFIG_PATH directory:
# libusb.pc

prefix=C:/Users/Tom/Desktop/pkg-config-lite-0.28-1/libs/libusb
exec_prefix=${prefix}
includedir=${prefix}/include/libusb-1.0
libdir=${exec_prefix}/MinGW64/dll # `/dll`?

Name: libusb
Description: libusb
Version: 1.0
Cflags: -I${includedir}
Libs: -L${libdir} -llibusb-1.0

windows pkg-config libusb libusb.pc

上一篇:win7/8/10系统好用的视频剪辑软件对比


下一篇:win10安装 vmware pro 和ubuntu 18.04