Setup MIPS cross compile toolchain

来源:互联网 发布:工程宝软件sdk 编辑:程序博客网 时间:2024/06/05 18:19

Host PC: ubuntu 14.04 64-bit, Install mips-cross compile toolchains


(1) Download source code of  gcc and binutils including ld, and so on.  on http://ftp.gnu.org/gnu/binutils/


(2) Building by "./configure --target=mips-linux-gnu" and "make && sudo make install"

mips-linux-gnu, mips-linux both oK.


NOTE: maybe you meet with error "configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+." while compiling GCC codes.

Download GMP lib from http://ftp.gnu.org/gnu/gmp/

Download MPFR lib from http://ftp.gnu.org/gnu/mpfr/

Download MPC lib from http://ftp.gnu.org/gnu/mpc/


NOTE:

compiling gcc error "

Makefile:154: ../.././gcc/libgcc.mvars: No such file or directory
"

please try "make all-gcc && sudo make install-gcc"




0 0
原创粉丝点击