[FFmpeg-devel] MacOS X Compile error with swscale

Scott Harper orcein
Sat Mar 29 18:21:11 CET 2008


On Mar 29, 2008, at 10:25 AM, Diego Biurrun wrote:
> On Sat, Mar 29, 2008 at 04:47:54AM -0600, Scott Harper wrote:
>> I'm using the latest svn as of this writing.
>>
>> I configure ffmpeg as follows:
>>
>> ./configure --enable-shared --enable-gpl --disable-mmx --enable-
>> libmp3lame --disable-vhook --enable-libfaad --enable-libfaac -- 
>> enable-
>> swscale
>>
>> And I get the following error:
>>
>> [snip]
>>
>> Looks like it's still trying to use some MMX code, even though I
>> disabled it, perhaps?  (I'm open to being completely wrong about  
>> this.)
>
> It is trying to use MMX2 code, not MMX code.  You could add
> --disable-mmx2 to the command line to make compilation go through
> or try the patch I created to fix the situation.

Now I get the following error, I think somewhat later on:

gcc -dynamiclib -Wl,-single_module -Wl,-install_name,/usr/local/lib/ 
libswscale.dylib,-current_version,0.5.1,-compatibility_version,0 -Wl,- 
read_only_relocs,suppress -L"/Users/orcein/src/ffmpeg"/libavutil -Wl,- 
dynamic,-search_paths_first  -o libswscale.0.dylib rgb2rgb.o swscale.o  
yuv2rgb.o -lavutil -lz -lm -lfaac -lfaad -lmp3lame -lm
ld: absolute addressing (perhaps -mdynamic-no-pic) used in  
_rgb24tobgr24_MMX from rgb2rgb.o not allowed in slidable image
collect2: ld returned 1 exit status
make[1]: *** [libswscale.0.dylib] Error 1
make: *** [lib] Error 2

-- Scott




More information about the ffmpeg-devel mailing list