新手 在crosstool-ng 的mips交叉编译器的制作与参考配置的最后一步 报错 求大神指点 (已解决)
发表于 : 2012-10-23 10:58
新进一家公司,要求我做配一个交叉编译器, 因为之前一直在WIN下做java开发 刚入手linux 难免手忙脚乱 求大神指点迷津
1. download
http://crosstool-ng.org/download/crosst ... .1.tar.bz2
2.
tar xvf ../source/crosstool-ng-1.11.1.tar.bz2
cd crosstool-ng-1.11.1/
sudo apt-get install sed bash cut install make dpkg-dev bison flex patch texinfo automake m4 libtool stat cvs websvn tar gzip bzip2 lzma readlink libncuses5-dev gawk subversion -y注意:crosstool-ng 需要依赖很多工具,如果上面列举不全,请在后面过程种出错后再次添加。
3. 安装ct-ng;注意这时候并没有开始编译
./configure
make
sudo make install
4. 就修改部分就可一了;
ct-ng menuconfig
4.1 Target options—>
Target Architechture —> mips
Endianness:—->Little endian
Floating point —> software
4.2 Operation System —>
Target OS —>linux
5. 编译前的准备:
5.1 GMP
wget -c http://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.gz
tar xvf gmp-4.3.2.tar.gz
cd gmp-xxx
./configure
make
sudo make install
5.2 MPFR
wget -c http://ftp.gnu.org/gnu/mpfr/mpfr-3.0.0.tar.gz
tar xvf mpfr-3.0.0.tar.gz
cd mpfr-xxx
./configure
make
sudo make install
6. 开始编译
ct-ng build
第6步报错
zcq@zcq-Vostro-230:~/crosstool-ng-1.11.1/gmp-4.3.2/mpfr-3.0.0$ ct-ng build
There is no existing .config file!
You need to either run 'menuconfig',
or configure an existing sample.
make: *** [.config] 错误 1
1. download
http://crosstool-ng.org/download/crosst ... .1.tar.bz2
2.
tar xvf ../source/crosstool-ng-1.11.1.tar.bz2
cd crosstool-ng-1.11.1/
sudo apt-get install sed bash cut install make dpkg-dev bison flex patch texinfo automake m4 libtool stat cvs websvn tar gzip bzip2 lzma readlink libncuses5-dev gawk subversion -y注意:crosstool-ng 需要依赖很多工具,如果上面列举不全,请在后面过程种出错后再次添加。
3. 安装ct-ng;注意这时候并没有开始编译
./configure
make
sudo make install
4. 就修改部分就可一了;
ct-ng menuconfig
4.1 Target options—>
Target Architechture —> mips
Endianness:—->Little endian
Floating point —> software
4.2 Operation System —>
Target OS —>linux
5. 编译前的准备:
5.1 GMP
wget -c http://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.gz
tar xvf gmp-4.3.2.tar.gz
cd gmp-xxx
./configure
make
sudo make install
5.2 MPFR
wget -c http://ftp.gnu.org/gnu/mpfr/mpfr-3.0.0.tar.gz
tar xvf mpfr-3.0.0.tar.gz
cd mpfr-xxx
./configure
make
sudo make install
6. 开始编译
ct-ng build
第6步报错
zcq@zcq-Vostro-230:~/crosstool-ng-1.11.1/gmp-4.3.2/mpfr-3.0.0$ ct-ng build
There is no existing .config file!
You need to either run 'menuconfig',
or configure an existing sample.
make: *** [.config] 错误 1