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

libusb.h installs to libusb-1.0/libusb.h and can't be found #15

Open
packocrayons opened this issue Oct 3, 2017 · 1 comment
Open

Comments

@packocrayons
Copy link

packocrayons commented Oct 3, 2017

This is a platform-specific issue, tested on Mint 18 and Ubuntu 16. Workaround is to change the include directory in capture/interface_cc2531.c to the libusb install directory (found using locate libusb.h).

Error comes up in make run, with libusb.h: No such file or directory

@mgargiullo
Copy link

Short term fix.

in capture/

Just before the line find_package(LIBUSB REQUIRED) add:

find_path(LIBUSB_INCLUDE_DIR NAMES libusb.h PATH_SUFFIXES "include" "libusb" "libusb-1.0") find_library(LIBUSB_LIBRARY NAMES usb PATH_SUFFIXES "lib" "lib32" "lib64")

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

2 participants