ubuntu16.04搭建树莓派交叉编译环境(二)
来源:互联网 发布:此网络受法律保护 编辑:程序博客网 时间:2024/05/17 02:28
树莓派配置交叉编译环境
编译工具下载
git clone git://github.com/raspberrypi/tools.git下载完毕后使用tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin下的arm-linux-gnueabihf-gcc交叉编译工具。因为我的PC Host主机是64位的,所以选择了64位交叉编译工具。
也可以先cat /proc/version查询树莓派系统的编译器的版本号,然后使用与系统一致的版本进行交叉编译
加入环境变量:
(1)直接加入环境变量
gedit /etc/profile,最后一行增加
export PATH=$PATH:/work/raspberry/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin(2)为了避免与其它交叉编译工具的冲突,可以直接在Makefile中修改CROSS_COMPILE的绝对路径
ARCH ?= arm
CROSS_COMPILE ?= /work/raspberry/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-NOTE:
添加完环境变量后,执行arm-linux-gnueabihf-gcc –v若提示不能找到文件或目录是因为缺少32位运行库函数,apt-get install lib32ncurses5 lib32z1 lib32stdc++6即可。
- ubuntu16.04搭建树莓派交叉编译环境(二)
- Ubuntu16.04下Qt交叉编译开发环境搭建
- Ubuntu16.04下Qt交叉编译开发环境搭建
- Ubuntu16.04下arm-linux-gcc交叉编译环境搭建
- 在ubuntu16.04(64)下搭建mt7620a的交叉编译环境
- Ubuntu16.04构建Xilinx交叉编译环境
- 搭建树莓派交叉编译环境
- Ubuntu16.4(64位)下gcc-linaro-arm-linux-gnueabihf交叉编译环境搭建
- opwenwrt交叉编译(二)——交叉编译环境的搭建(Ubuntu)
- 从零开始搭建opencv3.0交叉编译环境(Ubuntu14.04+eclipse)(二)
- 搭建交叉编译环境
- 搭建交叉编译环境
- 交叉编译环境搭建
- 搭建交叉编译环境
- 交叉编译环境搭建
- 交叉编译环境搭建
- 搭建交叉编译环境
- 交叉编译环境搭建
- 大数据中简化数据的几种方式
- The SDK platform-tools version (24.0.4) is too old to check APIs compiled with API 25
- MyBatis入门(四)
- codeforces 330A Cakeminator
- 关于Executors创建和管理线程的那些事
- ubuntu16.04搭建树莓派交叉编译环境(二)
- 安卓自动化测试框架UIautomator环境搭建
- eclipse使用ctrl+c、ctrl+v卡顿现象
- javaWeb中404问题
- Android: m, mm以及mmm编译命令以及make snod的使用
- 2、netty3服务端入门代码示例
- 【iOS】iOS11.0 ScrollerView 适配
- 你越撩TA_TA越聪明?谁是最厉害的人工智能机器人?
- android 反编译打包出现java.lang.VerifyError错误的原因和解决