# arm linux 移植 curl
2021-03-29 22:28
标签:out created lin Fix pack pac get configure make libcurl是一个跨平台的开源网络协议库,支持http, https, rtsp等多种协议 。libcurl同样支持HTTPS证书授权,HTTP POST, HTTP PUT, FTP 上传, HTTP基本表单上传,代理,cookies和用户认证。 host平台 :Ubuntu 16.04 libcrul :7.69.1 使用以下脚本 将 运行 # arm linux 移植 curl 标签:out created lin Fix pack pac get configure make 原文地址:https://www.cnblogs.com/schips/p/12603344.html背景
arm平台 : 3531d
arm-gcc :4.9.4主机准备
##
# Copyright By Schips, All Rights Reserved
# https://gitee.com/schips/
# File Name: make2.sh
# Created : Tue 31 Mar 2020 10:09:09 AM CST
##
#!/bin/sh
HOST=arm-linux
BASE=`pwd`
OUTPUT_PATH=${BASE}/install
ARM_GCC=${HOST}-gcc
make_dirs () {
cd ${BASE}
mkdir compressed install source -p
}
tget () { #try wget
filename=`basename $1`
echo "Downloading [${filename}]..."
if [ ! -f ${filename} ];then
wget $1
fi
echo "[OK] Downloaded [${filename}] "
}
download_package () {
cd ${BASE}/compressed
tget https://curl.haxx.se/download/curl-7.69.1.tar.gz
}
tar_package () {
cd ${BASE}/compressed
ls * > /tmp/list.txt
for TAR in `cat /tmp/list.txt`
do
tar -xf $TAR -C ../source
done
rm -rf /tmp/list.txt
}
make_curl () {
cd ${BASE}/source/curl*
./configure --prefix=${OUTPUT_PATH}/${ZLIB} --host=${HOST} CC=${HOST}-gcc CXX=${HOST}-g++ && make && make install
}
make_dirs
download_package
tar_package
make_curl
拷贝
output
目录下的东西拷贝到板子上。lib
拷贝进 /usr/lib
中./curl
进行测试
文章标题:# arm linux 移植 curl
文章链接:http://soscw.com/index.php/essay/69719.html