1.编译libnl1.1问题

In file included from addr.c:28:0:
../include/netlink-local.h: In function '__str2type':
../include/netlink-local.h:218:11: error: 'ULONG_MAX' undeclared (first use in this function)
../include/netlink-local.h:218:11: note: each undeclared identifier is reported only once for each function it appears in
../include/netlink-local.h: In function '__list_str2type':
../include/netlink-local.h:239:11: error: 'ULONG_MAX' undeclared (first use in this function)
make[2]: *** [addr.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

修改方法:

在 ./include/netlink-local.h 中增加头文件

#include <limits.h>

2.修改wpa_supplicant 2.2 Makefile

修改Makefile之前,需要执行config的拷贝

cp defconfig .config

修改Makefile如下:

CC:=/home/xuxuequan/Ingenicwork/toolchain/mips-gcc472-glibc216-32bit/bin/mips-linux-gnu-gcc
#ifndef CC
#CC=gcc
#endif

CFLAGS:= -I /home/xuxuequan/Ingenicwork/toolchain/mips-gcc472-glibc216-32bit/mips-linux-gnu/libc/usr/include
CFLAGS += -I /home/xuxuequan/Ingenicwork/lib/libsource/openssl-1.0.1h/install/include
CFLAGS += -I /home/xuxuequan/Ingenicwork/lib/libsource/libnl-1.1/include
LIBS := -L /home/xuxuequan/Ingenicwork/lib/libsource/openssl-1.0.1h/install/lib -lssl
LIBS := -L /home/xuxuequan/Ingenicwork/lib/libsource/openssl-1.0.1h/install/lib -lcrypto
LIBS += -L /home/xuxuequan/Ingenicwork/lib/libsource/libnl-1.1/install/lib -lnl 
LIBDIR := ./out/lib/
BINDIR := ./out/sbin/


#ifndef CFLAGS
#CFLAGS = -MMD -O2 -Wall -g
#endif

#export LIBDIR ?= /usr/local/lib/
#export BINDIR ?= /usr/local/sbin/

#LIBS += -lcrypto
LIBS += -L /home/xuxuequan/Ingenicwork/lib/libsource/openssl-1.0.1h/install/lib -lcrypto
#LIBS_p += -lcrypto
LIBS_p += -L /home/xuxuequan/Ingenicwork/lib/libsource/openssl-1.0.1h/install/lib -lcrypto

3.wpa_supplicant 2.2编译问题

问题一:

../src/drivers/driver_nl80211.c:19:31: fatal error: netlink/genl/genl.h: No such file or directory
compilation terminated.
make: *** [../src/drivers/driver_nl80211.o] Error 1

问题分析:

这是由于没有libnl库导致的,在Makefile中设置libnl的相关include即可

问题二:

../src/drivers/driver_nl80211.c: In function 'family_handler':
../src/drivers/driver_nl80211.c:717:10: error: 'CTRL_ATTR_MCAST_GROUPS' undeclared (first use in this function)
../src/drivers/driver_nl80211.c:717:10: note: each undeclared identifier is reported only once for each function it appears in
../src/drivers/driver_nl80211.c:721:22: error: 'CTRL_ATTR_MCAST_GRP_MAX' undeclared (first use in this function)
../src/drivers/driver_nl80211.c:724:12: error: 'CTRL_ATTR_MCAST_GRP_NAME' undeclared (first use in this function)
../src/drivers/driver_nl80211.c:725:12: error: 'CTRL_ATTR_MCAST_GRP_ID' undeclared (first use in this function)
make: *** [../src/drivers/driver_nl80211.o] Error 1

问题分析:

这是由于当前libnl库版本中genetlink.h文件部分定义没有导致的,可以从交叉编译工具链中拷贝一个

cp /home/xuxuequan/Ingenicwork/toolchain/mips-gcc472-glibc216-32bit/mips-linux-gnu/libc/usr/include/linux/genetlink.h ./genetlink.h

问题三:

/home/xuxuequan/Ingenicwork/toolchain/mips-gcc472-glibc216-32bit/bin/../lib/gcc/mips-linux-gnu/4.7.2/../../../../mips-linux-gnu/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
make: *** [wpa_passphrase] Error 1

问题分析:

这是由于Makefile中如下部分定义导致的,按照红色部分修改为交叉编译

#LIBS += -lcrypto
LIBS += -L /home/xuxuequan/Ingenicwork/lib/libsource/openssl-1.0.1h/install/lib -lcrypto
#LIBS_p += -lcrypto
LIBS_p += -L /home/xuxuequan/Ingenicwork/lib/libsource/openssl-1.0.1h/install/lib -lcrypto

移植wpa_supplicant 2.2问题相关推荐

  1. 移植wpa_supplicant软件与DHCP软件解密WPA/WPA2 加密的无线网络

    加qq1126137994与微信:liu1126137994 一起学习更多技术! 现在的无线网络基本都是 WPA/WPA2 加密方式的,当我们在嵌入式Linux平台要实现无线网卡连接无线网时,我们需要 ...

  2. RT3070L_USB_WIFI网卡在GT2440开发板上的移植和使用(三)---移植wpa_supplicant

    5.移植wpa_supplicant 5.1.源码准备与参考 关于wpa_supplicant的介绍可以参考:http://linuxwireless.sipsolutions.net/en/user ...

  3. 移植wpa_supplicant 2.5 实现rtl8188可以无线上网

    libnl-1.1.4.tar.gz    下载地址:http://www.infradead.org/~tgr/libnl/ openssl-0.9.8za       下载地址:ftp://ftp ...

  4. wpa_supplicant驱动移植

    移植环境:        主机操作系统:Ubantu 10.10        目标系统:hi351x 内核 linux-2.6.14        交叉编译器:arm-hismall-linux- ...

  5. linux wifi管理工具下载,(Linux无线网卡WIFI上网 二 )WPA_SUPPLICANT——Linux下的wifi管理工具移植-Go语言中文社区...

    导航 概述 wpa_supplicant是一个连接.配置WIFI的工具,它主要包含wpa_supplicant与wpa_cli和wpa_passphrase三个程序. 可以通过wpa_cli来进行WI ...

  6. RT73 wifi无线网卡驱动移植过程 和wpa支持

    转 移植环境: 主机操作系统:Ubantu 8.10 目标系统:linux-2.6.22.6 交叉编译器:arm-softfloat-linux-gnu-gcc-3.4.5 一.RT73驱动编译 1. ...

  7. RT3070_STA_驱动移植文档

    [连载]RT3070STA 驱动移植 移植环境:        主机操作系统:Ubantu10.10        目标系统:at91sam9m10内核linux-2.6.30        交叉编译 ...

  8. USB转WIFI无线网卡驱动程序(RT5370驱动程序)的移植记录之一

    学习交流加 个人qq: 1126137994 个人微信: liu1126137994 学习交流资源分享qq群: 962535112 今天记录我在I.MX6Q平台移植RT5370无线网卡驱动程序的过程, ...

  9. 第五季2:STA模式USB-WIFI网卡移植与测试

    以下内容源于朱有鹏课程,如有侵权,请告知删除. 本课程实现内容: HI2518E+WIFI做STA,PC做STA,外部路由器做AP,实现局域网内ortp视频传 HI2518E+WIFI做STA,PC做 ...

最新文章

  1. vscode使用markdown语言编写文本
  2. 【机器学习】传统目标检测算法之级联分类器Cascade
  3. 如果华为自主的操作系统,对消费者和华为会有什么影响?
  4. Mac pycharm flask 用内网ip 运行 web
  5. 【U-net】【粗读】Retinal blood vessel segmentation using fully convolutional network with transfer...
  6. java列表展开折叠,Android在开发中的实用技巧之ExpandableListView简单实现商品列表折叠...
  7. 删除mysql指令_MySQL常用命令学习笔记
  8. html未点击背景 点击背景,vue项目中使用particles实现粒子背景效果及遇到的坑(按钮没有点击响应)...
  9. 计算机辅助设计主要学什么,计算机辅助设计教学大纲
  10. caxa计算机编程,CAXA软件编程实例1
  11. win10系统崩溃(UNEXPECTED_STORE_EXCEPTION)解决方法
  12. hdu4556(欧拉函数)
  13. 切披萨n块需要几刀原理c语言,别再问我披萨要切几块了
  14. flask爱家租房项目开发(十二)
  15. Unity3D动画帧事件
  16. 仅将人脑视为预测机器,人类文明会出什么问题
  17. 产品化软件开发与项目化软件开发的对比
  18. 如何制作查分系统-Leo老师
  19. zookeeper节点创建
  20. 利用这5个办法成为自由职业者,通过远程赚钱,开心旅行、轻松赚钱!

热门文章

  1. MySql - GROUP BY 和 HAVING关键字
  2. 写一个函数的程序,判断是否是浮点数
  3. Numpy数组的保存与读取方法
  4. mysql数据库(3)-查询
  5. pandas.read_csv参数详解
  6. 判断线段和直线相交 POJ 3304
  7. android根据拍摄url获取格式,Android如何通过URI获取文件路径示例代码
  8. matlab main函数_Python 和MATLAB 制作Gif 图像
  9. linux下jboss分析helloword,JBoss 中运行servlet 的helloworld程序(转)
  10. springboot怎么替代jsp_如何在SpringBoot中使用JSP ?