在Linux下安装FriendlyARM交叉编译器
来源:互联网 发布:地下城与勇士内存优化 编辑:程序博客网 时间:2024/05/22 08:01
这里使用的是FriendlyARM开发板所提供的压缩包,版本是4.4.3。下面来看看怎么在RedHat Linux下安装交叉编译器。
一、安装交叉编译器的步骤如下所示:
1、将arm-linux-gcc-4.4.3.tar.gz压缩包复制到共享文件下。
2、对arm-linux-gcc-4.4.3.tar.gz压缩包进行解压,解压到/目录下(根目录)。
[root@localhost Linux]# tar -xvzf arm-linux-gcc-4.4.3.tar.gz -C /
在根目录(/)下会出现一个opt目录,里面存放的是arm-linux-gcc解压好的内容。
3、配置环境变量。先进入/opt/FriendlyARM/toolschain/4.4.3/bin目录中,用pwd命令查看路径。
[root@localhost opt]# cd FriendlyARM/toolschain/4.4.3/bin/[root@localhost bin]# pwd/opt/FriendlyARM/toolschain/4.4.3/bin
用vim打开/etc/profile文件进行编辑,在下面输入:
export PATH=$PATH:/opt/FriendlyARM/toolschain/4.4.3/bin
注意:上面的路径一定要保持一致,不然系统要提示找不到交叉编译器!
4、使用source /etc/profile 命令使配置文件/etc/profile生效。
[root@localhost /]# source /etc/profile5、使用arm-linux-gcc -v命令查看交叉编译器安装成功没有。
[root@localhost /]# arm-linux-gcc -vUsing built-in specs.Target: arm-none-linux-gnueabiConfigured with: /opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/configure --build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.4.3 --with-sysroot=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --enable-languages=c,c++ --disable-multilib --with-arch=armv4t --with-cpu=arm920t --with-tune=arm920t --with-float=soft --with-pkgversion=ctng-1.6.1 --disable-sjlj-exceptions --enable-__cxa_atexit --with-gmp=/opt/FriendlyARM/toolschain/4.4.3 --with-mpfr=/opt/FriendlyARM/toolschain/4.4.3 --with-ppl=/opt/FriendlyARM/toolschain/4.4.3 --with-cloog=/opt/FriendlyARM/toolschain/4.4.3 --with-mpc=/opt/FriendlyARM/toolschain/4.4.3 --with-local-prefix=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspaceThread model: posixgcc version 4.4.3 (ctng-1.6.1)
能够正确的显示交叉编译器的版本号,说明交叉编译器就已经安装完成了!下面就可以使用了
0 0
- 在Linux下安装FriendlyARM交叉编译器
- linux下安装交叉编译器
- 在ubuntu下安装交叉编译器arm-linux-gcc步骤
- linux下ARM交叉编译器的安装
- linux下ARM交叉编译器的安装
- Ubuntu下安装arm linux交叉编译器
- 在linux上安装交叉编译器
- linux下嵌入式交叉安装交叉编译器步骤
- linux安装交叉编译器
- linux安装交叉编译器
- 安装Linux交叉编译器
- arm-linux-gcc-3.4.1交叉编译器在redhat9.0下的安装(VMware)
- Linux系统下安装arm-linux-gcc 交叉编译器
- ubuntu下安装arm-linux-gcc交叉编译器
- linux环境下如何确定安装好交叉编译器
- archlinux下arm-linux-gcc的交叉编译器的安装
- linux环境下如何确定安装好交叉编译器 .
- linux 下安装交叉编译器:EABI-4.3.3_EmbedSky_20100610.tar
- 视频电商网站vue+七牛JSSDK集成(3)上传视频时暂停和续传
- Mac中单独安装git需要xcode的问题+安装新版git代替旧版
- js数组的常见知识
- 聊聊Socket、TCP/IP、HTTP、FTP及网络编程
- parasoft Jtest 使用教程:计算度量
- 在Linux下安装FriendlyARM交叉编译器
- 编译AOSP源码(我也有自己的Android源码啦)
- A Tutorial on Clustering Algorithms
- 释疑の语法Unpack&pack
- UE4进入特定范围后播放特定音乐
- maven-plugins---maven-assembly-plugin
- 搭建一个简单、易用的 Android 项目框架之BaseFragment(二)
- 二叉树:小球下落
- 【区间覆盖】土地改革