![构建 rtl8723 驱动程序时出现问题](https://linux22.com/image/851060/%E6%9E%84%E5%BB%BA%20rtl8723%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98.png)
我们都知道RTL8723无线网卡有些人成功安装了,但我不行。我有 Ubuntu 12.10。当我make
在终端中执行此操作时,它给出了此错误
make -C /lib/modules/3.8.0-37-generic/build M=/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012 modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-37-generic'
CC [M] /home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/base.o
In file included from /home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/base.c:39:0:
/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/pci.h:245:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl_pci_probe’
/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/base.c: In function ‘_rtl_init_mac80211’:
/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/base.c:320:6: error: ‘IEEE80211_HW_BEACON_FILTER’ undeclared (first use in this function)
/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/base.c:320:6: note: each undeclared identifier is reported only once for each function it appears in
/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/base.c: In function ‘rtl_action_proc’:
/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/base.c:870:25: error: ‘RX_FLAG_MACTIME_MPDU’ undeclared (first use in this function)
/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/base.c: In function ‘rtl_send_smps_action’:
/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/base.c:1432:16: error: ‘struct <anonymous>’ has no member named ‘sta’
make[2]: *** [/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012/base.o] Error 1
make[1]: *** [_module_/home/adrian/Desktop/rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-37-generic'
make: *** [all] Error 2
答案1
我也遇到了同样的问题,解决方法很简单,只需升级内核,你需要最新的内核版本,我建议 3.12
- 到这里:http://kernel.ubuntu.com/~kernel-ppa/mainline/
- 下载 3 个(也可能是 4 个)deb 文件到某个文件夹:
linux-headers-VERSION-NUMBER_all.deb
linux-headers-VERSION-NUMBER_amd64.deb
linux-镜像-版本-NUMBER_amd64.deb
linux-image-extra-VERSION-NUMBER_amd64.deb # 如果可用
3.使用您使用的任何包管理器前端安装 debs(gdebi 还在吗?),或者使用以下命令:
cd /路径/到/文件夹/你/放置/debs的位置
sudo dpkg -i *.deb