当前位置:网站首页>Using external Libpcap library on ARM platform
Using external Libpcap library on ARM platform
2022-06-24 23:35:00 【mialo163】
One . Cross compilation libpcap
1、 download libpcap, I downloaded it libpcap-1.8.1.tar.gz
2、 decompression
3、 You may need to install some dependencies before compiling , perform yum install flex byacc bison -y
3、 Get into libpcap-1.8.1 Catalog , Select the applicable cross compiler first ( I've tried two platforms aarch64-linux-gnu-gcc/arm-linux-gnueabihf-gcc)
export CC=arm-linux-gcc,
or export CC=arm-linux-gnueabihf-gcc,
or export CC=aarch64-linux-gnu-gcc,
Then configure , perform ./configure --host=arm-linux --with-pcap=linux
4、configure After execution , Input make Command to compile . When the compilation is complete, it will generate libpcap.a Static and dynamic libraries . These two libraries are what we need .
Two . Copy .a Static library to compiler lib Folder
Such as :/usr/aarch64-linux-gnu/lib
3、 ... and . Compile with -lpcap
Such as :aarch64-linux-gnu-gcc test.c -o test -lpcap
边栏推荐
- 7-7 solving mode problems
- Hydropower project construction scheme based on 3D GIS Development
- Enterprise data leakage prevention solution sharing
- Harmonyos accessing database instances (3) -- use ORM bee to test how good harmonyos is
- R语言使用epiDisplay包的aggregate函数将数值变量基于因子变量拆分为不同的子集,计算每个子集的汇总统计信息、自定义FUN参数为多个统计量函数名称的列表计算多个统计量
- 7-3 maximum sub segment and
- Mousse shares listed on Shenzhen Stock Exchange: becoming popular by mattress and "foreign old man", with a market value of 22.4 billion yuan
- UNION ALL UNION FULL JOIN
- 当初吃土建起来的“中台”,现在为啥不香了?
- 选择类排序法
猜你喜欢

一文理解OpenStack网络

22map introduction and API

Chapter VI skills related to e-learning 5 (super parameter verification)
![[JS] - [array, Stack, queue, Link List basis] - Notes](/img/c6/a1bd3b8ef6476d7d549abcb442949a.png)
[JS] - [array, Stack, queue, Link List basis] - Notes

今天睡眠质量记录79分

华为机器学习服务语音识别功能,让应用绘“声”绘色

无鸟用的SAP PA证书,刚入行的同行可以考一考

Harmonyos accessing database instances (3) -- use ORM bee to test how good harmonyos is

Go language pointer, value reference and pointer reference

Huawei machine learning service speech recognition function enables applications to paint "sound" and color
随机推荐
JS listens for page or element scroll events, scrolling to the bottom or top
376. Tâches mécaniques
都2022年了,你还不了解什么是性能测试?
Actipro WPF Controls 2022.1.2
Selective sort method
7-5 最大子矩阵和问题
Uninstall hero League
Design and practice of vivo server monitoring architecture
sql -CONVERT函数
Continuous soul torture from two MySQL indexes of interviewers
2021-2022 China's financial digitalization "new" insight Industry Research Report
第六章 网络学习相关技巧5(超参数验证)
UNION ALL UNION FULL JOIN
抖音实战~实现App端视频上传与发布
376. 機器任務
378. Knight placement
国内有哪些好的智能家居品牌支持homekit?
378. 骑士放置
7-7 solving mode problems
Adding, deleting, querying and modifying MySQL tables