[FFmpeg-user] problem with make while attempting to build git clone of ffmpeg on OS X 10.6.8

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Mar 3 17:55:30 CET 2013


Paul Sturbaum <psturbs <at> gmail.com> writes:

> Just to be clear....  You want me to run
> 
> $ ./configure
> $ make
> $ gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat 
> -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample 
> -Wl,-dynamic,-search_paths_first  -o ffmpeg_g ffmpeg_opt.o 
> ffmpeg_filter.o ffmpeg.o cmdutils.o  -lavdevice -lavfilter -lavformat 
> -lavcodec -lswresample -lswscale -lavutil -L/opt/local/lib -lSDLmain 
> -Wl,-framework,AppKit -lSDL -Wl,-framework,Cocoa -lm -liconv -lbz2 -lz 
> 
> and then try moving the -liconv flag to just before 
> -L/opt/local/lib flag. RIght?

Yes and while you added output without your gcc line 
I assume you tested it but it still did not work;-(

> Here is the out from the first set of commands:
> 
> Undefined symbols:
>   "_iconv_close", referenced from:
>       _avcodec_decode_subtitle2 in libavcodec.a(utils.o)

As said this does not happen inside configure 
which uses a not-too-different line...

> Here is the output with -liconv moved to just before 
> -L/opt/local/lib:
> 
> Undefined symbols:
>   "_iconv_close", referenced from:
>       _avcodec_decode_subtitle2 in libavcodec.a(utils.o)

Which is the same problem;-(

If you would like to test something else, you could try 
to remove "-L/opt/local/lib", "-Wl,-framework,AppKit" 
and "-Wl,-framework,Cocoa" (one at a time) just to test 
if the output changes (compilation cannot succeed but 
maybe that changes something about how iconv is linked).

I wanted to suggest --disable-libsdl but I just realize 
it does not exist;-((

Another thing to try would be to edit the original 
linking line (above) so that instead of "gcc" you 
use "gcc -Wl,-v" - this will produce a huge output 
but perhaps it tells us what stupid things the linker 
does.

Finally, I just realize that I did have a similar 
problem on my ppc once:
Could you try to locate a static iconv library on your 
computer? Something like /usr/lib/libiconv.2.a ?
If you find it, you could try to add it to above line 
just as an additional object (perhaps after cmdutils.o) 
with its complete path.

Thank you, Carl Eugen



More information about the ffmpeg-user mailing list