当前位置:网站首页>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
边栏推荐
- Clinical chemistry | zhangjianzhong / Xu Jian develop single cell precision diagnosis and treatment technology for Helicobacter pylori
- 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
- (translation) json-rpc 2.0 specification (Chinese version)
- 关于win10 版本kicad 卡死的问题, 版本6.x
- Why should the coroutine be set to non blocking IO
- QQ情话糖果情话内容获取并保存
- 有哪个瞬间让你觉得这个世界出bug了?
- NBD Network Block Device
- JGG | overview of duhuilong group of Hebei University Research on plant pan genomics
- Common classes in QT
猜你喜欢

Std:: vector minutes

Add the resources directory under test in idea

Character encoding minutes

SPARQL learning notes of query, an rrdf query language

【中国海洋大学】考研初试复试资料分享

Thymeleaf Usage Summary

15 -- 最接近原点的 K 个点

15 -- k points closest to the origin

JS to add elements to the header, or tail of an array

Position (5 ways)
随机推荐
PubSub JS library realizes "cross component" data transfer
Kubernetes understands kubectl/ debugging
Brain tree (I)
有哪个瞬间让你觉得这个世界出bug了?
Extend JS copy content to clipboard
Usage of qlist
JS to add elements to the header, or tail of an array
QT opens the print dialog box in a text editor
[try to hack] vulhub shooting range construction
2022年广东高考分数线出炉,一个几家欢喜几家愁
QT inline dialog
Common classes in QT
Why should the coroutine be set to non blocking IO
全国首例,中国电信 5G 井下人员定位项目正式商用:可实时跟踪位置,保障作业安全
dmsetup命令
@Font face fonts only work on their own domain - @font-face fonts only work on their own domain
How to crop GIF dynamic graph? Take this picture online clipping tool
Common operations in VIM
Clinical chemistry | zhangjianzhong / Xu Jian develop single cell precision diagnosis and treatment technology for Helicobacter pylori
The best time to buy and sell stocks