arm交叉编译工具使用报错

运行报错:

liyongjun@liyongjun-VirtualBox:~$ arm-linux-gnueabihf-gcc
bash: /home/liyongjun/anosi/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin/arm-linux-gnueabihf-gcc: 没有那个文件或目录

产生这个问题的原因是:ubuntu系统是64位的,交叉编译器是32位的,不兼容无法运行

解决:
安装32位的库

liyongjun@liyongjun-VirtualBox:~$ sudo apt-get install lib32ncurses5 lib32z1

还是报错

liyongjun@liyongjun-VirtualBox:~$ arm-linux-gnueabihf-gcc
arm-linux-gnueabihf-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

解决:继续装库

liyongjun@liyongjun-VirtualBox:~$ sudo apt-get install lib32stdc++6

你可能感兴趣的:(ARM)