您好,登錄后才能下訂單哦!
1.1 libnl-3.4.0
./configure --prefix=/home/fnie/wpa/out/libnl --disable-static
make
make check
make install
// to install the API documentation:
mkdir -vp /home/fnie/wpa/out/libnl/doc
tar -xf ../libnl-doc-3.4.0.tar.gz --strip-components=1 --no-same-owner -C /home/fnie/wpa/out/libnl/doc
1.2 libnl-1.1-stable
后面編譯 wpa_supplicant-2.6 時(shí)報(bào)錯(cuò),"can't find -lnl",所以編譯 libnl-1.1-stable。
./configure --prefix=/home/fnie/wpa/out/libnl-1.1-stable
make
make check
make install
// to install the API documentation:
mkdir -vp /home/fnie/wpa/out/libnl/doc
tar -xf ../libnl-doc-3.4.0.tar.gz --strip-components=1 --no-same-owner -C /home/fnie/wpa/out/libnl/doc
openssl
./config shared --prefix=/home/fnie/wpa/out/ssl/prefix --openssldir=/home/fnie/wpa/out/ssl/configuration
make
make test
make install
wpa_supplicant-2.6
cd ~/wpa/wpa_supplicant-2.6/wpa_supplicant
cp defconfig .config
修改配置文件 .config,在"#Uncomment following two linee and fix..."下增加如下語句,用來添加openssl和libnl的頭文件和庫文件目錄,更新編譯鏈接環(huán)境變量:
CFLAGS += -I/home/fnie/wpa/out/ssl/prefix/include
CFLAGS += -I/home/fnie/wpa/out/libnl/include
LIBS += -L/home/fnie/wpa/out/ssl/prefix/lib
LIBS += -L/home/fnie/wpa/out/libnl/lib
LIBS += -L/home/fnie/wpa/out/libnl-1.1-stable/lib
LIBS_p += -L/home/fnie/wpa/out/ssl/prefix/lib
執(zhí)行 make 進(jìn)行編譯,成功后生成三個(gè)目標(biāo)文件 wpa_supplicant, wpa_cli, wpa_passphrase 。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。