免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1644 | 回复: 9
打印 上一主题 下一主题

版本不同 运行不起来吗?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-01 18:03 |只看该作者 |倒序浏览
宿主机  2.6.18

目标板  2.6.22

宿主机编译的spcaview  spcagui  运行正常

下载到目标板上出错~~~

请问有没有什么方法解决呢??  升级内核吗?  或者有什么编译选项  设置路径??

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
2 [报告]
发表于 2009-06-01 18:04 |只看该作者
出什么错?

论坛徽章:
0
3 [报告]
发表于 2009-06-01 18:11 |只看该作者
宿主机上 ./spcagui  是没问题的

下载到板子上  就出现    syntax error "(" exported

论坛徽章:
0
4 [报告]
发表于 2009-06-01 18:59 |只看该作者
错误信息     Syntax error: "(" unexpected

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
5 [报告]
发表于 2009-06-01 21:19 |只看该作者
板子上的你需要交叉编译一下

论坛徽章:
0
6 [报告]
发表于 2009-06-02 09:39 |只看该作者
我用的是spca20060127版本
直接解压后就有makefile的, 没有configure文件

直接修改makefile

添加:
CROSS_COMPILE = /bejoey/tools/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-
CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld
ARCH = arm

make, 然后一大堆错误。。。。

论坛徽章:
0
7 [报告]
发表于 2009-06-02 09:40 |只看该作者
贴一部分 错误信息吧, 大部分是和SDL 有关的。。
当时直接在宿主机编译的时候 提示需要SDL和 SDL-devel
然后就安装了SDL和SDL-devel在宿主机上 路径为/usr/include/SDL/

改为交叉编译的话,怀疑是因为缺少SDL吧,
是不是因为使用交叉编译 就用不到 /usr/include/ 下的头文件呢???

In file included from /usr/include/SDL/SDL_events.h:32,
from /usr/include/SDL/SDL.h:35,
from /usr/include/SDL/SDL_image.h:30,
from gui.h:12,
from spcagui.c:23:
/usr/include/SDL/SDL_mouse.h:40: error: syntax error before "SDL_Rect"
/usr/include/SDL/SDL_mouse.h:40: warning: no semicolon at end of struct or union
/usr/include/SDL/SDL_mouse.h:42: error: syntax error before '*' token
/usr/include/SDL/SDL_mouse.h:42: warning: data definition has no type or storage class

。。。。。
In file included from spcagui.c:23:
gui.h:41: error: syntax error before "SDL_Surface"
gui.h:41: warning: no semicolon at end of struct or union
gui.h:42: warning: data definition has no type or storage class
gui.h:43: error: syntax error before '}' token
gui.h:51: error: syntax error before "SDL_Surface"
。。。。。

spcagui.c:212: error: invalid use of undefined type `struct button'
spcagui.c:213: error: invalid use of undefined type `struct button'
spcagui.c:214: error: invalid use of undefined type `struct button'
spcagui.c:215: error: invalid use of undefined type `struct button'
spcagui.c:216: error: invalid use of undefined type `struct button'

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
8 [报告]
发表于 2009-06-02 10:43 |只看该作者
是的
你需要交叉编译下SDL

论坛徽章:
0
9 [报告]
发表于 2009-06-02 10:52 |只看该作者
不错不错~

评分

参与人数 1可用积分 -30 信誉积分 -6 收起 理由
T-bagwell -30 -6 严惩回答无关内容的

查看全部评分

论坛徽章:
0
10 [报告]
发表于 2009-06-03 09:11 |只看该作者
而且,最好是静态链接库,省点麻烦。

评分

参与人数 1可用积分 +15 收起 理由
T-bagwell + 15 我很赞同

查看全部评分

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP