ToadKing/wii-u-gc-adapter

make failed on linux mint 17

Opened this issue · 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.

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 commented

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

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.