hostapd移植 2 7版本

2022-09-09 13:39:25 字數 1556 閱讀 3377

1. openssl交叉編譯:(選擇的版本是openssl-1.1.1.tar.gz)

編譯出 openssl 

2. libnl: 交叉編譯 (選擇的版本是libnl-3.2.25.tar.gz)

hostapd2.7的區別在於,libnl需要3.0以上版本的支援。

具體選擇哪個版本的libnl可以配置hostapd/.config

# use libnl v2.0 (or 3.0) libraries.

config_libnl20=y

# use libnl 3.2 libraries (if this is selected, config_libnl20 is ignored)

#config_libnl32=y

解壓安裝包,建乙個__install資料夾用來儲存安裝的庫檔案

# mkdir __install

#./configure --host=arm cc=arm-himix100-linux-gcc --prefix=$(pwd)/__install --enable-static

#make & make install

就可以看到__install/lib/ 下面有生成的libnl靜態庫:

3. hostapd2.7版本的編譯參考:

注意:package libnl-3.0 was not found in the pkg-config search path.

perhaps you should add the directory containing `libnl-3.0.pc'

to the pkg_config_path environment variable

no package 'libnl-3.0' found

則需要將libnl-3.0.pc所在目錄新增到pkg_config_path變數中,先用如下命令檢視所在目錄:

如我目前的路徑是:/source/libnl-3.2.25/__install/lib/pkgconfig

然後新增到pkg_config_path變數,命令如下:

export pkg_config_path=/source/libnl-3.2.25/__install/lib/pkgconfig/:$pkg_config_path

4. 關於裁剪:

hostapd的裁剪,可以配置/hostapd2.7/hostapd/.config 檔案,增減相關的功能。

我的配置:

該配置可以直接不用鏈結openssl庫,只需要鏈結libnl就可以編譯成功。

1 config_driver_nl80211=y

2 config_libnl20=y

3 config_ieee80211n=y

4 config_wps=y

5 config_pkcs12=y

6 config_tls=internal

7 config_internal_libtommath=y

Python2 7版本下easygui安裝問題

2 將easygui.py檔案放到乙個資料夾內,我將這個資料夾取名為easygui。3 將easygui資料夾放到python資料夾下的lib site packages 下,即 c python27 lib site packages。此時,easygui.py存在於c python27 lib ...

Mysql資料遷移 8 0版本至5 7版本

寫這篇帖子的原因 昨天在本地將資料遷移完後,部署至生產環境報錯,資料匯入的時候發生問題。為了避免踩雷所以在本地裝的mysql 5.7,但很奇怪不知道咋回事變成了8.0版本。於是乎在遷移至生產環境是出現了字符集的問題。之前在網上也搜了不少帖子,甚至不知道如何去搜。搜出來的內容沒有很具體到版本。有在命令...

1 5 版本編號

在深入程式設計之前,我們應當對 linux 使用的版本編號方法和本書涉及的版本做些說明.首先,注意的是在 linux 系統中使用的每乙個軟體包有自己的發行版本號,它們之間存在相互依賴性 你需要乙個包的特別的版本來執行另外乙個包的特別版本.linux 發布的建立者常常要處理匹配軟體包的繁瑣問題,這樣使...