wii-u-gc-adapter icon indicating copy to clipboard operation
wii-u-gc-adapter copied to clipboard

make failed on linux mint 17

Open jdavis30 opened this issue 10 years ago • 3 comments

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 avatar May 20 '15 15:05 jdavis30

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/

jdavis30 avatar May 20 '15 15:05 jdavis30

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

ourex avatar Jun 22 '15 16:06 ourex

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.

vokama avatar Oct 30 '15 22:10 vokama