Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on MacOS Catalina fails due to missing FindLibUsb.cmake #11

Open
TMaxElectronics opened this issue May 1, 2021 · 0 comments
Open

Comments

@TMaxElectronics
Copy link

TMaxElectronics commented May 1, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant