-/bin/sh: ./hello: not found
问题解决如下:
一、原因如下:
Build Options->
Build BusyBox as a static binary (no shared libs)
Build with Large File Support (for accessing file>2GB)
如果选择Build BusyBox as a static binary (no shared libs)方式进行编译时,所需的库已经与程序静态地链接到一起,这些程序不需要额外的库就可以单独运行,但是自己编写的程序在文件系统上运行必须采用静态编译,否则会报错,例如:-/bin/sh: ./hello: not found.
静态编译如下:
arm-linux-gcc -static hello.c -o hello
阅读(1683) | 评论(0) | 转发(0) |