zurachu / isd_for_linux

Linux, BSD, macOS で P/ECE と通信するコマンドラインツール
5 stars 2 forks source link

Building in 2021: libusb requirement not met #25

Closed gingerbeardman closed 3 years ago

gingerbeardman commented 3 years ago

i install libusb today

$ brew install libusb
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/manifests/1.0.24
Already downloaded: /Volumes/External/Users/matt/Library/Caches/Homebrew/downloads/a742820e4e57061f1c9699d362d6562c0f686e4d1f4b7f61a544164364b2ec42--libusb-1.0.24.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/blobs/sha256:74e0067e968ddbea31e07
Already downloaded: /Volumes/External/Users/matt/Library/Caches/Homebrew/downloads/a5a41322ae18f5fd6cfc02d16de385c7e8311641ca5ee81bf39f4ced65ccb5e6--libusb--1.0.24.big_sur.bottle.tar.gz
==> Pouring libusb--1.0.24.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/libusb/1.0.24: 22 files, 516.7KB

next i

$ autoreconf -i
$ ./configure && make
...
checking for libusb-1.0 >= 1.0.0... no
configure: error: Package requirements (libusb-1.0 >= 1.0.0) were not met:

No package 'libusb-1.0' found

How do I satisfy libusb requirement? Thanks!

zurachu commented 3 years ago

Umm... I couldn't reproduce.

$ brew install libusb
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/manifests/1.0.24
Already downloaded: /Users/zurachu/Library/Caches/Homebrew/downloads/a742820e4e57061f1c9699d362d6562c0f686e4d1f4b7f61a544164364b2ec42--libusb-1.0.24.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/blobs/sha256:1c40f644507
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring libusb--1.0.24.arm64_big_sur.bottle.tar.gz
🍺  /opt/homebrew/Cellar/libusb/1.0.24: 22 files, 560.5KB

$ autoreconf -i
$ ./configure
...
checking for libusb-1.0 >= 1.0.0... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
autch commented 3 years ago

works for me in Big Sur 11.4, Intel MacBook

chiwa:isd_for_linux autch$ brew install libusb | cat
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/manifests/1.0.24
Already downloaded: /Users/autch/Library/Caches/Homebrew/downloads/a742820e4e57061f1c9699d362d6562c0f686e4d1f4b7f61a544164364b2ec42--libusb-1.0.24.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/blobs/sha256:74e0067e968ddbea31e070885ae86bc1db5c66fd157588e84576e653e62894c8
Already downloaded: /Users/autch/Library/Caches/Homebrew/downloads/a5a41322ae18f5fd6cfc02d16de385c7e8311641ca5ee81bf39f4ced65ccb5e6--libusb--1.0.24.big_sur.bottle.tar.gz
==> Pouring libusb--1.0.24.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/libusb/1.0.24: 22 files, 516.7KB
chiwa:isd_for_linux autch$ autoreconf -i 
chiwa:isd_for_linux autch$ ./configure 
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for memset... yes
checking for strtol... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libusb-1.0 >= 1.0.0... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
chiwa:isd_for_linux autch$ make 
g++ -DPACKAGE_NAME=\"isd\ for\ Linux\" -DPACKAGE_TARNAME=\"isd-for-linux\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"isd\ for\ Linux\ 0.01\" -DPACKAGE_BUGREPORT=\"http://github.com/zurachu/isd_for_linux\" -DPACKAGE_URL=\"\" -DPACKAGE=\"isd-for-linux\" -DVERSION=\"0.01\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -I.    -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2 -MT isd.o -MD -MP -MF .deps/isd.Tpo -c -o isd.o isd.cpp
mv -f .deps/isd.Tpo .deps/isd.Po
g++ -DPACKAGE_NAME=\"isd\ for\ Linux\" -DPACKAGE_TARNAME=\"isd-for-linux\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"isd\ for\ Linux\ 0.01\" -DPACKAGE_BUGREPORT=\"http://github.com/zurachu/isd_for_linux\" -DPACKAGE_URL=\"\" -DPACKAGE=\"isd-for-linux\" -DVERSION=\"0.01\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -I.    -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2 -MT piecedev.o -MD -MP -MF .deps/piecedev.Tpo -c -o piecedev.o piecedev.cpp
mv -f .deps/piecedev.Tpo .deps/piecedev.Po
g++ -DPACKAGE_NAME=\"isd\ for\ Linux\" -DPACKAGE_TARNAME=\"isd-for-linux\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"isd\ for\ Linux\ 0.01\" -DPACKAGE_BUGREPORT=\"http://github.com/zurachu/isd_for_linux\" -DPACKAGE_URL=\"\" -DPACKAGE=\"isd-for-linux\" -DVERSION=\"0.01\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -I.    -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2 -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o debug.cpp
mv -f .deps/debug.Tpo .deps/debug.Po
g++ -DPACKAGE_NAME=\"isd\ for\ Linux\" -DPACKAGE_TARNAME=\"isd-for-linux\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"isd\ for\ Linux\ 0.01\" -DPACKAGE_BUGREPORT=\"http://github.com/zurachu/isd_for_linux\" -DPACKAGE_URL=\"\" -DPACKAGE=\"isd-for-linux\" -DVERSION=\"0.01\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -I.    -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2 -MT piecefat.o -MD -MP -MF .deps/piecefat.Tpo -c -o piecefat.o piecefat.cpp
mv -f .deps/piecefat.Tpo .deps/piecefat.Po
g++ -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2   -o isd isd.o piecedev.o debug.o piecefat.o -L/usr/local/Cellar/libusb/1.0.24/lib -lusb-1.0 
g++ -DPACKAGE_NAME=\"isd\ for\ Linux\" -DPACKAGE_TARNAME=\"isd-for-linux\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"isd\ for\ Linux\ 0.01\" -DPACKAGE_BUGREPORT=\"http://github.com/zurachu/isd_for_linux\" -DPACKAGE_URL=\"\" -DPACKAGE=\"isd-for-linux\" -DVERSION=\"0.01\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -I.    -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2 -MT mem.o -MD -MP -MF .deps/mem.Tpo -c -o mem.o mem.cpp
mv -f .deps/mem.Tpo .deps/mem.Po
g++ -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2   -o mem mem.o piecedev.o debug.o -L/usr/local/Cellar/libusb/1.0.24/lib -lusb-1.0 
chiwa:isd_for_linux autch$ 
autch commented 3 years ago

