Error with FFMPEG

David Evans devans at macports.org
Fri May 8 17:18:08 PDT 2009


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_multimedia_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_multimedia_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 ?
>> Muchas Graias Todos !
>>
>> Angus Denton
>> Asparagus Arts
>> Web and Database constructions
You need to upgrade XCode to version 3.1 or better.  This is a know 
error in version 3.0.



More information about the macports-users mailing list