移植交叉编译工具,存在的问题与解决方法
在终端下执行 arm-linux-gnueabihf-gcc -v
提示错误 -bash: arm-linux-gnueabihf-gcc: cannot execute binary file: Exec format error
交叉编译器的版本不对,x86-64表示64位系统
查看系统的位数 uname -a 显示 i686 表示32位
所以重新下载32位的交叉工具,最终显示的信息,代表交叉工具链可以使用
移植交叉编译工具,存在的问题与解决方法
在终端下执行 arm-linux-gnueabihf-gcc -v
提示错误 -bash: arm-linux-gnueabihf-gcc: cannot execute binary file: Exec format error
交叉编译器的版本不对,x86-64表示64位系统
查看系统的位数 uname -a 显示 i686 表示32位
所以重新下载32位的交叉工具,最终显示的信息,代表交叉工具链可以使用