编译mediastreamer2时缺少库(ffmpeg)
错误信息:
checking for SWSCALE... no
configure: error: Could not find libswscale (from ffmpeg) headers and library. This is mandatory for video support
但是在编译ffmpeg-0.4.9.tar.gz时通过configure --help却找不到与libswscale有关的配置信息
内容如下:
Standard options:
--help print this message
--prefix=PREFIX install in PREFIX []
--libdir=DIR install libs in DIR [PREFIX/lib]
--mandir=DIR install man page in DIR [PREFIX/man]
--enable-mp3lame enable MP3 encoding via libmp3lame [default=no]
--enable-libogg enable Ogg support via libogg [default=no]
--enable-vorbis enable Vorbis support via libvorbis [default=no]
--enable-theora enable Theora support via libtheora [default=no]
--enable-faad enable FAAD support via libfaad [default=no]
--enable-faadbin build FAAD support with runtime linking [default=no]
--enable-faac enable FAAC support via libfaac [default=no]
--enable-libgsm enable GSM support via libgsm [default=no]
--enable-xvid enable XviD support via xvidcore [default=no]
--enable-x264 enable H.264 encoding via x264 [default=no]
--enable-mingw32 enable MinGW native/cross Windows compile
--enable-a52 enable GPLed A52 support [default=no]
--enable-a52bin open liba52.so.0 at runtime [default=no]
--enable-dts enable GPLed DTS support [default=no]
--enable-pp enable GPLed postprocessing support [default=no]
--enable-shared-pp use libpostproc.so [default=no]
--enable-shared build shared libraries [default=no]
--enable-amr_nb enable amr_nb float audio codec
--enable-amr_nb-fixed use fixed point for amr-nb codec
--enable-amr_wb enable amr_wb float audio codec
--enable-amr_if2 enable amr_wb IF2 audio codec
--enable-sunmlib use Sun medialib [default=no]
--enable-pthreads use pthreads [default=no]
--enable-dc1394 enable IIDC-1394 grabbing using libdc1394
and libraw1394 [default=no]
--enable-x11grab enable X11 screen recorder input [default=no]
--enable-gpl allow use of GPL code, the resulting libav*
and ffmpeg will be under GPL [default=no]
Advanced options (experts only):
--source-path=PATH path to source code []
--cross-prefix=PREFIX use PREFIX for compilation tools []
--cc=CC use C compiler CC []
--make=MAKE use specified make []
--extra-cflags=ECFLAGS add ECFLAGS to CFLAGS []
--extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS []
--extra-libs=ELIBS add ELIBS []
--build-suffix=SUFFIX suffix for application specific build []
--cpu=CPU force cpu to CPU []
--tune=CPU tune code for a particular CPU
(may fail or perform badly on other CPUs)
--powerpc-perf-enable enable performance report on PPC
(requires enabling PMC)
--disable-mmx disable MMX usage
--disable-iwmmxt disable iwmmxt usage
--disable-altivec disable AltiVec usage
--disable-audio-oss disable OSS audio support [default=no]
--disable-audio-beos disable BeOS audio support [default=no]
--disable-v4l disable video4linux grabbing [default=no]
--disable-bktr disable bktr video grabbing [default=no]
--disable-dv1394 disable DV1394 grabbing [default=no]
--disable-network disable network support [default=no]
--disable-zlib disable zlib [default=no]
--disable-simple_idct disable simple IDCT routines [default=no]
--disable-vhook disable video hooking support
--enable-gprof enable profiling with gprof []
--disable-debug disable debugging symbols
--disable-opts disable compiler optimizations
--disable-mpegaudio-hp faster (but less accurate)
MPEG audio decoding [default=no]
--disable-ffserver disable ffserver build
--disable-ffplay disable ffplay build
--enable-small optimize for size instead of speed
--enable-memalign-hack emulate memalign, interferes with memory debuggers
--disable-strip disable stripping of executables and shared libraries
--enable-codec=CODEC enables CODEC
--disable-codec=CODEC disables CODEC
--disable-encoders disables all encoders
--disable-decoders disables all decoders
--disable-muxers disables all muxers
--disable-demuxers disables all demuxers
网上查到一份“Fedora 8 下以源码编译方式安装linphone”的文章说有该选项。请问是版本的问题?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Fedora 8 下以源码编译方式安装linphone,那应该是Fedora 8就有了吧
原版本就好像没有,
果然,找到新版本打开一看就看到swscale文件夹,哈哈!
还是版本问题。
在另一篇文章看到:
--help print this message
--log[=FILE|yes|no] log tests and output to FILE [config.err]
--prefix=PREFIX install in PREFIX [/usr/local]
--libdir=DIR install libs in DIR [PREFIX/lib]
--shlibdir=DIR install shared libs in DIR [PREFIX/lib]
--incdir=DIR install includes in DIR [PREFIX/include/ffmpeg]
--mandir=DIR install man page in DIR [PREFIX/man]
--enable-static build static libraries [default=yes]
--disable-static do not build static libraries [default=no]
--enable-shared build shared libraries [default=no]
--disable-shared do not build shared libraries [default=yes]
--enable-gpl allow use of GPL code, the resulting libav*
and ffmpeg will be under GPL [default=no]
--enable-pp enable GPLed postprocessing support [default=no]
--enable-swscaler software scaler support [default=no]
--enable-beosthreads use BeOS threads [default=no]
--enable-pthreads use pthreads [default=no]
--enable-w32threads use Win32 threads [default=no]
--enable-x11grab enable X11 grabbing [default=no]
估计是版本不同,看来要换一个支持swscale的版本。