之前在Ubuntu下正常安装了,后来重装系统却出现了如下问题:主要是daemonize 函数的原因。
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.2.0-34-generic/build M=/home/Downloads/tp-link-TL-WN725N-driver_linux_install/8188eu_USB_linux/driver/rtl8188eu modules</span>make[1]: Entering directory '/usr/src/linux-headers-4.2.0-34-generic'
CC [M] /home/Downloads/tp-link-TL-WN725N-driver_linux_install/8188eu_USB_linux/driver/rtl8188eu/core/rtw_cmd.o
In file included from /home/Downloads/tp-link-TL-WN725N-driver_linux_install/8188eu_USB_linux/driver/rtl8188eu/core/rtw_cmd.c:23:0:
/home/Downloads/tp-link-TL-WN725N-driver_linux_install/8188eu_USB_linux/driver/rtl8188eu/include/osdep_service.h: In function ‘thread_enter’:
/home/Downloads/tp-link-TL-WN725N-driver_linux_install/8188eu_USB_linux/driver/rtl8188eu/include/osdep_service.h:1397:2: error: implicit declaration of function ‘daemonize’ [-Werror=implicit-function-declaration]
daemonize("%s", name);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/Downloads/tp-link-TL-WN725N-driver_linux_install/8188eu_USB_linux/driver/rtl8188eu/core/rtw_cmd.o' failed
make[2]: *** [/home/Downloads/tp-link-TL-WN725N-driver_linux_install/8188eu_USB_linux/driver/rtl8188eu/core/rtw_cmd.o] Error 1
Makefile:1398: recipe for target '_module_/home/Downloads/tp-link-TL-WN725N-driver_linux_install/8188eu_USB_linux/driver/rtl8188eu' failed
make[1]: *** [_module_/home/Downloads/tp-link-TL-WN725N-driver_linux_install/8188eu_USB_linux/driver/rtl8188eu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-34-generic'
Makefile:582: recipe for target 'modules' failed
make: *** [modules] Error 2
解决方案:
git clone https://github.com/dz0ny/rt8192cu.git
cd rt8192cu
make
sudo make install
无线网卡再次可以使用了。