[FFmpeg-user] ffmpeg-1.0 make failed on Fedora x86_64

Reindl Harald h.reindl at thelounge.net
Fri Oct 5 02:12:06 CEST 2012



Am 05.10.2012 01:48, schrieb Ram Hariharan:
> Hi,
> 
> I just now downloaded the latest ffmpeg-1.0 stable release and is running
> into compilation errors on a Fedora-16 system. I had the ffmpeg-0.11.1
> version earlier and it used to work just fine. I just upgraded and is
> running into this error. Can someone please point me what I am doing wrong?
> Thanks.
> 
> make: *** No rule to make target
> `libavcodec/x86/dsputil_mmx_rnd_template.c', needed by
> `libavcodec/x86/dsputil_mmx.o'.  Stop.
> 
> My system:
> $ uname -ap
> Linux lr421-m18 3.3.6-3.fc16.x86_64 #1 SMP Wed May 16 21:43:01 UTC 2012
> x86_64 x86_64 x86_64 GNU/Linux

i can not confirm this
compiles for me on F16/f17 x86_64 with all recent updates fine

maybe some bug fixed in the meantime - your system is HEAVILY outdated
3.4.11-1.fc16.x86_64 #1 SMP Sun Sep 16 13:50:06 UTC 2012

below my RPM-SPEC to build ffmpeg-1.0 statically under
/usr/local to install it without dependency-collisions
of rpmfusion-packages, but build works also fine with
--enable-shared and my previous one contained also
ffplay/ffserver/ffprobe - since the binary is around
10 MB large for each ff-aap i decided to compile only
ffmpeg itself and qt_faststart

on F17 it is easier because x264 is recent enough
____________________

on F16 i patched the x264 sources to build so.125
but let the version be so.116 and rebuild depending
packages for binary-compatibility

--- x264-original/x264.h        2012-04-28 21:27:24.000000000 +0200
+++ x264-patched/x264.h 2012-04-28 21:33:09.862272142 +0200
@@ -41,7 +41,7 @@
 #include "x264_config.h"
-#define X264_BUILD 125
+#define X264_BUILD 116
 /* Application developers planning to link against a shared library version of
  * libx264 from a Microsoft Visual Studio or similar development environment

x264-devel-0.0.0-0.38.20120524git0.125.2200.999b753.fc16.20120612.rh.x86_64
____________________

[builduser at testserver:~]$ cat /rpmbuild/SPECS/ffmpeg-latest.spec
%define            snapshot 20121003

Summary:           Hyper fast Audio and Video encoder
Name:              ffmpeg-latest
Version:           1.0
Release:           12%{?dist}.%snapshot
License:           GPLv3+
Group:             Applications/Multimedia
URL:               http://ffmpeg.org/
Source0:           ffmpeg-%snapshot.tar.bz2
Source1:           ffmpeg-snapshot-latest.sh
BuildRoot:         %{_tmppath}/%{name}-%{version}-%{release}-%{snapshot}-root-%(%{__id_u} -n)
BuildRequires:     bzip2-devel
BuildRequires:     dirac-devel
BuildRequires:     faac-devel
BuildRequires:     faad2-devel
BuildRequires:     gsm-devel
BuildRequires:     imlib2-devel
BuildRequires:     lame-devel
BuildRequires:     libdc1394-devel
BuildRequires:     libtheora-devel
BuildRequires:     libvdpau-devel
BuildRequires:     libvorbis-devel
BuildRequires:     openjpeg-devel
BuildRequires:     schroedinger-devel
BuildRequires:     SDL-devel
BuildRequires:     speex-devel
BuildRequires:     texi2html
BuildRequires:     x264-devel
BuildRequires:     xvidcore-devel
BuildRequires:     zlib-devel
BuildRequires:     opencore-amr-devel
BuildRequires:     libvpx-devel
BuildRequires:     librtmp-devel
BuildRequires:     opencv-devel
BuildRequires:     freetype-devel
BuildRequires:     yasm
Requires:          sh-utils
Requires(preun):   systemd-units
Requires(postun):  systemd-units
Obsoletes:         qt-faststart
Patch0:            ffmpeg-libx264-requires.patch

%description
FFMpeg is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash

%prep
%setup -q -n ffmpeg-%{snapshot}
#%patch0 -p1 -b .libx264-requires

%build
mkdir generic
pushd generic
../configure \
 --prefix=/usr/local \
 --bindir=/usr/local/bin \
 --datadir=/usr/local/share/ffmpeg \
 --incdir=/usr/local/include/ffmpeg \
 --libdir=/usr/local/lib64 \
 --mandir=/usr/local/man \
 --arch=x86_64 \
 --extra-cflags="-O3 -march=corei7 -mtune=corei7 -mmmx -msse2 -msse3 -msse4.1 -msse4.2 -fopenmp -mfpmath=sse
-fstack-protector --param=ssp-buffer-size=4 -pipe -D_FORTIFY_SOURCE=2 -fexceptions" \
 --extra-version=thelounge.net \
 --enable-nonfree \
 --enable-gpl \
 --enable-version3 \
 --enable-libopencore-amrnb \
 --enable-libopencore-amrwb \
 --enable-libfaac \
 --enable-libgsm \
 --enable-libmp3lame \
 --enable-libopenjpeg \
 --enable-libschroedinger \
 --enable-libtheora \
 --enable-libvorbis \
 --enable-libx264 \
 --enable-libxvid \
 --enable-libvpx \
 --enable-librtmp \
 --enable-avfilter \
 --enable-postproc \
 --enable-swscale \
 --enable-bzlib \
 --enable-zlib \
 --enable-libfreetype \
 --enable-pthreads \
 --enable-pic \
 --enable-libopencv \
 --enable-static \
 --enable-runtime-cpudetect \
 --disable-libspeex \
 --disable-vdpau \
 --disable-vaapi \
 --disable-hwaccels \
 --disable-shared \
 --disable-libdc1394 \
 --disable-devices \
 --disable-amd3dnow \
 --disable-amd3dnowext \
 --disable-protocol=gopher \
 --disable-ffserver \
 --disable-ffplay \
 --disable-ffprobe \
 --disable-avdevice \
 --disable-debug \
 --disable-htmlpages \
 --disable-podpages \
 --disable-txtpages \
 --shlibdir=/usr/local/lib64

make %{?_smp_mflags}
make documentation
popd
CURRENT_DIR=`pwd`
mkdir -p %{buildroot}/usr/local/bin/
gcc $CURRENT_DIR/tools/qt-faststart.c -o qt-faststart

%install
rm -rf $RPM_BUILD_ROOT
pushd generic
make install DESTDIR=$RPM_BUILD_ROOT
popd
install -D -m0755 qt-faststart "%{buildroot}/usr/local/bin/qt-faststart"
rm -rf $RPM_BUILD_ROOT/usr/local/include/ffmpeg/
rm -rf $RPM_BUILD_ROOT/usr/local/lib64/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc COPYING.* CREDITS README
/usr/local/bin/ffmpeg
/usr/local/bin/qt-faststart
/usr/local/man/man1/ffmpeg.1*
/usr/local/share/ffmpeg

%changelog
* Wed Oct 03 2012 Reindl Harald <h.reindl at thelounge.net>
- build ffmpeg 1.0 as package under /usr/local/
- static build to not collide with fedora packages


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20121005/a5d2ed09/attachment.asc>


More information about the ffmpeg-user mailing list