溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

在ubuntu上編譯 wpa_supplicant-2.6

發布時間:2020-06-21 16:10:58 來源:網絡 閱讀:1061 作者:FrankNie0101 欄目:編程語言

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 時報錯,"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

  1. openssl
    ./config shared --prefix=/home/fnie/wpa/out/ssl/prefix --openssldir=/home/fnie/wpa/out/ssl/configuration
    make
    make test
    make install

  2. wpa_supplicant-2.6
    cd ~/wpa/wpa_supplicant-2.6/wpa_supplicant
    cp defconfig .config
    修改配置文件 .config,在"#Uncomment following two linee and fix..."下增加如下語句,用來添加openssl和libnl的頭文件和庫文件目錄,更新編譯鏈接環境變量:
    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

    執行 make 進行編譯,成功后生成三個目標文件 wpa_supplicant, wpa_cli, wpa_passphrase 。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女