- 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