still unreproducible in Big Sur 11.5.2, Intel Mac

chiwa:isd_for_linux autch$ brew install libusb 
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/manifests/1.0.24
Already downloaded: /Users/autch/Library/Caches/Homebrew/downloads/a742820e4e57061f1c9699d362d6562c0f686e4d1f4b7f61a544164364b2ec42--libusb-1.0.24.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/blobs/sha256:74e0067e968ddbea31e070885ae86bc1db5c66fd157588e84576e653e62894c8
Already downloaded: /Users/autch/Library/Caches/Homebrew/downloads/a5a41322ae18f5fd6cfc02d16de385c7e8311641ca5ee81bf39f4ced65ccb5e6--libusb--1.0.24.big_sur.bottle.tar.gz
==> Pouring libusb--1.0.24.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/libusb/1.0.24: 22 files, 516.7KB
chiwa:isd_for_linux autch$ autoreconf -i 
chiwa:isd_for_linux autch$ ./configure
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for inline... inline
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for memset... yes
checking for strtol... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libusb-1.0 >= 1.0.0... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
chiwa:isd_for_linux autch$ make
g++ -DPACKAGE_NAME=\"isd\ for\ Linux\" -DPACKAGE_TARNAME=\"isd-for-linux\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"isd\ for\ Linux\ 0.01\" -DPACKAGE_BUGREPORT=\"http://github.com/zurachu/isd_for_linux\" -DPACKAGE_URL=\"\" -DPACKAGE=\"isd-for-linux\" -DVERSION=\"0.01\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -I.    -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2 -MT isd.o -MD -MP -MF .deps/isd.Tpo -c -o isd.o isd.cpp
mv -f .deps/isd.Tpo .deps/isd.Po
g++ -DPACKAGE_NAME=\"isd\ for\ Linux\" -DPACKAGE_TARNAME=\"isd-for-linux\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"isd\ for\ Linux\ 0.01\" -DPACKAGE_BUGREPORT=\"http://github.com/zurachu/isd_for_linux\" -DPACKAGE_URL=\"\" -DPACKAGE=\"isd-for-linux\" -DVERSION=\"0.01\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -I.    -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2 -MT piecedev.o -MD -MP -MF .deps/piecedev.Tpo -c -o piecedev.o piecedev.cpp
mv -f .deps/piecedev.Tpo .deps/piecedev.Po
g++ -DPACKAGE_NAME=\"isd\ for\ Linux\" -DPACKAGE_TARNAME=\"isd-for-linux\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"isd\ for\ Linux\ 0.01\" -DPACKAGE_BUGREPORT=\"http://github.com/zurachu/isd_for_linux\" -DPACKAGE_URL=\"\" -DPACKAGE=\"isd-for-linux\" -DVERSION=\"0.01\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -I.    -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2 -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o debug.cpp
mv -f .deps/debug.Tpo .deps/debug.Po
g++ -DPACKAGE_NAME=\"isd\ for\ Linux\" -DPACKAGE_TARNAME=\"isd-for-linux\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"isd\ for\ Linux\ 0.01\" -DPACKAGE_BUGREPORT=\"http://github.com/zurachu/isd_for_linux\" -DPACKAGE_URL=\"\" -DPACKAGE=\"isd-for-linux\" -DVERSION=\"0.01\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -I.    -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2 -MT piecefat.o -MD -MP -MF .deps/piecefat.Tpo -c -o piecefat.o piecefat.cpp
mv -f .deps/piecefat.Tpo .deps/piecefat.Po
g++ -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2   -o isd isd.o piecedev.o debug.o piecefat.o -L/usr/local/Cellar/libusb/1.0.24/lib -lusb-1.0 
g++ -DPACKAGE_NAME=\"isd\ for\ Linux\" -DPACKAGE_TARNAME=\"isd-for-linux\" -DPACKAGE_VERSION=\"0.01\" -DPACKAGE_STRING=\"isd\ for\ Linux\ 0.01\" -DPACKAGE_BUGREPORT=\"http://github.com/zurachu/isd_for_linux\" -DPACKAGE_URL=\"\" -DPACKAGE=\"isd-for-linux\" -DVERSION=\"0.01\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -I.    -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2 -MT mem.o -MD -MP -MF .deps/mem.Tpo -c -o mem.o mem.cpp
mv -f .deps/mem.Tpo .deps/mem.Po
g++ -g -Wall -DNDEBUG -I/usr/local/Cellar/libusb/1.0.24/include/libusb-1.0 -g -O2   -o mem mem.o piecedev.o debug.o -L/usr/local/Cellar/libusb/1.0.24/lib -lusb-1.0 
chiwa:isd_for_linux autch$ 
gingerbeardman commented 3 years ago

