wpa_supplicant移植

懵懂的女人 提交于 2019-12-01 15:36:12
wpa_supplicant移植:
三个库文件:
libnl-3.2.27
openssl-1.0.2h
wpa_supplicant-2.5

libnl移植:
[fulinux@ubuntu libnl-3.2.27]$ ./configure --host=arm-linux-gnueabi --prefix=$HOME/wifiManager/install
[fulinux@ubuntu libnl-3.2.27]$ make -j4 && make install

openssl移植:
[fulinux@ubuntu openssl-1.0.2h]$ ./Configure linux-generic32 --cross-compile-prefix=arm-linux-gnueabi- --prefix=/usr --install-prefix=$PWD/../install
[fulinux@ubuntu openssl-1.0.2h]$ make depend
[fulinux@ubuntu openssl-1.0.2h]$ make -j4 && make install

wpa_supplicant移植:
[fulinux@ubuntu wpa_supplicant-2.5]$ cat wpa_supplicant/.config    
CC=arm-linux-gnueabi-gcc
CONFIG_BACKEND=file
CONFIG_CTRL_IFACE=y
CONFIG_DEBUG_FILE=y
CONFIG_DEBUG_SYSLOG=y
CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
CONFIG_DRIVER_NL80211=y
CONFIG_DRIVER_WEXT=y
CONFIG_DRIVER_WIRED=y
CONFIG_EAP_GTC=y
CONFIG_EAP_LEAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_OTP=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TLS=y
CONFIG_EAP_TTLS=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_LIBNL32=y
CONFIG_PEERKEY=y
CONFIG_PKCS12=y
CONFIG_SMARTCARD=y
CONFIG_WPS=y
CFLAGS += -I/home/fulinux/wifiManager/install/include
CFLAGS += -I/home/fulinux/wifiManager/install/include/libnl3
LIBS += -L/home/fulinux/wifiManager/install/lib -lssl -lcrypto
LIBS += -L/home/fulinux/wifiManager/install/lib -lcrypto
LIBS_p += -L/home/fulinux/wifiManager/install/lib

[fulinux@ubuntu wpa_supplicant-2.5]$ make -C wpa_supplicant/
[fulinux@ubuntu wpa_supplicant-2.5]$ make -C wpa_supplicant/ BINDIR=/home/fulinux/wifiManager/install/sbin LIBDIR=/home/fulinux/wifiManager/install/lib install

编译wpa_gui-qt4例程:
修改文件:wpa_supplicant/wpa_gui-qt4/wpa_gui.pro
} else {
  LIBS += -lrt
  DEFINES += CONFIG_CTRL_IFACE_UNIX
  SOURCES += ../../src/utils/os_unix.c
}
添加 LIBS += -lrt

[fulinux@ubuntu wpa_gui-qt4]$ qmake && make
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!