首先要将交叉编译工具安装好,在/etc/profile中设置好路径。linux
一、确保要编译的源码不要在虚拟机的共享文件夹目录,不然会报链接错误(ld: fail...)
bash
二、 /bin/bash: /usr/local/cross_compiler/Linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
工具
这是由于咱们在64位的机器上运行32位的gcc交叉编译器致使的。es5
其实解决这个问题的过程,也就是解决64位机兼容32位可执行程序的过程。.net
具体解决方法以下;orm
apt-get install lib32ncurses5
get