搭建RDA交叉编译器

apt-get install subversion   //安装版本控制系统,便于管理文件目录

apt-get install make    

atp-get install gcc

=======set environment=======
//安装交叉编译工具链----注意:编译工具链必须放到这个目录下,不然识别不了
export PATH=/pub/tools/package/toolchain/mips-2012.07/bin:/pub/tools/package/toolchain/mips-2014.05/bin:$PATH
export LD_LIBRARY_PATH=/pub/tools/package/toolchain/mips-2012.07/lib:/pub/tools/package/toolchain/mips-2014.05/lib:$LD_LIBRARY_PATH
  • 将环境变量和库的路径写进/etc/profile,然后执行命令source /etc/profile对修改的文件进行更新
  • 以下仅供参考:

          1. 因为Ubuntu默认的sh是连接到dash的,又因为dash跟bash的不兼容所以出错了.执行时可以把sh换成bash文件名.sh来执行.成功.dash

             修改bash默认连接到bash的一种方法:sudo dpkg-reconfigure dash----》选择no

     2. 32位电脑安装64位虚拟机,连make clean都error了,安装下面的库即可:

     sudo apt-get install lib32z1-dev 

     3. 新安装的Ubuntu编译遇到情况:

     make mconfig

     make[1]: Entering directory '/home/tv/qingji/s2'
     ./tools/gen_customer.pl -C aps/customer -E aps/external
      /bin/sh: 1: ./tools/mconf/mconf: not found
     make[1]: Leaving directory 'xxxx'

//安装一下两个软件
     (1)sudo apt-get install build-essential libncurses5 libncurses5-dev 
     (2)sudo apt-get install lib32ncurses5-dev 

   4.更改make版本

    ubuntu15.04默认安装的是4.0的,如下:

    make -v         //查看make版本             

    GNU Make 4.0
    手动下载:make-3.81.tar.gz
    http://ftp.gnu.org/pub/gnu/make/make-3.81.tar.gz
  

      sudo tar zxvf make-3.81.tar.gz -C /tmp   //解压 
     //   /tmp是一个临时目录,下次开机则无此目录下的文件会被自动删除
    //指定目录要不然安装完后就是在usr/local/bin/make 
    //一下命令在make-3.81目录下执行
    ./configure --prefix=/usr     //配置安装目录
     sudo type make
     sudo make check
     sudo make install

     make -v 查看更改后的状态

 

posted @ 2017-12-14 14:15  轻轻的吻  阅读(375)  评论(1编辑  收藏  举报