Arm 交叉环境搭建 Ubuntu14.04

就一句打开/etc/profile

在最后添加“export PATH=/root/tools/gcc-linaro-arm-linux-gnueabihf-***_linux/bin:$PATH;”

不过在验证arm-linux-gnueabihf-***-gcc -v会出现“No such file or directory”。

 

解决办法:

ubuntu 13之后移除了ia32-libs。所以搭建交叉编译环境比较麻烦。

装好了64位版本及交叉编译工具链后,运行GCC,依然会提示那经典的“没有那个文件或目录”或者“No such file or directory”提示。

根据以往的经验,对于64位版本ubuntu我们需要安装“ia32-libs”依赖库

安装它推荐的apt-get install lib32z1

安装它推荐的sudo apt-get install lib32stdc++6

 

make meunconfig ARCH=arm,出现 Install ncurses (ncurses-devel)and try again. 

解决办法:apt-get install libncurses-dev.

posted @ 2017-03-01 18:02  葫芦娃Vs奥特曼  阅读(174)  评论(0编辑  收藏  举报