Error with FFMPEG

Ryan Schmidt ryandesign at macports.org
Fri May 8 21:56:22 PDT 2009


On May 8, 2009, at 19:18, David Evans wrote:

> Gus wrote:
>
>> Hi I am a newbie with this stuff but I have been trying to install  
>> ffmpeg via mac ports.
>> There was a failure building the x264 part which was due to an out  
>> dated version of Xcode which I have now updated to 3.1.2.
>>
>> When I attempt the installation again I get the following error....
>>
>> GusLaptop:~ Gus$ sudo port install ffmpeg
>> --->  Building x264
>> Error: Target org.macports.build returned: shell command " cd "/ 
>> opt/local/var/macports/build/ 
>> _opt_local_var_macports_sources_rsync.macports.org_release_ports_mult 
>> imedia_x264/work/x264-snapshot-20090408-2245" && make default "  
>> returned error 2
>> Command output: /usr/bin/gcc-4.0 -shared -o libx264.67.dylib  
>> common/mc.o common/predict.o common/pixel.o common/macroblock.o  
>> common/frame.o common/dct.o common/cpu.o common/cabac.o common/ 
>> common.o common/mdate.o common/set.o common/quant.o common/vlc.o  
>> encoder/analyse.o encoder/me.o encoder/ratecontrol.o encoder/set.o  
>> encoder/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/ 
>> encoder.o common/x86/mc-c.o common/x86/predict-c.o common/x86/ 
>> cabac-a.o common/x86/dct-a.o common/x86/deblock-a.o common/x86/mc- 
>> a.o common/x86/mc-a2.o common/x86/pixel-a.o common/x86/predict-a.o  
>> common/x86/quant-a.o common/x86/sad-a.o common/x86/cpu-a.o common/ 
>> x86/dct-32.o common/x86/pixel-32.o -dynamiclib -Wl,-single_module - 
>> Wl,-read_only_relocs,suppress -install_name /opt/local/lib/ 
>> libx264.67.dylib -L/opt/local/lib -lm -lmx -lpthread -s
>> ld64: warning: option -s is obsolete and being ignored
>> ld: absolute addressing (perhaps -mdynamic-no-pic) used in  
>> _x264_cabac_encode_decision_asm from common/x86/cabac-a.o not  
>> allowed in slidable image
>> collect2: ld returned 1 exit status
>> make: *** [libx264.67.dylib] Error 1
>>
>> Error: The following dependencies failed to build: x264 zlib
>> Error: Status 1 encountered during processing.
>> GusLaptop:~ Gus$
>>
>> I have subsequently tried to obtain zlib which appears have been OK
>> GusLaptop:~ Gus$ sudo port install zlib
>> Password:
>> --->  Fetching zlib
>> --->  Attempting to fetch zlib-1.2.3.tar.bz2 from http:// 
>> internap.dl.sourceforge.net/libpng
>> --->  Verifying checksum(s) for zlib
>> --->  Extracting zlib
>> --->  Applying patches to zlib
>> --->  Configuring zlib
>> --->  Building zlib
>> --->  Staging zlib into destroot
>> --->  Installing zlib @1.2.3_2
>> --->  Activating zlib @1.2.3_2
>> --->  Cleaning zlib
>>
>> subsequently reran the ffmpeg install and ..
>> GusLaptop:~ Gus$ sudo port install ffmpeg
>> --->  Building x264
>> Error: Target org.macports.build returned: shell command " cd "/ 
>> opt/local/var/macports/build/ 
>> _opt_local_var_macports_sources_rsync.macports.org_release_ports_mult 
>> imedia_x264/work/x264-snapshot-20090408-2245" && make default "  
>> returned error 2
>> Command output: /usr/bin/gcc-4.0 -shared -o libx264.67.dylib  
>> common/mc.o common/predict.o common/pixel.o common/macroblock.o  
>> common/frame.o common/dct.o common/cpu.o common/cabac.o common/ 
>> common.o common/mdate.o common/set.o common/quant.o common/vlc.o  
>> encoder/analyse.o encoder/me.o encoder/ratecontrol.o encoder/set.o  
>> encoder/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/ 
>> encoder.o common/x86/mc-c.o common/x86/predict-c.o common/x86/ 
>> cabac-a.o common/x86/dct-a.o common/x86/deblock-a.o common/x86/mc- 
>> a.o common/x86/mc-a2.o common/x86/pixel-a.o common/x86/predict-a.o  
>> common/x86/quant-a.o common/x86/sad-a.o common/x86/cpu-a.o common/ 
>> x86/dct-32.o common/x86/pixel-32.o -dynamiclib -Wl,-single_module - 
>> Wl,-read_only_relocs,suppress -install_name /opt/local/lib/ 
>> libx264.67.dylib -L/opt/local/lib -lm -lmx -lpthread -s
>> ld64: warning: option -s is obsolete and being ignored
>> ld: absolute addressing (perhaps -mdynamic-no-pic) used in  
>> _x264_cabac_encode_decision_asm from common/x86/cabac-a.o not  
>> allowed in slidable image
>> collect2: ld returned 1 exit status
>> make: *** [libx264.67.dylib] Error 1
>>
>> Error: The following dependencies failed to build: x264
>> Error: Status 1 encountered during processing.
>>
>>
>> What do i need to do to get this back on track ?

Since you have already updated Xcode, you just need to clean the port  
and try again.

sudo port clean x264
sudo port install x264


> You need to upgrade XCode to version 3.1 or better.  This is a know  
> error in version 3.0.

In that case, the x264 port should prevent installation on Leopard  
with Xcode versions earlier than 3.1. Some code for doing this which  
has been used in many ports already can be copied to the x264  
portfile from e.g. the graphviz portfile (though you'd adjust the  
required Xcode version number to 3.1).




More information about the macports-users mailing list