[FFmpeg-trac] #989(undetermined:new): Linking ffplay fails if --disable-swresample is used
FFmpeg
trac at avcodec.org
Thu Feb 9 23:30:27 CET 2012
#989: Linking ffplay fails if --disable-swresample is used
-------------------------------------+-------------------------------------
Reporter: nieder | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
When linking ffplay on OS X with latest git using --disable-libswresample,
this failure occurs:
{{{
clang -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavutil
-Llibpostproc -Llibswscale -Llibswresample
-Wl,-dynamic,-search_paths_first -o ffplay_g ffplay.o cmdutils.o
-lavdevice -lavfilter -lavformat -lavcodec -lpostproc -lswscale -lavutil
-lX11 -lXext -lXfixes -lcdio_paranoia -lcdio_cdda -lcdio -ljack -L/sw/lib
-Wl,-framework,Cocoa -lSDLmain -lSDL -lxvidcore -lx264 -lvpx -lvpx
-lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lspeex -L/sw/lib
-lschroedinger-1.0 -lpthread -loil-0.3 -L/sw/lib -lrtmp -lssl -lcrypto -lz
-lopenjpeg -lopencore-amrwb -lopencore-amrnb -lmp3lame -lmodplug -L/sw/lib
-lfreetype -L/sw/lib -ldirac_encoder -ldirac_decoder -lm -lstdc++ -lcelt0
-lcelt0 -L/sw/lib -lass -lm -framework CoreFoundation -framework
VideoDecodeAcceleration -framework QuartzCore -lbz2 -lz -L/sw/lib
-L/usr/X11/lib -L/sw/lib -Wl,-framework,Cocoa -lSDLmain -lSDL
ld: warning: directory not found for option '-Llibswresample'
Undefined symbols for architecture x86_64:
"_swr_free", referenced from:
_stream_component_close in ffplay.o
_sdl_audio_callback in ffplay.o
"_swr_alloc_set_opts", referenced from:
_sdl_audio_callback in ffplay.o
"_swr_init", referenced from:
_sdl_audio_callback in ffplay.o
"_swr_set_compensation", referenced from:
_sdl_audio_callback in ffplay.o
"_swr_convert", referenced from:
_sdl_audio_callback in ffplay.o
ld: symbol(s) not found for architecture x86_64
}}}
Linking libavfilter.dylib similarly fails when --disable-swscale is used.
The following fixes both of these issues:
{{{
diff --git a/configure b/configure
index 525092d..4c3aa07 100755
--- a/configure
+++ b/configure
@@ -1674,11 +1674,12 @@ yadif_filter_deps="gpl"
# libraries
avdevice_deps="avcodec avformat"
+avfilter_deps="swscale"
avformat_deps="avcodec"
postproc_deps="gpl"
# programs
-ffplay_deps="avcodec avformat swscale sdl"
+ffplay_deps="avcodec avformat swscale swresample sdl"
ffplay_select="buffersink_filter rdft"
ffprobe_deps="avcodec avformat"
ffserver_deps="avformat ffm_muxer fork rtp_protocol rtsp_demuxer"
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/989>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list