Build on MacOS Catalina fails due to missing FindLibUsb.cmake
TMaxElectronics opened this issue · 0 comments
TMaxElectronics commented
I'm trying to rebuild the binaries to allow usb4java to be used on MacOS again, as the libusb version usb4java is released with right now doesn't seem to work.
I have cloned this repo and tried to run "dists/darwin/build", as well as the manual process listed in the Readme. On both cmake fails with this output:
CMake Error at CMakeLists.txt:8 (find_package):
By not providing "FindLibUsb.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "LibUsb", but
CMake did not find one.
Could not find a package configuration file provided by "LibUsb" with any
of the following names:
LibUsbConfig.cmake
libusb-config.cmake
Add the installation prefix of "LibUsb" to CMAKE_PREFIX_PATH or set
"LibUsb_DIR" to a directory containing one of the above files. If "LibUsb"
provides a separate development package or SDK, be sure it has been
installed.
I have installed the following packages via homebrew:
openJDK, cmake, gcc, libusb, automake, libtool
Is there something I'm doing wrong the file should be found in the modules folder right?