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
三个库文件:
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
来源:CSDN
作者:fulinux
链接:https://blog.csdn.net/sonbai/article/details/52945683