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

Consider adding installation instructions for libusb #14

Open
vipulgupta2048 opened this issue May 18, 2021 · 4 comments
Open

Consider adding installation instructions for libusb #14

vipulgupta2048 opened this issue May 18, 2021 · 4 comments

Comments

@vipulgupta2048
Copy link
Collaborator

➜  testbotsdk git:(master) ✗ npm install
Building uhubctl from https://github.com/mvp/uhubctl/archive/refs/tags/v2.4.0.tar.gz
Error: Command failed: /bin/sh -c make
fatal: not a git repository (or any of the parent directories): .git
Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found
Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found
uhubctl.c:35:10: fatal error: libusb-1.0/libusb.h: No such file or directory
   35 | #include <libusb-1.0/libusb.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:41: uhubctl] Error 1

cc  -g -O0 -Wall -Wextra -std=c99 -pedantic -DPROGRAM_VERSION=\"2.4.0\"  uhubctl.c -o uhubctl -Wl,-zrelro,-znow 
 - Ensure libusb-1.0 is installed.

Solved with --> sudo apt-get install libusb-1.0-0-dev

@Bucknalla
Copy link
Contributor

@vipulgupta2048 were you building this on an x86 platform? We basically don't expect it to be built against x86 because you're never going to run against something that isn't a balenaFin and we package a pre-compiled binary for the uhubctl which shouldnt require libusb

@vipulgupta2048
Copy link
Collaborator Author

Yes. We have to consider the possibility of folks building/developing testbotsdk on x86. I couldn't do an NPM install for adding a new package to the package.json because of the preinstall step of installing uhubctl

@vipulgupta2048
Copy link
Collaborator Author

This is still an issue and comes up when installing Leviathan on x86 systems.

@Bucknalla
Copy link
Contributor

@vipulgupta2048 I'll open a PR to address this

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