Ticket #1685 (closed defect: invalid)
Compiling FFmpeg with libass does nor work with OSX10.8
| Reported by: | Xtophe | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | build system |
| Version: | git-master | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Summary of the bug:
I keep getting the following error when compiling the latest git FFmpeg:
Undefined symbols for architecture x86_64:
"_libiconv", referenced from:
_sub_recode in libass.a(ass.o)
"_libiconv_close", referenced from:
_sub_recode in libass.a(ass.o)
"_libiconv_open", referenced from:
_sub_recode in libass.a(ass.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: * [ffmpeg_g] Error 1
make: * Waiting for unfinished jobs....
How to reproduce:
Build with:
./configure --prefix=${SOURCE} --as=yasm --enable-gpl --enable-pthreads --disable-ffplay --disable-ffserver --enable-avfilter --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --arch=x86 --enable-runtime-cpudetect && make -j 4 && make install
If the full output is needed .. let me know.
Change History
comment:2 follow-up: ↓ 3 Changed 9 months ago by Xtophe
I just found the problem.
Seems it couldn't find "liconv"
Added this to the LDFLAGS and it compiled fine.
But I found another issue when using libass. I will open a new ticket for that.
This can be closed.



Is this also reproducible with the following shorter configure line?
$ ,/configure --enable-libass
What does pkg-config report for libass?
$ pkg-config --libs libass
Workaround should be to pass --extra-ldflags=-liconv