标签:
sudu su cd/opt mkdir GnuArmToolchain wget http://bb.osmocom.org/trac/raw-attachment/wiki/GnuArmToolchain/gnu-arm-build.3.sh chmod +x gnu-arm-build.3.sh mkdir build install src cd src wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2 wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.1a.tar.bz2 wget ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz apt-get install build-essential libgmp3-dev libmpfr-dev libx11-6 libx11-dev texinfo flex bison libncurses5 libncurses5-dbg libncurses5-dev libncursesw5 libncursesw5-dbg libncursesw5-dev zlibc zlib1g-dev libmpfr4 libmpc-dev cd /opt/GnuArmToolchain ./gnu-arm-build.3.sh(提示:Press ^C now if you do NOT want to do this.)按回车 等待ing.... 提示:Build complete! Add <YOURPATH>/bin to your PATH to make arm-none-eabi-gcc and friends accessible directly.(就是编译完成) gedit ~/.bashr 在最后一行输入按下回车然后输入 PATH=$PATH:/opt/GnuArmToolchain/install/bin cd /opt apt-get install build-essential libtool shtool autoconf automake git-core pkg-config make gcc libpcsclite-dev git clone git://git.osmocom.org/libosmocore.git cd libosmocore/ autoreconf -i ./configure make install cd .. ldconfig git clone git://git.osmocom.org/osmocom-bb.git cd osmocom-bb git checkout --track origin/luca/gsmmap cd src make
标签:
原文地址:http://www.cnblogs.com/k1two2/p/4899401.html