Skip to content

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

Open
@TMaxElectronics

Description

@TMaxElectronics

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions