L2TP客户端之Strongswan移植(二)

本文档详细介绍了如何将Strongswan及其依赖库(gmp, openssl, curl)和L2TP组件(pcap, xl2tpd)交叉编译到物联网设备。针对每个组件,提供了下载链接、编译配置和安装步骤,为物联网环境中的IPsec和L2TP支持打下基础。" 88537221,7723465,LeetCode解题报告:128. 最长连续序列,"['算法', 'LeetCode', '数组操作', 'Python编程', '数据结构']
摘要由CSDN通过智能技术生成

说明

上一篇博客L2TP客户端之Strongswan移植(一)有提到,移植前需要一些准备,需要交叉编译gmp、openssl、crypto、curl,这里我们将会对strongswan全套工具和依赖库进行移植。

移植依赖库

Strongswan

1、gmp

1)gmp下载链接:

http://www.anheng.com.cn/debian/pool/main/g/gmp/

我这里下载的是6.2.1版本。

2)解压后,输入以下命令:

./configure --host=arm-linux-gnueabihf --with-pcap=linux --prefix=/home/nfs/test/strongswan/gmp-6.2.1/install CC=arm-linux-gnueabihf-gcc

make

make install

2、openssl

1)openssl下载链接:

https://www.openssl.org/source/

我这里下载的是1.1.1版本。

2)解压后,输入以下命令:

./config no-asm shared --prefix=/home/nfs/test/strongswan/openssl-1.1.1/install CROSS_COMPILE=/opt/hfcctool/bin/arm-linux-gnueabihf- CC=gcc

make

make install

3、curl

1)curl下载链接:

https://curl.se/download.html

我这里下载的是7.85.0版本。

2)解压后,输入以下命令:

./configure --host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ --with-ssl --enable-shared --enable-static --disable-dict --disable-ftp --disable-imap --disable-ldap --disable-ldaps --disable-pop3 --disable-proxy --disable-rtsp --disable-smtp --disable-telnet --disable-tftp --disable-zlib --without-ca-bundle

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值