Chinaunix
标题:
安装ffmpeg,make时错误~
[打印本页]
作者:
superxeonman
时间:
2009-09-24 08:28
标题:
安装ffmpeg,make时错误~
想在学校集群上弄个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的
作者:
emmoblin
时间:
2009-09-24 11:34
common.c:27:
看看27行是什么内容?
作者:
superxeonman
时间:
2009-09-24 13:14
没什么特殊语句
作者:
badb0y
时间:
2009-09-24 16:41
你的是64位的系统?
作者:
superxeonman
时间:
2009-09-24 17:22
嗯,应该是64位的
作者:
superxeonman
时间:
2009-09-25 10:44
nobody comes to my rescue?
:em11: :em11:
作者:
kns1024wh
时间:
2009-09-28 15:22
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
复制代码
这个是解决问题的基础 去修改源码
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2