当前时区 GMT+8, 现在时间是 2008-10-8 04:40 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: 为armlinux添加应用,运行则提示未发现
twmt
新手上路
Rank: 1


UID 120289
精华 0
积分 75
帖子 30
阅读权限 10
注册 2004-4-30
来自 China
状态 离线
发表于 2006-8-3 11:01  资料  短消息  加为好友 
为armlinux添加应用,运行则提示未发现

环境:
skyeye-0.9.8
testsuite2/s3c2410/2.4.18/

方法:
1、arm-linux-gcc -o hello hello.c
2、mount -o loop initrd.img /mnt/xdisk/
3、cp hello /mnt/xdisk/bin/
     umount /mnt/xdisk

4、
skyeye vmlinuz
#target sim
#load
#run

5、在bin目录中存在hello程序,但运行/bin/hello时,提示
/ # /bin/hello
/bin/ash: /bin/hello: not found


请问哪里出错了?谢谢!

另外,hello的文件格式为
[root@LinuxServer skyeye-2410]# file hello
hello: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), not stripped

顶部
twmt
新手上路
Rank: 1


UID 120289
精华 0
积分 75
帖子 30
阅读权限 10
注册 2004-4-30
来自 China
状态 离线
发表于 2006-8-4 09:16  资料  短消息  加为好友 
为什么没有人回复一下啊?

难道大家的都运行正常吗?
请给点提示吧。

谢谢!

顶部
tomeiningen
新手上路
Rank: 1


UID 223161
精华 0
积分 5
帖子 2
阅读权限 10
注册 2006-8-4
状态 离线
发表于 2006-8-4 13:44  资料  短消息  加为好友 
shared libraries missing?


顶部
twmt
新手上路
Rank: 1


UID 120289
精华 0
积分 75
帖子 30
阅读权限 10
注册 2004-4-30
来自 China
状态 离线
发表于 2006-8-4 14:47  资料  短消息  加为好友 
是的,是因为动态库的原因

我编译时增加了static选项就可以了。谢谢tomeiningen了!

顶部
tomeiningen
新手上路
Rank: 1


UID 223161
精华 0
积分 5
帖子 2
阅读权限 10
注册 2006-8-4
状态 离线
发表于 2006-8-4 14:55  资料  短消息  加为好友 
到我请教你了 。 你的arm-linux-gcc使那里下载的?我用了static选项,还是跑不成:

/bin # ./hello
./hello: 6: Syntax error: word unexpected (expecting ")")

我是在这里下的:
http://www.handhelds.org/download/projects/toolchain/archive/arm-linux-gcc\
-3.3.1-030820.tar.bz2

顶部
twmt
新手上路
Rank: 1


UID 120289
精华 0
积分 75
帖子 30
阅读权限 10
注册 2004-4-30
来自 China
状态 离线
发表于 2006-8-4 15:00  资料  短消息  加为好友 
我买了skyeye的书,随书光盘里有开发环境的

顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP