[Ffmpeg-devel] ffmpeg Compile Error

Guillaume POIRIER poirierg
Tue May 16 00:18:53 CEST 2006


Hi,

On 5/15/06, Kyle Nelson <nelsok at gmail.com> wrote:
> I am running FC4
>
> My goal is to take snapshots of uplodaed videos and convert all uploaded
> videos to flv
>
> I used cvs:
>
> cvs -z9 -d:pserver:anonymous at mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
>
> Ran this from ffmpeg dir.
>
>  ./configure --prefix=/usr/bin --extra-cflags=-mcpu=pentium4 --disable-debug
> --disable-audio-oss --disable-network --disable-vhook --disable-ffserver
> --disable-ffplay
>
> Ran this:
>
> make
>
> And I got this error:
>
> i386/fft_3dn2.c: In function ?ff_fft_calc_3dn2?:
> i386/fft_3dn2.c:66: warning: implicit declaration of function ?_m_pswapd?
> i386/fft_3dn2.c:66: error: incompatible types in assignment
> i386/fft_3dn2.c:105: error: incompatible types in assignment
> i386/fft_3dn2.c:106: error: incompatible types in assignment
> i386/fft_3dn2.c:112: warning: implicit declaration of function ?_m_pfpnacc?
> i386/fft_3dn2.c:112: error: incompatible types in assignment
> i386/fft_3dn2.c:113: error: incompatible types in assignment
> make[1]: *** [i386/fft_3dn2.o] Error 1
> make[1]: Leaving directory `/usr/bin/ffmpeg/libavcodec'
> make: *** [lib] Error 2

Please try this patch so see if it fixes your problem.

Don't forget to re-run ./configure before.

-- 
An Israeli man's life was saved when he was given a Palestinian man's
heart in a heart transplant operation. The guy is doing fine, but the
bad news is, he can't stop throwing rocks at himself.
  -- Jay Leno
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
retrieving revision 1.271
diff -u -r1.271 configure
--- configure	15 May 2006 19:53:55 -0000	1.271
+++ configure	15 May 2006 22:17:58 -0000
@@ -1110,13 +1110,15 @@
 cat > $TMPC << EOF
 #include <mm3dnow.h>
 int main(void) {
+__m64 b1;
+b1 = _m_pswapd(b1);
 _m_femms();
 return 0;
 }
 EOF
 
 mm3dnow=no
-if $cc -m3dnow -o $TMPO $TMPC 2> /dev/null ; then
+if $cc -march=k8 -o $TMPO $TMPC 2> /dev/null ; then
   mm3dnow=yes
 fi
 



More information about the ffmpeg-devel mailing list