Opened 12 years ago

Closed 12 years ago

#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 (5)

comment:1 by Carl Eugen Hoyos, 12 years ago

Component: FFmpegbuild system

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

comment:2 by Xtophe, 12 years ago

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.

in reply to:  2 ; comment:3 by Carl Eugen Hoyos, 12 years ago

Replying to Xtophe:

This can be closed.

Does your original configure line work now?

in reply to:  3 comment:4 by Xtophe, 12 years ago

Replying to cehoyos:

Replying to Xtophe:

This can be closed.

Does your original configure line work now?

Yes it does.

comment:5 by Carl Eugen Hoyos, 12 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.