wpa_supplicant 交叉編譯
交叉編譯 wpa_supplicant
指定交叉編譯環(huán)境:
CC=arm-linux-xxxxx-gcc
運(yùn)行錯(cuò)誤 :
wlan0: Unsupported driver 'nl80211'
在.config中添加支持nl80211
CONFIG_DRIVER_NL80211=y
編譯錯(cuò)誤:
driver_nl80211.c:6182:23: error: too few arguments to function 'genl_ctrl_alloc_cache'
在.config中添加libnl并且指定libnl的庫和頭文件路徑
CFLAGS += -I../../libnl-3.2.25/include
LIBS += -L ../../libnl-3.2.25/lib/.libs
CONFIG_LIBNL20=y

浙公網(wǎng)安備 33010602011771號(hào)