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

make failed on linux mint 17 #13

Open
jdavis30 opened this issue May 20, 2015 · 3 comments
Open

make failed on linux mint 17 #13

jdavis30 opened this issue May 20, 2015 · 3 comments

Comments

@jdavis30
Copy link

I downloaded the zip, unzipped it, entered the directory, and opened a terminal in said directory, typing "make". I get the following message:
"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
cc -c -o wii-u-gc-adapter.o wii-u-gc-adapter.c -Wall -Wextra -pedantic -Wno-format -std=c99 -O2
wii-u-gc-adapter.c:20:20: fatal error: libusb.h: No such file or directory
#include <libusb.h>
^
compilation terminated.
make: *** [wii-u-gc-adapter.o] Error 1
"
It appears I lack a "libusb-1.0". this is likely due to the fact that it has been replaced by "libusb-1.0-0" or libusb 1.0.17. will keep you updated.

@jdavis30
Copy link
Author

was able to install libusb by going to the main sourceforge page for the package. perhaps put this in the readme. http://sourceforge.net/projects/libusb/

@ourex
Copy link

ourex commented Jun 22, 2015

I just ran apt-get install libusb-1.0-0

@vokama
Copy link

vokama commented Oct 30, 2015

Same problem with Debian Jessie, installing libusb-1.0-0 and libusb-deb did not help, I will try to use source codes.

EDIT: apparently it just started working when I've typed "apt install libusb-1.0" and compiled the project. Before that I've deleted all libusb related packages which led to some problems, but I figured it out. Probably it's just magic. Notice that in wii-u-gc-adapter.c I've changed
#include <libusb.h>
to
#include <libusb-1.0/libusb.h>

Because, well, I've found that file at this directory. Feel free to address me anytime if this doesn't make any sence to you, my english is not that good.

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

3 participants