1. wpa_supplicant的编译需要用到的3个源码包, 分别是wpa_supplicant, openssl, libnl
wpa_supplicant的下载地址:http://w1.fi/releases/
openssl的下载地址:https://www.openssl.org/so
libnl的下载地址:http://www.infradead.org/~tgr/libnl/files/
2. x86编译
后面编译 wpa_supplicant 2.6时报错,"can't find -lnl",所以编译 libnl-1.1.4。
./configure --prefix=/home/henry/wpa/libnl-1.1.4/out
先装依赖库
sudo apt-get install bison
sudo apt-get install flex
./configure --prefix=/home/henry/wpa/libnl-1.1.4/out
make
make check
make install
// to install the API documentation:
mkdir -vp /home/henry/wpa/libnl-1.1.4/out/libnl/doc
tar -xf ../libnl-doc-1.1.4.tar.gz --strip-components=1 --no-same-owner -C /home/henry/wpa/libnl-1.1.4/out/libnl/doc
openssl的编译:
./config share