当前位置:网站首页>arm交叉编译
arm交叉编译
2022-08-04 05:30:00 【Btobk】
1.为何要进行程序的交叉编译
1)程序在嵌入式开发板上运行,
2)交叉编译就是在一个平台上编译另一个平台上的程序,在pc上的linux是基于X86平台,在嵌入式开发板上的linux是基于Arm平台(安卓和pc也是一样)。一般来说,不会在嵌入式开发板上进行程序开发,所以利用pc上的开发工具进行开发,然后进行交叉编译,就可以在其他平台上进行运,。
2.交叉编译需要都什么工具
1)平台不同是指什么
1)硬件平台(CPU的构架)
2)操作系统平台(win,linux)
2)针对ARm平台的专用交叉编译工具链
1)arm-liunx-gcc来代替gcc进行
2)
3.如何安装交叉编译工具链
1)网站上下载:www.arm.net

2)使用tar -zxvf -C / 解压到根目录,为opt

Opt-第三方软件安装目录

2)配置linux下的搜索路径,PATH变量是搜索路径
bin,sbin,user/bin,user/sbin
这些目录都会搜索执行(echo P A T H 会打印出来;变量要加 PATH会打印出来;变量要加 PATH会打印出来;变量要加)
1)手动导出
export PATH=opt/bin: P A T H ( : PATH(: PATH(:PATH–加上原来的)
Echo $path一下
但是!这个命令一重启就i不在了,所以要编辑一个文件。
2)配置文件方式,把路径添加到文件里~/bash_proflie(cenos),environment(ubt)
把路径加后面,用:隔开
重启或者source ./etcenvironment
Arm-linux-gcc 是一个连接文件

https://blog.csdn.net/gybwq/article/details/115842756?utm_medium=distribute.pc_feed_404.none-task-blog-2defaultBlogCommendFromBaiduRate-3-115842756-blog-null.pc_404_mixedpudn&depth_1-utm_source=distribute.pc_feed_404.none-task-blog-2defaultBlogCommendFromBaiduRate-3-115842756-blog-null.pc_404_mixedpud
编译出来的文件无法在电脑上系统操作,板子上可以运行
4.交叉编译工具的版本
1)针对嵌入开发板linux内核版本改变,2.4以下选择2版本的,2.6以上的选3或者4
2)在开发ban或者pc中,uname -r查看版本
2.4-2.6中变化特别大所以1)最好不要用低版本的交叉工具编译高版本内核的程序,反依然
边栏推荐
- WARNING: sql version 9.2, server version 11.0. Some psql features might not work.
- MySQL leftmost prefix principle [I understand hh]
- [Deep Learning 21 Days Learning Challenge] 2. Complex sample classification and recognition - convolutional neural network (CNN) clothing image classification
- Transformer
- Halcon缺陷检测
- pytorch学习-没掌握的点
- 【CV-Learning】线性分类器(SVM基础)
- 语音驱动嘴型与面部动画生成的现状和趋势
- Thunderbolt turns off automatic updates
- 基于BiGRU和GAN的数据生成方法
猜你喜欢

【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation

Copy Siege Lion 5-minute online experience MindIR format model generation

Pytorch问题总结

Linear Regression 02---Boston Housing Price Prediction

详解近端策略优化

Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions

DeblurGAN-v2: Deblurring (Orders-of-Magnitude) Faster and Better 图像去模糊

Dictionary feature extraction, text feature extraction.

Copy攻城狮信手”粘“来 AI 对对联

Pytorch语义分割理解
随机推荐
【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix
Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions
Deep Adversarial Decomposition: A Unified Framework for Separating Superimposed Images
[Go language entry notes] 13. Structure (struct)
TypeError: load() missing 1 required positional argument: ‘Loader‘
【论文阅读】TransReID: Transformer-based Object Re-Identification
MNIST手写数字识别 —— 图像分析法实现二分类
Pytorch语义分割理解
Usage of RecyclerView
度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)
Endnote编辑参考文献
WARNING: sql version 9.2, server version 11.0. Some psql features might not work.
动手学深度学习_线性回归
"A minute" Copy siege lion log 】 【 run MindSpore LeNet model
PP-LiteSeg
Androd Day02
亚马逊云科技 Build On 2022 - AIot 第二季物联网专场实验心得
TensorFlow: tf.ConfigProto() and Session
Thunderbolt turns off automatic updates
浅谈外挂常识和如何防御