当前位置:网站首页>Compiled on unbutu with wiringPi library and run on Raspberry Pi
Compiled on unbutu with wiringPi library and run on Raspberry Pi
2022-08-01 01:34:00 【Ten Moo One Sword】
demo1.c to unbutu
WringPi's package is sent to unbutu
First pass the WringPi package to unbutu1 First unzip WringPi in the window.rar and finally become WringPi (folder)
ls -lvi INSTALL holds development information
Running ./build will generate a soft linkExists under /usr/local/lib
Run ./build to view /usr/local/lib
It does have it but it doesn't workverify
still reports an error
Use libwiringPi.so from Raspberry Pi
Pass to unbutu
Generate soft link ln source file object file1 delete the source file first2 is generating a soft connection (a soft connection is like a shortcut and does not occupy memory)
Compile demo1.c
Format
arm-linux-gnueabihf-gcc demo1.c -I /home/yangchangyuan/LessonPi/WiringPi/wiringPi -L. -lwiringPiCompiler file link file path for arm platform -L. Find -l executable code (that is, soft link)
Generates a.out executable
Raspberry Pi running
边栏推荐
- Introduction to machine learning how to?
- Inheritance Considerations
- 【密码学/密码分析】基于TMTO的密码分析方法
- MYSQL two-phase commit
- The device node structure is converted into a platform_device structure
- 带wiringPi库在unbutu 编译 并且在树莓派运行
- MYSQL逻辑架构
- Unity3D study notes 10 - texture array
- 解决IDEA默认情况下新建文件时,右击,new,没有XML文件的问题
- The IDEA can't find or unable to load The main class or Module "*" must not contain The source root "*" The root already belongs to The Module "*"
猜你喜欢
随机推荐
彻底关闭Chrome浏览器更新及右上角的更新提示
MYSQL two-phase commit
Luogu P3373: 线段树
MYSQL查询截取优化分析
内核的解压缩过程详解
Google engineer fired for claiming AI awareness: breach of nondisclosure agreement
Talking about hardware device computing storage and data interaction
七月集训(第31天) —— 状态压缩
SC7A20(士兰微-加速度传感器)示例
Exam preparation plan
sqlserver cannot connect remotely
Soft Exam Senior System Architect Series: Basic Knowledge of Information Systems
Solve the problem that when IDEA creates a new file by default, right-click, new, there is no XML file
解决IDEA默认情况下新建文件时,右击,new,没有XML文件的问题
WeChat applet page syntax
蓝图:杨辉三角排列
MVCC总结
RTL8762DK PWM(七)
ROS2 series of knowledge (4): understand the concept of [service]
2022 CSP-J1 CSP-S1 Round 1 Preliminary Competition Registration Guide