我需要安装wpa_supplicant,该如何安装呢?
我应该获取wpa_supplicant的源代码并将其放在Linux树的某个地方吗?哪里?
跟随这些指示
在我的VM上安装了Netlink协议库套件,现在试图交叉编译和安装iw
wget https://www.kernel.org/pub/software/network/iw/iw-3.17.tar.gz
tar -xzf iw-3.17.tar.gz
cd iw-3.17/
export PKG_CONFIG_PATH=/usr/arm-linux-gnueabi/lib/pkgconfig
export CC=arm-linux-gnueabi-gcc得到这个错误
vagrant@vagrant:~/iw-3.17$ make
CC info.o
info.c: In function 'print_phy_handler':
info.c:518: error: implicit declaration of function 'htole16' <===
make: *** [info.o] Error 1我能找到的只有这里
不知道怎么继续..。
试过这个
wget http://hostap.epitest.fi/releases/wpa_supplicant-2.2.tar.gz
tar -xzf wpa_supplicant-2.2.tar.gz
cd wpa_supplicant-2.2/wpa_supplicant
cp defconfig .config
make CC=arm-linux-gnueabi-gcc
make install DESTDIR=/home/export/rootfs但还是会犯这些错误
发布于 2014-12-26 23:11:53
使用FriendlyARM toolschain中提供的编译器(从friendlARM ftp服务器下载):
导出CC=/opt/FriendlyARM/toolschain/4.5.1/bin/arm-none-linux-gnueabi-gcc
我跟踪了这些使用说明
修改后的.config如下:
CFLAGS += -I/home/vagrant/libnl-3.2.24/include
LIBS += -L/home/vagrant/libnl-3.2.24/lib
# 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注意,我必须首先编译libnl-3.2.24。
https://unix.stackexchange.com/questions/175457
复制相似问题