ffmpeg compilation on ubuntu - another thread
Posted: Sun Apr 06, 2008 12:24 pm
I'm still having trouble compiling ffmpeg on ubuntu, as it looks like others are too.
I've been following the recent ubuntu install guide but getting stuck at the ffmpeg bit. This seems to be a common problem across all platforms at the moment. I can build zm using the packaged ffmpeg on suse 10.3, but it wont generate videos.
Anyway, can anyone get ffmpeg compiled on the current 7.10 ubuntu.
If I use the current ffmpeg svn, I get:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
. ./configure --enable-shared --enable-postproc --enable-swscale --enable-gpl --prefix=/opt/
Checked out external at revision 26334.
Checked out revision 12758.
/tmp/ffmpeg/current/ffmpeg# . ./configure --enable-shared --enable-postproc --enable-swscale --enable-gpl --prefix=/opt/ | more
sed: can't read /bin/libavcodec/allcodecs.c: No such file or directory
sed: can't read /bin/libavcodec/allcodecs.c: No such file or directory
sed: can't read /bin/libavcodec/allcodecs.c: No such file or directory
sed: can't read /bin/libavcodec/allcodecs.c: No such file or directory
sed: can't read /bin/libavformat/allformats.c: No such file or directory
sed: can't read /bin/libavformat/allformats.c: No such file or directory
sed: can't read /bin/libavdevice/alldevices.c: No such file or directory
sed: can't read /bin/libavdevice/alldevices.c: No such file or directory
sed: can't read /bin/libavformat/allformats.c: No such file or directory
sed: can't read /bin/libavfilter/allfilters.c: No such file or directory
I cannot do a make after this.
If I try to use an older version:
svn checkout -r 11637 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
Checked out external at revision 26334.
Checked out revision 11637.
cd ffmpeg
./configure --enable-shared --enable-pp --enable-swscaler --enable-gpl --prefix=/opt/
make
make causes lots of errors - the last of which is below. See the main install guide thread for the full error as posted by somebody else.
rgb2rgb_template.c:1309: error: memory input 2 is not directly addressable
rgb2rgb_template.c:1309: error: memory input 3 is not directly addressable
rgb2rgb_template.c:1309: error: memory input 4 is not directly addressable
rgb2rgb_template.c: In function ‘rgb32tobgr32_3DNOW’:
rgb2rgb_template.c:1419: error: ‘mask32b’ undeclared (first use in this function)
rgb2rgb_template.c:1419: error: ‘mask32r’ undeclared (first use in this function)
rgb2rgb_template.c:1419: error: ‘mmx_one’ undeclared (first use in this function)
rgb2rgb_template.c:1371: error: memory input 3 is not directly addressable
rgb2rgb_template.c:1371: error: memory input 4 is not directly addressable
rgb2rgb_template.c:1371: error: memory input 5 is not directly addressable
make[1]: *** [rgb2rgb.o] Error 1
make[1]: Leaving directory `/tmp/ffmpeg/old/ffmpeg/libswscale'
make: *** [lib] Error 2
Could somebody who has got it to work themselves please have another go with the current release of ffmpeg and document the steps involved? Obviously you dont have to do a make install - just get the thing compiled.
As I said this doesn't just seem to be affecting me - it seems others are getting the same problem.
Before anyone suggests I really dont want to use the .deb package. I've installed from source on other platforms and much prefer the control it gives me.
Thanks
I've been following the recent ubuntu install guide but getting stuck at the ffmpeg bit. This seems to be a common problem across all platforms at the moment. I can build zm using the packaged ffmpeg on suse 10.3, but it wont generate videos.
Anyway, can anyone get ffmpeg compiled on the current 7.10 ubuntu.
If I use the current ffmpeg svn, I get:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
. ./configure --enable-shared --enable-postproc --enable-swscale --enable-gpl --prefix=/opt/
Checked out external at revision 26334.
Checked out revision 12758.
/tmp/ffmpeg/current/ffmpeg# . ./configure --enable-shared --enable-postproc --enable-swscale --enable-gpl --prefix=/opt/ | more
sed: can't read /bin/libavcodec/allcodecs.c: No such file or directory
sed: can't read /bin/libavcodec/allcodecs.c: No such file or directory
sed: can't read /bin/libavcodec/allcodecs.c: No such file or directory
sed: can't read /bin/libavcodec/allcodecs.c: No such file or directory
sed: can't read /bin/libavformat/allformats.c: No such file or directory
sed: can't read /bin/libavformat/allformats.c: No such file or directory
sed: can't read /bin/libavdevice/alldevices.c: No such file or directory
sed: can't read /bin/libavdevice/alldevices.c: No such file or directory
sed: can't read /bin/libavformat/allformats.c: No such file or directory
sed: can't read /bin/libavfilter/allfilters.c: No such file or directory
I cannot do a make after this.
If I try to use an older version:
svn checkout -r 11637 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
Checked out external at revision 26334.
Checked out revision 11637.
cd ffmpeg
./configure --enable-shared --enable-pp --enable-swscaler --enable-gpl --prefix=/opt/
make
make causes lots of errors - the last of which is below. See the main install guide thread for the full error as posted by somebody else.
rgb2rgb_template.c:1309: error: memory input 2 is not directly addressable
rgb2rgb_template.c:1309: error: memory input 3 is not directly addressable
rgb2rgb_template.c:1309: error: memory input 4 is not directly addressable
rgb2rgb_template.c: In function ‘rgb32tobgr32_3DNOW’:
rgb2rgb_template.c:1419: error: ‘mask32b’ undeclared (first use in this function)
rgb2rgb_template.c:1419: error: ‘mask32r’ undeclared (first use in this function)
rgb2rgb_template.c:1419: error: ‘mmx_one’ undeclared (first use in this function)
rgb2rgb_template.c:1371: error: memory input 3 is not directly addressable
rgb2rgb_template.c:1371: error: memory input 4 is not directly addressable
rgb2rgb_template.c:1371: error: memory input 5 is not directly addressable
make[1]: *** [rgb2rgb.o] Error 1
make[1]: Leaving directory `/tmp/ffmpeg/old/ffmpeg/libswscale'
make: *** [lib] Error 2
Could somebody who has got it to work themselves please have another go with the current release of ffmpeg and document the steps involved? Obviously you dont have to do a make install - just get the thing compiled.
As I said this doesn't just seem to be affecting me - it seems others are getting the same problem.
Before anyone suggests I really dont want to use the .deb package. I've installed from source on other platforms and much prefer the control it gives me.
Thanks