I've only tried so far on Big Sur.

I have an old Mojave laptop I will try tomorrow.

checking for libusb-1.0 >= 1.0.0... no
configure: error: Package requirements (libusb-1.0 >= 1.0.0) were not met:

No package 'libusb-1.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libusb_CFLAGS
and libusb_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I'm wondering why?

gingerbeardman commented 3 years ago

Success!

export PKG_CONFIG_PATH=/usr/local/Cellar/libusb/1.0.24/lib/pkgconfig/    

Then pkg-config can find libusb, and configure can complete.

No idea why this is needed.

autch commented 3 years ago

pkg-config is also provided by Homebrew, I (and maybe @zurachu) am using this one:

$ brew info pkg-config
pkg-config: stable 0.29.2 (bottled)
Manage compile and link flags for libraries
https://freedesktop.org/wiki/Software/pkg-config/
/usr/local/Cellar/pkg-config/0.29.2_3 (11 files, 623.8KB) *
  Poured from bottle on 2020-11-28 at 04:01:56
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/pkg-config.rb
License: GPL-2.0-or-later
==> Analytics
install: 177,908 (30 days), 540,871 (90 days), 2,619,677 (365 days)
install-on-request: 24,121 (30 days), 72,254 (90 days), 373,904 (365 days)
build-error: 0 (30 days)
$ pkg-config --variable pc_path pkg-config
/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.15
gingerbeardman commented 3 years ago
$ brew info pkg-config
pkg-config: stable 0.29.2 (bottled)
Manage compile and link flags for libraries
https://freedesktop.org/wiki/Software/pkg-config/
/usr/local/Cellar/pkg-config/0.29.2_3 (11 files, 623.6KB) *
  Poured from bottle on 2020-05-06 at 18:23:32
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/pkg-config.rb
License: GPL-2.0-or-later
==> Analytics
install: 177,908 (30 days), 540,871 (90 days), 2,619,677 (365 days)
install-on-request: 24,121 (30 days), 72,254 (90 days), 373,904 (365 days)
build-error: 0 (30 days)
$ pkg-config --variable pc_path pkg-config
/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig