当前位置:网站首页>Cross compilation correlation of curl Library
Cross compilation correlation of curl Library
2022-06-25 14:59:00 【qq_ twenty-three million nine hundred and fifty-three thousand 】
Preset conditions
compile curl Compile before openssl, And you need to openssl Install on the compiled machine
To configure
Such as ./configure CPPFLAGS=-fPIC --without-zlib --disable-ldap --disable-ldaps --without-nss --with-ssl=/usr/local/ssl_arm --enable-ipv6 CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ --host=arm-none-linux
- CPPFLAGS=-fPIC If you want to use curl To compile dynamic libraries , You must add -fPIC This option , And it must be CPPFLAGS, I always thought it was CXXFLAGS... In the pit
- –with-ssl ssl Installation path for ,openssl Be sure to install before compiling curl
- –host=arm-none-linux What architecture does the compiled library use ,Config.sub All schema information is recorded in the file . Sometimes this option is not added , The dynamic library cannot be compiled , That is to compile the dynamic library , This field must be added
- Shenwei –build=alpha --host=alpha-none-linux
Problem solving
Use after the first compilation libcurl.a When compiling your own dynamic library , I have the following problems :
unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `[email protected]@GLIBC_2.17’
Solution : compile curl add PPFLAGS=-fPIC
边栏推荐
- (translation) json-rpc 2.0 specification (Chinese version)
- QT database connection
- Go语言Zap库Logger的定制化和封装使用详解
- How to make GIF animation online? Try this GIF online production tool
- 2. operator and expression multiple choice questions
- 多张动图怎样合成一张gif?仅需三步快速生成gif动画图片
- QT pop up open file dialog box QFileDialog
- QT loading third-party library basic operation
- Biscuit distribution
- Design and implementation of timer
猜你喜欢
Time stamp calculation and audio-visual synchronization of TS stream combined video by ffmpeg protocol concat
Position (5 ways)
Stack and queue
JS get the height and width corresponding to the box model (window.getcomputedstyle, dom.getboundingclientrect)
About the problem of kicad stuck in win10 version, version 6 x
15 -- 最接近原点的 K 个点
Add the resources directory under test in idea
From 408 to independent proposition, 211 to postgraduate entrance examination of Guizhou University
如何裁剪动图大小?试试这个在线照片裁剪工具
Learning notes on February 5, 2022 (C language)
随机推荐
[HBZ sharing] use of locksupport
JGG | overview of duhuilong group of Hebei University Research on plant pan genomics
System Verilog — interface
QQ love talk candy love talk content acquisition and storage
移除区间(贪心)
多张动图怎样合成一张gif?仅需三步快速生成gif动画图片
Go closure usage example
Yolov3 spp Darknet version to caffemodel and then to OM model
Source code analysis of synergetics and ntyco
[try to hack] vulhub shooting range construction
Character encoding minutes
For the first time in China, Chinatelecom 5g underground personnel positioning project is officially commercial: it can track the position in real time to ensure operation safety
Using Sphinx to automatically generate API documents from py source files
从0到1完全掌握 XSS
Two advanced playing methods of QT signal and slot
Kubernetes understands kubectl/ debugging
[untitled] PTA check password
One question per day,
【深度学习】多任务学习 多个数据集 数据集漏标
ffmpeg protocol concat 进行ts流合并视频的时间戳计算及其音画同步方式一点浅析