当前位置:网站首页>带wiringPi库在unbutu 编译 并且在树莓派运行
带wiringPi库在unbutu 编译 并且在树莓派运行
2022-08-01 01:21:00 【十年哞一剑】
demo1.c 传到unbutu
WringPi的包传到unbutu
首先 把WringPi的包传到 unbutu 上面
1 先在window 解压WringPi.rar 最后成为WringPi(文件夹)
ls -l
vi INSTALL 存有开发信息
运行 ./build 会产生软连接
存在 /usr/local/lib 底下
运行 ./build 查看 /usr/local/lib
确实有了 但是不能用
验证一下
还是报错
把 树莓派的libwiringPi.so 拿上来用
传到 unbutu
生成 软连接 ln 源文件 目标文件
1 先删除源文件
2 在生成软连接(软连接类似一种快捷方式 不占内存 )
编译 demo1.c
格式
arm-linux-gnueabihf-gcc demo1.c -I /home/yangchangyuan/LessonPi/WiringPi/wiringPi -L. -lwiringPi
arm平台的编译器 文件 链接文件路径 -L.在当前页面查找 -l可执行代码(也就是软连接)
生成a.out 可执行文件
树莓派运行
边栏推荐
- Google "Cloud Developer Quick Checklist"; Tsinghua 3D Human Body Dataset; SenseTime "Universal Vision Framework" open class; Web3 Minimalist Getting Started Guide; Free Books for Efficient Deep Learni
- 网关gateway跨域
- ROS2系列知识(4): 理解【服务】的概念
- OSD read SAP CRM One Order application log way of optimization
- Daily practice of LeetCode - Circular linked list question (interview four consecutive questions)
- /usr/sbin/vmware-authdlauncher: error while loading shared libraries: libssl.so.1.0.2*解决办法
- How to get started with YOLO?How to implement your own training set?
- STK8321 I2C(昇佳-加速度传感器)示例
- MYSQL二阶段提交
- Cmake introductory study notes
猜你喜欢
MYSQL Keyword Explain Analysis
leetcode: 1648. Color ball with decreasing sales value [Boundary find by two points]
Super like the keyboard made from zero, IT people love it
ECCV2022 Workshop | 复杂环境中的多目标跟踪和分割
[Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]
ROS2 series of knowledge (4): understand the concept of [service]
MYSQL Index Analysis
如何编辑epub电子书的目录
MYSQL-Batch insert data
Solve the problem that when IDEA creates a new file by default, right-click, new, there is no XML file
随机推荐
leetcode: 1648. Color ball with decreasing sales value [Boundary find by two points]
Rasa 3.x Study Series - Rasa - Issues 4918 Study Notes
JVM面试题总结(持续更新中)
值传递还是引用传递(By Value or By Reference)
The kernel of the decompression process steps
Rasa 3.x 学习系列- Rasa - Issues 4918 学习笔记
OSD read SAP CRM One Order application log way of optimization
Item 36: Specify std::launch::async if asynchronicity is essential.
Data Middle Office Construction (VII): Data Asset Management
The principle of virtual inheritance
SC7A20 (Silan Micro-Accelerometer) Example
北京突然宣布,元宇宙重大消息
Introduction to the decision logic of WAASAP WebClient UI page labels
机器学习初学者可以学哪些实战项目?
IDEA修改注释字体
device node结构体转换成platform_device结构体
现代企业架构框架1
Solve the problem that when IDEA creates a new file by default, right-click, new, there is no XML file
Google engineer fired for claiming AI awareness: breach of nondisclosure agreement
【 】 today in history: on July 31, "brains in vats" the birth of the participant;The father of wi-fi was born;USB 3.1 standard