ToadKing/wii-u-gc-adapter

Package not finding libusb

MarlonCorreia opened this issue · 3 comments

I know it's not this project problem, but I'm posting here just to see if you guys can help me. I'm using Manjaro and when I try to compile the pkg from the AUR repo I get the error:


==> Starting build()...
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
cc -c -o wii-u-gc-adapter.o wii-u-gc-adapter.c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Wextra -pedantic -Wno-format -std=c99   -O2
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
wii-u-gc-adapter.c:21:10: fatal error: libusb.h: No such file or directory
   21 | #include <libusb.h>
      |          ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:16: wii-u-gc-adapter.o] Error 1

But I know I have lib installed. Output for ls -lah /usr/lib | grep libusb:

lrwxrwxrwx   1 root root    25 nov 28 16:19 libhidapi-libusb.so -> libhidapi-libusb.so.0.0.0
lrwxrwxrwx   1 root root    25 nov 28 16:19 libhidapi-libusb.so.0 -> libhidapi-libusb.so.0.0.0
-rwxr-xr-x   1 root root   37K nov 28 16:19 libhidapi-libusb.so.0.0.0
lrwxrwxrwx   1 root root    19 fev  7  2020 libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
-rwxr-xr-x   1 root root   22K fev  7  2020 libusb-0.1.so.4.4.4
lrwxrwxrwx   1 root root    19 jan 10 16:20 libusb-1.0.so -> libusb-1.0.so.0.3.0
lrwxrwxrwx   1 root root    19 jan 10 16:20 libusb-1.0.so.0 -> libusb-1.0.so.0.3.0
-rwxr-xr-x   1 root root  114K jan 10 16:20 libusb-1.0.so.0.3.0
lrwxrwxrwx   1 root root    23 jun 17  2020 libusbmuxd-2.0.so -> libusbmuxd-2.0.so.6.0.0
lrwxrwxrwx   1 root root    23 jun 17  2020 libusbmuxd-2.0.so.6 -> libusbmuxd-2.0.so.6.0.0
-rwxr-xr-x   1 root root   46K jun 17  2020 libusbmuxd-2.0.so.6.0.0
lrwxrwxrwx   1 root root    19 fev  7  2020 libusb.so -> libusb-0.1.so.4.4.4

Do you guys have any clue what could it be? If not, feel free to just close the issue. Thanks for the time =]

The compile command looks like it may not be including the correct CFLAGS. Can you post the output of pkg-config --cflags libusb-1.0?

Actually nevermind, the answer is right there: pkg-config isn't installed. Whoever made the AUR package needs to add that as a make dependency.

@ToadKing Sorry for the late response. But that was it, thanks a lot for the help and the project.