wpa_supplicant2.2 移植


一、编译openssl
1、运行
./Configure no-asm linux-armv4 shared  --prefix=/home/a_tu/demo/new_cross/openssl/
2、修改Makefile
CC= arm-linux-gnueabihf-gcc
AR= arm-linux-gnueabihf-ar $(ARFLAGS) r
RANLIB= arm-linux-gnueabihf-ranlib
NM= arm-linux-gnueabihf-nm
TAR= arm-linux-gnueabihf-tar
MAKEDEPPROG= arm-linux-gnueabihf-gcc


2、 make
                 from bss_file.c:86:
/home/a_tu/demo/new_cross/host_builtroot_latest/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/features.h:219:5: error: #error It appears you have defined _FILE_OFFSET_BITS=64. Unfortunately, uClibc was built without large file support enabled.
 #   error It appears you have defined _FILE_OFFSET_BITS=64.  Unfortunately, \
     ^
In file included from /home/a_tu/demo/new_cross/host_builtroot_latest/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/stdio.h:72:0,
                 from bss_file.c:86:
/home/a_tu/demo/new_cross/host_builtroot_latest/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/bits/uClibc_stdio.h:61:2: error: #error Sorry... uClibc was built without large file support!
 #error Sorry... uClibc was built without large file support!
  ^
In file included from bss_file.c:86:0:
/home/a_tu/demo/new_cross/host_builtroot_latest/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/stdio.h:83:1: error: unknown type name ‘__STDIO_fpos64_t’
 typedef __STDIO_fpos64_t fpos_t;
 ^
make[2]: *** [bss_file.o] 错误 1
make[2]:正在离开目录 `/home/a_tu/demo/new_cross/openssl-1.0.1e/crypto/bio'
make[1]: *** [subdirs] 错误 1
make[1]:正在离开目录 `/home/a_tu/demo/new_cross/openssl-1.0.1e/crypto'
make: *** [build_crypto] 错误 1
出现以上错误
打开 crypto/bio/bss_file.c 
注释掉 _FILE_OFFSET_BITS=64
错误解决
3、
make install




二、编译wpa_supplicant2.2
跳到wpa_supplicant 目录
 cp defconfig .config
1、修改 .config
CC =arm-linux-gnueabihf-gcc
CFLAGS += -I/home/a_tu/demo/new_cross/openssl/include
LIBS += -L/home/a_tu/demo/new_cross/openssl/lib




2、编译
make 
出现错误   ../src/drivers/driver_nl80211.c:19:31: fatal error: netlink/genl/genl.h: 没有那个文件或目录


把 .config  这个选项注释掉 #CONFIG_DRIVER_NL80211=y
再次 编译
出现错误
home/a_tu/git/pospal/tools/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
make: *** [wpa_passphrase] 错误 1
修改  .config  CC =arm-linux-gnueabihf-gcc -L/home/a_tu/demo/new_cross/openssl/lib
再次 编译
编译通过
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值