免费注册 查看新帖 |

Chinaunix

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

安装ffmpeg,make时错误~ [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-24 08:28 |只看该作者 |倒序浏览
想在学校集群上弄个ffmpeg
按照http://yezi.javaeye.com/blog/139399的方法
安装了各种解码器,安装时都有./configure --prefix=/home/username/ffmpeg --enable-shared参数(安装在自己的路径下)
只有第七个没有安装上(感觉估计只是ffmpeg少了一种支持的格式,应该影响不大)

接着安装ffmpeg,首先  ./configure --prefix=/home/username/ffmpeg --enable-gpl --enable-shared --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libamr-nb --enable-libamr-wb --enable-libxvid --enable-libx264 --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-pp --enable-pthreads --disable-ffserver --disable-ffplay
成功~
接着make就出错了:
make -C libavcodec all
make[1]: Entering directory `/home/username/ffmpeg-0.4.8/libavcodec'
gcc -g -O3 -Wall -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c
In file included from avcodec.h:14,
                 from common.c:27:
common.h:68: error: array type has incomplete element type
common.h:70: error: array type has incomplete element type
make[1]: *** [common.o] Error 1
make[1]: Leaving directory `/home/username/ffmpeg-0.4.8/libavcodec'
make: *** [lib] Error 2

这是什么错误,应该怎么弄?

ps:集群SUSE10,gcc4.1.2的

论坛徽章:
0
2 [报告]
发表于 2009-09-24 11:34 |只看该作者
common.c:27:
看看27行是什么内容?

论坛徽章:
0
3 [报告]
发表于 2009-09-24 13:14 |只看该作者
没什么特殊语句

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之上海
日期:2016-05-05 09:45:14
4 [报告]
发表于 2009-09-24 16:41 |只看该作者
你的是64位的系统?

论坛徽章:
0
5 [报告]
发表于 2009-09-24 17:22 |只看该作者
嗯,应该是64位的

论坛徽章:
0
6 [报告]
发表于 2009-09-25 10:44 |只看该作者
nobody comes to my rescue?

:em11: :em11:

论坛徽章:
0
7 [报告]
发表于 2009-09-28 15:22 |只看该作者
  1. gcc -g -O3 -Wall -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c
  2. In file included from avcodec.h:14,
  3.                  from common.c:27:
  4. common.h:68: error: array type has incomplete element type
  5. common.h:70: error: array type has incomplete element type
复制代码


这个是解决问题的基础 去修改源码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP