交叉编译在目标板上执行helloworld时提示:“No such file or directory”
2017-11-19 11:59
681 查看
主机操作系统:Ubuntu 16.04.3
主机GCC版本:gcc-5.4.0
工具链版本:arm-none-linux-guneabi-gcc4.8.3 与 arm-none-linux-guneabi-gcc4.4.1
测试平台:Samsung S5P6818
交叉编译环境是自己搭建的,搭建好了需要测试下,就写了个简单的hello world程序,上传到目标板,更改权限,执行,提示:No such file or directory,思来想去,在网上也查了下,有人说是因为没有找到动态链接库,他给出的解决办法为将动态链接库手动添加到目标板系统的lib文件夹中,这种情况不适用于我,故我研究了下,目光集中在“动态链接库”这几个字上,然后,我就在编译时加入了“ -static ”选项,下载进目标板,执行,就又看到了熟悉的hello world!了,至此,问题解决
主机GCC版本:gcc-5.4.0
工具链版本:arm-none-linux-guneabi-gcc4.8.3 与 arm-none-linux-guneabi-gcc4.4.1
测试平台:Samsung S5P6818
交叉编译环境是自己搭建的,搭建好了需要测试下,就写了个简单的hello world程序,上传到目标板,更改权限,执行,提示:No such file or directory,思来想去,在网上也查了下,有人说是因为没有找到动态链接库,他给出的解决办法为将动态链接库手动添加到目标板系统的lib文件夹中,这种情况不适用于我,故我研究了下,目光集中在“动态链接库”这几个字上,然后,我就在编译时加入了“ -static ”选项,下载进目标板,执行,就又看到了熟悉的hello world!了,至此,问题解决
相关文章推荐
- ubuntu执行编译命令提示"No such file or directory"
- Linux执行.sh文件,提示No such file or directory的问题的解决方法
- Laravel执行migrate命令提示:No such file or directory的解决方法
- 编译出错提示 error trying to exec 'cc1': execvp: No such file or directory
- sublime text 3+mingw编译代码时错误提示:g++:error:No Such FIle or directory(已解决)
- VC++编译别人代码提示fatal error C1083: 无法打开包括文件:“afxcontrolbars.h”: No such file or directory
- 执行shell脚本时提示bad interpreter:No such file or directory的解决办法
- Linux执行可执行文件提示No such file or directory的解决方法
- android jar包 module里配置了可是编译找不到,提示No such file or directory
- 编译安装PDO_MYSQL拓展模块,总是提示No such file or directory
- 内核编译时提示错误error: sys/types.h: No such file or directory
- Linux执行.sh文件时提示No such file or directory
- 在cocos2d-x-3.0 android 平台编译时提示CocosGUI.h: No such file or directory
- 【转】Laravel执行migrate命令提示:No such file or directory的解决方法
- 目标板上运行程序提示 sh: xx : no such file or directory
- 内核编译时提示错误error: sys/types.h: No such file or directory
- 编译Uboot时提示error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
- ubuntu14.04 执行adb提示提示adb: No such file or directory
- 交叉编译器差异 - 执行可执行文件提示"No such file or directory"
- 交叉编译工具 No such file or directory