免费注册 查看新帖 |

Chinaunix

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

请教vivi编译问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-08 17:06 |只看该作者 |倒序浏览
请教vivi编译问题,
我用redhat9,安装了交叉编译环境,已经按说明做了相关修改,但是编译不通过,好像是缺乏头文件:
make[2]: Entering directory `/mnt/MIT/vivi/lib'
/usr/local/arm/3.4.1/bin/arm-linux-gcc -I/mnt/MIT/vivi/include -I/mnt/MIT/linux-2.6.14.1/include -Wall -Wstrict-prototypes -O2 -fPIC -fomit-frame-pointer -mapcs-32   -malignment-traps -msoft-float    -c -o boot_kernel.o boot_kernel.c
boot_kernel.c: In function `setup_linux_param':
boot_kernel.c:188: error: invalid application of `sizeof' to incomplete type `param_struct'
boot_kernel.c:191: error: dereferencing pointer to incomplete type
boot_kernel.c:192: error: dereferencing pointer to incomplete type
boot_kernel.c:215: error: dereferencing pointer to incomplete type
make[2]: *** [boot_kernel.o] Error 1
make[2]: Leaving directory `/mnt/MIT/vivi/lib'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/mnt/MIT/vivi/lib'
make: *** [_dir_lib] Error 2

请问,这该如何解决?

论坛徽章:
0
2 [报告]
发表于 2008-01-08 17:53 |只看该作者
试下用2.95.3吧。我以前也试过用3.4.1是编译不过的。

论坛徽章:
0
3 [报告]
发表于 2008-01-08 18:17 |只看该作者
但是有不少文档的说明都使用3.4.1

论坛徽章:
0
4 [报告]
发表于 2008-01-08 21:10 |只看该作者
是吗?我记得redhat9是kernel 2.4的,如果我没记错的话?
因为编译时要调用kernel的头文件,或许是这方面的问题。
我只能说,我当时用3.4.1编译时从没成功过。

论坛徽章:
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 [报告]
发表于 2008-01-09 09:33 |只看该作者
编译器换2.95~~~~!

论坛徽章:
0
6 [报告]
发表于 2008-01-09 10:50 |只看该作者
把交叉环境换成2.95.3就解决了。谢谢两位
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP