当前位置:网站首页>C语言 libcurl交叉编译
C语言 libcurl交叉编译
2022-07-25 18:00:00 【smile_5me】
这里做一下记录,难倒是不难,但是也是搞了好久才搞出来,需要结合我上一篇文章来看,会比较好理解。
这里使用的是海思的平台的交叉编译器,首先先下载curl的库,网上有很多下载,这里我使用的是curl-7.72.0
然后进去curl-7.72.0,运行下面指令:
./configure --prefix=$PWD/ARM_INSTALL --host=arm-linux CC=aarch64-himix100-linux-gcc CXX=aarch64-himix100-linux-g++然后make,再make install
完成之后在目录下就有ARM_INSTALL的文件夹,打开文件夹
里面的所有文件夹要拷贝到编译器的目录里,以我的例子,目录为:/opt/hisi-linux/x86-arm/aarch64-himix100-linux/target/usr
然后每个文件夹要合并,就可以了
makefile如下:
CC=aarch64-himix100-linux-
target:
$(CC)gcc -o client *.c -lcurl -L . -lm
clean:
@rm -rf client
边栏推荐
- C# Linq 去重&去重求和
- Update 3dcat real time cloud rendering V2.1.2 release
- Automated test Po design model
- 什么是 IP SSL 证书,如何申请?
- MySQL数据库常用命令
- What is an IP SSL certificate and how to apply for it?
- Brief introduction of bubble sort and quick sort
- 有没有什么不起眼却挣钱的副业?
- 交友活动记录
- Wu Enda's machine learning programming operation cannot be suspended pause problem solved
猜你喜欢

食品安全 | 八问八答带你重新认识小龙虾!这样吃才对!

面试官:说说 log.Fatal 和 panic 的区别

Creation of unity Bezier curve

What is an IP SSL certificate and how to apply for it?

ORB_SLAM3复现——上篇

Introduction to cloud XR and development opportunities of cloud XR in 5g Era

如何判断静态代码质量分析工具的性能?这五大因素必须考虑

What are the advantages of real-time cloud rendering

SLA 、SLO & SLI

RedisTemplate解决高并发下秒杀系统库存超卖方案 — Redis事务+乐观锁机制
随机推荐
go defer与recover简单笔记
「数字安全」警惕 NFT的七大骗局
Ch582 ble 5.0 uses Le coded broadcast and connection
交叉验证(cv)学习笔记
SDLC software development life cycle and model
[untitled]
Methods of de duplication and connection query in MySQL database
How to read a Book
Mock service Moco series (III) - redirection, regular expression, delay, template, event, sub module design
Is there any inconspicuous but profitable sideline?
Brief introduction of bubble sort and quick sort
【无标题】
Notes on Flickr's dataset
Introduction to cloud XR and development opportunities of cloud XR in 5g Era
Postman快速上手
3DCAT v2.1.3新版本发布,这三大功能更新你不容错过!
排序还需要了解的信息以及链表
Mysql database common commands
IDEA集成SVN代码管理常用功能
2022/7/23