Menu

#118 Building DFU on OSX error configure: error: *** Required libusb-1.0 >= 1.0.0 not installed *

none
invalid
nobody
None
2021-04-14
2021-04-13
No

for me the ./configure command resulted in this error message:

configure: error: *** Required libusb-1.0 >= 1.0.0 not installed *

it turns out there are two pkg-config tools installed, one via 'port' and one via 'brew'

which pkg-config
/opt/sw/bin/pkg-config

pkg-config --list-all | grep libusb

/opt/local/bin/pkg-config --list-all | grep libusb
libusb-1.0 libusb-1.0 - C API for USB device access from Linux, Mac OS X, Windows, OpenBSD/NetBSD and Solaris userspace

Running this results in working configure script:
PKG_CONFIG=/usr/local/bin/pkg-config ./configure

Discussion

  • Tormod Volden

    Tormod Volden - 2021-04-14
    • status: open --> invalid
     
  • Tormod Volden

    Tormod Volden - 2021-04-14

    Your problem is that you have /opt/sw/bin before /usr/local/bin in your path. I am not sure how a mix of ports and brew is supposed to be set up, but this is nothing specific to dfu-util.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB