主题 : 用qt4编译的hello程序传到arm板上面执行,提示not find 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 10345
精华: 0
发帖: 12
金钱: 120 两
威望: 60 点
综合积分: 24 分
注册时间: 2009-11-01
最后登录: 2009-12-05
楼主  发表于: 2009-11-18 13:03

 用qt4编译的hello程序传到arm板上面执行,提示not find

我用qt4编译的hello程序(二进制)用ftp传到arm板上面执行,提示not find。
正常情况下,应该是提示差几个库,然后将相应的库文件传到arm板上面,设置一下环境变量即可正确执行。
清高手指教。谢谢!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-11-18 13:40
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 10345
精华: 0
发帖: 12
金钱: 120 两
威望: 60 点
综合积分: 24 分
注册时间: 2009-11-01
最后登录: 2009-12-05
2楼  发表于: 2009-11-18 20:07
版主好,http://www.aiothome.com/bbs/read.php?tid-2182.html的问题我遇到过,当时我是这样解觉的,
交叉编译的时候,我用以下命令:
arm-linux-gcc -static hello.c -o hello.o
这样编译后,将生成的二进制文件下载到arm版上面就可以正确的执行。
但是现在我用qt4编译后的程序遇到了同样的问题,我真的不知如何解决,请指点!
谢谢!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-11-18 21:39
1. 确保你用来编译qt4和hello程序的编译器所支持的ABI类型和内核支持的ABI类型相匹配(arm-linux-gcc 4.3.2 + Linux 2.6.29 = EABI)
2. 确保hello程序所需要链接的qt4的库在开发板的文件系统里。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."