当前位置:网站首页>Ruixin micro rk1126 platform platform porting libevent cross compiling libevent
Ruixin micro rk1126 platform platform porting libevent cross compiling libevent
2022-06-10 19:04:00 【QMCY_ jason】
The program needs to have a http Service to interact with the master , Just before, the Hisilicon platform used libevent
Now you need to migrate to RK platform . hold libevent After the source code comes down Put a random Directory
And build a build.sh
The contents are as follows : It's not complicated. The main thing is to set up the correct cross compilation tool
./configure \
--host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc\
--prefix=/home/QMCY/libevent-2.1.12-stable/rk1126 \
--disable-openssl
after make make install If you don't make mistakes normally, you will Generate a rk1126 Catalog
It contains include and lib Catalog Enter into lib Catalog Find that all the required libraries have been compiled

then In the program modify CMakeLists.txt Compare the header file path to lib Library paths are added

In the main program code Start a thread http service



Compiler Program down to the board , And then again pc Use postman Send a test message

In the program You can receive the message correctly

after According to the improbable api Just deal with it separately
边栏推荐
- 数据治理经典6大痛点?这本书教你解决
- Metadata management, the basic construction of enterprises in the digital era
- Huawei cloud Kunpeng devkit code migration practice
- OPENCV 检测人脸 不依赖于任何第三方库
- vcsa7u3c安装教程
- Uniapp native JS to convert the Gregorian calendar to the lunar calendar
- [kuangbin]专题十二 基础DP1
- In 2021, the world's top ten analog IC suppliers: Ti ranked first, and skyworks' revenue growth was the highest
- 微信小程序,获取当前页面,判断当前页面是不是tabbar页面
- JS Touch
猜你喜欢

Chapter II data type (I)

Form form of the uniapp uview framework, input the verification mobile number and verification micro signal

Adobe Premiere Basic - tool use (select tools, rasoir tools, and other Common Tools) (III)

5. Golang泛型与反射

Stream生成的3张方式-Lambda

第二章 数据类型(一)

元数据管理,数字化时代企业的基础建设

数字化时代,企业为什么要做数字化转型?

VMware ESXi 各版本号对照表

How to set up salesmartly for Google Analytics tracking
随机推荐
商业智能BI如何帮企业降低人力、时间和管理成本?
Adobe Premiere Foundation (animation) (VII)
Seata安装Window环境
Wireshark learning notes (I) common function cases and skills
Seata installing the window environment
【QNX Hypervisor 2.2 用户手册】3.2.2 VM配置示例
How to set up salesmartly for Google Analytics tracking
HelloWorld example of TestNG and how to run it from the command line
5. golang generics and reflection
企业数据质量管理:如何进行数据质量评估?
Db2 SQL PL的数组类型
In the digital era, how can enterprises manage data security and ensure the security of data assets
基于谱加权的波束方向图分析
Adobe Premiere基础(动画制作)(七)
SQL function
元数据管理,数字化时代企业的基础建设
In the introductory study of data visualization, we should be alert to pitfalls and misunderstandings and grasp key nodes
"Digital transformation, data first", talk about how important data governance is to enterprises
Huawei cloud hcde Cloud Road phase II: how does Huawei cloud help small and medium-sized manufacturing enterprises' digital transformation?
JS Touch