[FFmpeg-devel] [PATCH] set HAVE_MMX2 in config.h

Gert Vervoort gert.vervoort
Tue Mar 18 22:57:56 CET 2008


Enabling HAVE_MMX2 for swscale gives an linker error on x86-64 when 
compiling as a shared library:

gcc -shared -Wl,-soname,libswscale.so.0 -L"/tmp/ffmpeg"/libavutil 
-rdynamic -export-dynamic -Wl,--warn-common -Wl,--as-needed 
-Wl,-rpath-link,"/tmp/ffmpeg"/libavcodec 
-Wl,-rpath-link,"/tmp/ffmpeg"/libavformat 
-Wl,-rpath-link,"/tmp/ffmpeg"/libavutil -Wl,-Bsymbolic -o 
libswscale.so.0 rgb2rgb.o swscale.o yuv2rgb.o -lavutil -lz -pthread -lm 
-lamrnb -lm -lamrwb -lm -lfaac -lfaad -lmp3lame -lm   -ldl -ldl -lX11 
-lXext
/usr/bin/ld: swscale.o: relocation R_X86_64_32S against `a local symbol' 
can not be used when making a shared object; recompile with -fPIC
swscale.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libswscale.so.0] Error 1
make[1]: Leaving directory `/tmp/ffmpeg/libswscale'
make: *** [lib] Error 2
[gert at apollo ffmpeg]$





Alexander Strange wrote:
> configure sets HAVE_MMX, but not HAVE_MMX2. This doesn't affect 
> dsputil, which only uses HAVE_MMX, but it disabled some code in 
> swscale, postproc, and dct-test.
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel





More information about the ffmpeg-devel mailing list