Installing wifi card driver

Hello

Whenever I try to install Tplink T2U driver i got this:

make -C UTIL / osutil
make [1]: Catalog entry ‘/ home / seba / Programs / Archer_T2U_V2_Linux / Driver / UTIL’
cp -f os / linux / Makefile.6.util / home / seba / Programs / Archer_T2U_V2_Linux / Driver / UTIL / os / linux / Makefile
make -C /lib/modules/4.14.62-1-lts/build SUBDIRS = / home / seba / Programs / Archer_T2U_V2_Linux / Driver / UTIL / os / linux modules
make [2]: Catalog entry ‘/usr/lib/modules/4.14.62-1-lts/build’
make [2]: *** There are no rules to execute the ‘modules’ object. Stop.
make [2]: Exiting the ‘/usr/lib/modules/4.14.62-1-lts/build’ directory
make [1]: *** [Makefile: 528: osutil] Error 2
make [1]: Exiting the directory ‘/ home / seba / Programs / Archer_T2U_V2_Linux / Driver / UTIL’
make: *** [Makefile: 3: all] Error 2

Tried to install through yaourt and from offical website. What Can I do?

When I installed linux headers lts:

make -C UTIL / osutil
make [1]: Catalog entry '/ home / seba / Programs / t2u / Driver / UTIL'
cp -f os / linux / Makefile.6.util / home / seba / Programs / t2u / Driver / UTIL / os / linux / Makefile
make -C /lib/modules/4.14.62-1-lts/build SUBDIRS = / home / seba / Programs / t2u / Driver / UTIL / os / linux modules
make [2]: Catalog entry '/usr/lib/modules/4.14.62-1-lts/build'
CC [M] /home/seba/Programy/t2u/Driver/UTIL/os/linux/../../os/linux/rt_usb_util.o
/home/seba/Programy/t2u/Driver/UTIL/os/linux/../../os/linux/rt_usb_util.c: In the "rausb_fill_bulk_urb" function:
/home/seba/Programy/t2u/Driver/UTIL/os/linux/../../os/linux/rt_usb_util.c:425:68: error: passing argument 6 "usb_fill_bulk_urb" from incompatible type of indicator [- Werror = incompatible-indicators-types]
usb_fill_bulk_urb (urb, dev, pipe, transfer_buffer, buffer_length, complete_fn, context);
^ ~~~~~~~~~~
In the file attached to /home/seba/Programy/t2u/Driver/UTIL/include/os/rt_linux.h:40,
from /home/seba/Programy/t2u/Driver/UTIL/include/rtmp_os.h:48,
from /home/seba/Programy/t2u/Driver/UTIL/include/rtmp_comm.h:62,
from /home/seba/Programy/t2u/Driver/UTIL/os/linux/../../os/linux/rt_usb_util.c:18:
./include/linux/usb.h:1617:25: note: expected 'usb_complete_t' {aka 'void (*) (struct urb *)'}, but the argument is of type 'USB_COMPLETE_HANDLER' {aka 'void (*) (void *) "}
usb_complete_t complete_fn,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
cc1: some warnings are treated as errors
make [3]: *** [scripts / Makefile.build: 329: /home/seba/Programy/t2u/Driver/UTIL/os/linux/../../os/linux/rt_usb_util.o] Error 1
make [2]: *** [Makefile: 1523: _module_ / home / seba / Programs / t2u / Driver / UTIL / os / linux] Error 2
brand [2]: Exiting the '/usr/lib/modules/4.14.62-1-lts/build' directory
make [1]: *** [Makefile: 528: osutil] Error 2
brand [1]: Leaving the '/ home / seba / Programs / t2u / Driver / UTIL' directory
make: *** [Makefile: 3: all] Error 2

Hello @poiseman

Have you verified that the wifi adapter is not functional without the above mentioned driver?

Would you be able to link me the source you are trying to build from and tell me the actual package name you are trying to install from the AUR?

I notice from the error output it is using the 4.14.62-1-lts kernel, is this the kernel you currently have installed?

This is likely just a mis-configured makefile issue so once I have a look at the source I should be able to offer a working solution.

I have tried to connect to my wifi without drivers but I can’t even see a list of existing networks.

Offical source: https://www.tp-link.com/en/download/Archer-T2U.html#Driver (I know that there is a different Linux kernel version but what we can do with that?)
AUR: https://aur.archlinux.org/packages/mt7610u_wifi_sta/
Tried both, the same problem.
About this kernel, I think so but I’m not sure.