arm-linux的交叉编译环境的建立

来源:互联网 发布:js事件冒泡的好处 编辑:程序博客网 时间:2024/05/21 15:17

arm-linux的交叉编译环境的建立

http://wiki.ubuntu.org.cn/Crosstool-ng%E5%88%B6%E4%BD%9C%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91%E5%B7%A5%E5%85%B7%E9%93%BE

 

如果缺少curses.h文件,则安装

curses库

sudo apt-get install libncurses5-dev

 

./config执行过程中,有可能会提示没有awk,

是缺少其中一个版本,按照提示,安装gawk或者mawk即可

 

出现以下错误

[INFO ]  Installing cross-gdb
[EXTRA]    Configuring cross-gdb
[EXTRA]    Building cross-gdb
[ERROR]    configure: error: expat is missing or unusable
[ERROR]    make[2]: *** [configure-gdb] Error 1
[ERROR]    make[1]: *** [all] Error 2
[ERROR]  \
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing cross-gdb'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_debug_gdb_build[scripts/build/debug/300-gdb.sh@177]
[ERROR]  >>        called from: do_debug[scripts/build/debug.sh@35]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/local/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
[ERROR]  /
[ERROR]  (elapsed: 104:45.51)
[104:47] / make: *** [build] Error 2

则安装libexpat-dev

命令:sudo apt-get install libexpat-dev