crosstool-ng搭建交叉编译环境注意事项

一,crosstool-ng的下载及编译方法

可以参考如下网站: http://www.crosstool-ng.org/

 

二,编译过程注意事项

1)如果遇到有些代码包不能下载,请依据指定版本,在这里http://ftp.gnu.org/gnu/下载。

2)编译时,可用内存至少2G,虚拟内存1G,如果你的内存足够大,虚拟内存可以不用。

3)error: forced unwind support is required的错误,选中C库选项的Force unwind support即可。

4)configure: error: expat is missing or unusable 需要安装libexpat-dev

5)Error happened in: CT_DoExecLog[scripts/functions@257],在当前编译目录下,找到.build文件夹,除了tarballs和tools文件夹,其他的文件夹都删除

6)included file 'linux/if_pppolac.h' is not exported 解决方法: Disable kernel header check。

7)http://www.crifan.com/files/doc/docbook/crosstool_ng/release/htmls/crosstool_ng_common_errors.html#missing_makeinfo

8http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=4097570&highlight=

posted @ 2014-02-21 11:17  王庆  阅读(1355)  评论(0编辑  收藏  举报