天嵌 ARM开发社区

 找回密码
 注册
查看: 1649|回复: 2

交叉编译应用程序无法执行

[复制链接]
hooao 发表于 2010-10-31 13:53:37 | 显示全部楼层 |阅读模式
问题症状(假设我的应用程序名字为a.out):
$:ls
a.out
$./a.out
-bin/sh:./a.out:not found

问题描述:我用的是天嵌20091030更新的2.6.30的内核及其相应的文件系统。交叉编译工具是4.3.3的。编译应用程序的时候,由于4.3.3无法编译,所以用了2.95.3版本的。不知道是不是编译器版本的不同导致了这个错误。
编译应用程序用4.3.3的时候,遇到这个错误:
../../encoder/plugins/ratecontrol.c:241: error: static declaration of 'rc_update_pic' follows                                                                 non-static declaration
../../encoder/plugins/ratecontrol.c:77: error: previous declaration of 'rc_update_pic' was he                                                                re
../../encoder/plugins/ratecontrol.c:594: error: static declaration of 'rc_update_quad_model'                                                                 follows non-static declaration
../../encoder/plugins/ratecontrol.c:81: error: previous declaration of 'rc_update_quad_model'                                                                 was here
../../encoder/plugins/ratecontrol.c: In function 'rc_create':
../../encoder/plugins/ratecontrol.c:668: warning: assignment from incompatible pointer type
make: *** [../obj/ratecontrol.o] Error 1
我不知道该怎么解决,还请大家指教。
 楼主| hooao 发表于 2010-10-31 15:05:09 | 显示全部楼层
本帖最后由 hooao 于 2010-10-31 15:06 编辑

问题已经解决。呵呵:victory:
前面一部分,应该是编译器版本不同引起的。后面一部分,按照提示,把模块里面对应的static去掉就ok
天嵌_support1 发表于 2010-11-1 12:21:48 | 显示全部楼层
:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-5 20:21 , Processed in 1.045938 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表