0
点赞
收藏
分享

微信扫一扫

hostpad交叉编译在imx6ul平台


交叉编译比较耗时间,主要是看错误点在修改。在google搜索。

libnl-3交叉编译

./configure --host=arm-poky-linux-gnueabi --enable-shared LIBS=-lpthread --prefix=$(pwd)/__install
make
make install


openssl交叉编译
1、makefile中修改CC交叉编译将 CC= $(CROSS_COMPILE)arm-poky-linux-gnueabi-改成CC= arm-poky-linux-gnueabi-gcc
2、makefile中去掉-m64
3、必须要有-fPIC否则报错

./config --prefix=$PWD/__install no-asm shared -fPIC

make
make install


hostpad交叉编译
在makefile中增加
CFLAGS += -I../../libnl-3.2.25/__install/include/libnl3
LIBS += -L../../libnl-3.2.25/__install/lib

CFLAGS += -I../../openssl-1.0.2h/__install/include
LIBS += -L../../openssl-1.0.2h/__install/lib

打开.config ,打开注释:CONFIG_LIBNL32=y

export PKG_CONFIG_PATH=../../libnl-3.2.25/__install/lib/pkgconfig/:$PKG_CONFIG_PATH

make编译生成hostpad和hostpac_cli


wpa_supplicant
在makefile中增加
CFLAGS += -I../../libnl-3.2.25/__install/include/libnl3
LIBS += -L../../libnl-3.2.25/__install/lib

CFLAGS += -I../../openssl-1.0.2h/__install/include
LIBS += -L../../openssl-1.0.2h/__install/lib
打开.config ,打开注释:CONFIG_LIBNL32=y

make编译生成wpa_cli和wpa_supplicant

 

举报

相关推荐

0 条评论