hostapd移植步骤
2017-02-23 15:11
232 查看
1、首先从官网上下载
2、进入cd hostapd-2.0/hostapd
3、cp defconfig .config
4、修改Makefile
vim Makefile
修改CC=arm-linux-gcc
5、修改.config
vim .config
#CONFIG_LIBNL32=y 把#去掉
6、make
7、出错,在.config 加
CONFIG_DRIVER_NL80211=y
CONFIG_LIBNL32=y
CFLAGS += -I/home/ke/work/AP/libnl-3.2.25/tmp/include/libnl3
LIBS += -L/home/ke/work/AP/libnl-3.2.25/tmp/lib
CFLAGS += -I/home/ke/work/AP/openssl-1.1.0e/tmp/include
LIBS += -L/home/ke/work/AP/openssl-1.1.0e/tmp/lib
8、输入make进行编译。
如果出现如下错误提示:
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变量中,先用如下命令查看所在目录:
# find / -name "libnl-3.0.pc"
./work/AP/libnl-3.2.25/tmp/lib/pkgconfig/libnl-3.0.pc
然后添加到PKG_CONFIG_PATH变量,命令如下:
export PKG_CONFIG_PATH=~/work/AP/libnl-3.2.25/tmp/lib/pkgconfig/libnl-3.0.pc/:$PKG_CONFIG_PATH
/********************************************************************************/
出错要的include及用到的lib
http://www.openssl.org/source/
tar xzf openssl-1.0.1d.tar.gz
cd openssl-1.0.1d/
./Configure shared no-asm --prefix=$PWD/tmp linux-elf
如果有出错,打开vim Makefile查看是不是正确的交叉编译器
这个是配置后./Configure shared no-asm --prefix=$PWD/tmp linux-elf正确的
PLATFORM=linux-elf
CROSS_COMPILE= /opt/FriendlyARM/toolchain/4.9.3/bin/arm-linux-
MAKEDEPEND=/opt/FriendlyARM/toolchain/4.9.3/bin/arm-linux-gcc
make && make install
http://www.infradead.org/~tgr/libnl/
libnl-3.2.25.tar.gz
tar xzf libnl-3.2.25.tar.gz
./configure --host=arm-linux --prefix=$PWD/tmp
make && make install
git clone git://w1.fi/srv/git/hostap.git
2、进入cd hostapd-2.0/hostapd
3、cp defconfig .config
4、修改Makefile
vim Makefile
修改CC=arm-linux-gcc
5、修改.config
vim .config
#CONFIG_LIBNL32=y 把#去掉
6、make
7、出错,在.config 加
CONFIG_DRIVER_NL80211=y
CONFIG_LIBNL32=y
CFLAGS += -I/home/ke/work/AP/libnl-3.2.25/tmp/include/libnl3
LIBS += -L/home/ke/work/AP/libnl-3.2.25/tmp/lib
CFLAGS += -I/home/ke/work/AP/openssl-1.1.0e/tmp/include
LIBS += -L/home/ke/work/AP/openssl-1.1.0e/tmp/lib
8、输入make进行编译。
如果出现如下错误提示:
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变量中,先用如下命令查看所在目录:
# find / -name "libnl-3.0.pc"
./work/AP/libnl-3.2.25/tmp/lib/pkgconfig/libnl-3.0.pc
然后添加到PKG_CONFIG_PATH变量,命令如下:
export PKG_CONFIG_PATH=~/work/AP/libnl-3.2.25/tmp/lib/pkgconfig/libnl-3.0.pc/:$PKG_CONFIG_PATH
/********************************************************************************/
出错要的include及用到的lib
http://www.openssl.org/source/
tar xzf openssl-1.0.1d.tar.gz
cd openssl-1.0.1d/
./Configure shared no-asm --prefix=$PWD/tmp linux-elf
如果有出错,打开vim Makefile查看是不是正确的交叉编译器
这个是配置后./Configure shared no-asm --prefix=$PWD/tmp linux-elf正确的
PLATFORM=linux-elf
CROSS_COMPILE= /opt/FriendlyARM/toolchain/4.9.3/bin/arm-linux-
MAKEDEPEND=/opt/FriendlyARM/toolchain/4.9.3/bin/arm-linux-gcc
make && make install
http://www.infradead.org/~tgr/libnl/
libnl-3.2.25.tar.gz
tar xzf libnl-3.2.25.tar.gz
./configure --host=arm-linux --prefix=$PWD/tmp
make && make install
相关文章推荐
- hostapd移植步骤
- STM32 USB-HID通信移植步骤
- yaffs文件系统在2.6内核上的移植--操作步骤(转载)
- 在linux系统上搭建QT移植mini2440步骤
- ARM+LINUX移植攻略(二) U-boot-2009.08移植TE2440II开发板--移植步骤
- 嵌入式系统移植步骤详解
- Dynamics CRMのアップデートインポートツール移植的准备步骤与有用的网页
- u-boot移植步骤详解
- 【转】FFMPEG 库移植到 VC 需要的步骤
- 【原创】车载实时路况信息接收终端移植于Smart210开发板---步骤3之Ubuntu12.04的QT安装和配置
- uCOS-II的移植步骤
- 移植Andorid4.0.4 - 步骤及问题汇总
- [STemWin教程入门篇]第二期:emWin5.xx的详细移植步骤
- tslib 编译移植步骤
- 把SDL图形库移植到开发板上的操作步骤(开发板的型号为:6410)
- 移植Andorid4.0.4 - 步骤及问题汇总
- Windows CE驱动N枪拍案惊奇系列 之 基于Wince5.0的DM9000A的驱动分析和移植步骤
- 移植ANDROID系统到MINI2440的步骤
- 基于MT6752/32平台 Android L版本驱动移植步骤
- u-boot 移植步骤详解