Opened 6 years ago

Closed 6 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 Changed 6 years ago by cehoyos

  • Component changed from FFmpeg to build 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 follow-up: Changed 6 years 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.

comment:3 in reply to: ↑ 2 ; follow-up: Changed 6 years ago by cehoyos

Replying to Xtophe:

This can be closed.

Does your original configure line work now?

comment:4 in reply to: ↑ 3 Changed 6 years ago by Xtophe

Replying to cehoyos:

Replying to Xtophe:

This can be closed.

Does your original configure line work now?

Yes it does.

comment:5 Changed 6 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.