[FFmpeg-user] configure results in SDL2 support no

桃源老師 xanadu6291 at dream.jp
Wed Nov 9 17:14:59 EET 2016


Hello Moritz-san,

> 2016/11/09 11:21P.M. Moritz Barsnick <barsnick <at> gmx.net> wrote:
> 
> On Wed, Nov 09, 2016 at 20:20:33 +0900, 桃源老師 wrote:
>> $ sdl2-config --version
>> 2.0.5
>> 
>> $ pwd
>> /Volumes/ffmpeg_compile/lib
>> $ ls *SDL*
>> libSDL2.a	libSDL2.la <http://libsdl2.la/>	libSDL2_test.a	libSDL2main.a
> [...]
>> SDL2 support              no
> 
> What's the output of these three commands?
> 
> pkg-config --exists --print-errors sdl2 && echo $?

0

> pkg-config --cflags sdl2

-D_THREAD_SAFE -I/Volumes/ffmpeg_compile/include/SDL2

> pkg-config --libs sdl2

-L/Volumes/ffmpeg_compile/lib -lSDL2

Above are the result of requested command.


May be I forget very essential thing on configuring ffmpeg.  That is to add “—enable-sdl2”.
./configure —help saids “—disable-sdl2” is auto detect.  So I thought “—enable-sdl2” is not required.

Now I get SDL2 support yes and enabled program contains ffplay…But ffmpeg get build error like:

LD	ffmpeg_g
LD	ffplay_g
LD	ffprobe_g
Undefined symbols for architecture x86_64:
Undefined symbols for architecture x86_64:
  "_iconv", referenced from:
  "_iconv", referenced from:
Undefined symbols for architecture x86_64:
  "_iconv", referenced from:
      _SDL_iconv_REAL in libSDL2.a(SDL_iconv.o)
      _SDL_iconv_string_REAL in libSDL2.a(SDL_iconv.o)
      _SDL_iconv_REAL in libSDL2.a(SDL_iconv.o)
      _SDL_iconv_string_REAL in libSDL2.a(SDL_iconv.o)
      _SDL_iconv_REAL in libSDL2.a(SDL_iconv.o)
      _SDL_iconv_string_REAL in libSDL2.a(SDL_iconv.o)

I’m now working to solve this error...


Best Regards,

// Miya aka Tougenroushi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2370 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20161110/c59b9427/attachment.bin>


More information about the ffmpeg-user mailing list