用最新的ffmpeg在编译libstagefright_h264的时候提示ERROR: libstagefright_h264 not found
./configure --enable-libstagefright_h264
ERROR: libstagefright_h264 not found
解决方法:
1. vim configure
2.找到
enabled libstagefright_h264 && require_cpp libstagefright_h264 "binder/ProcessState.h media/stagefright/MetaData.h
media/stagefright/MediaBufferGroup.h media/stagefright/MediaDebug.h media/stagefright/MediaDefs.h
media/stagefright/OMXClient.h media/stagefright/OMXCodec.h" android::OMXClient -lstagefright -lmedia -lutils -lbinder -lgnustl_static
修改为
enabled libstagefright && require_cpp libstagefright_h264 "binder/ProcessState.h media/stagefright/MetaData.h
media/stagefright/MediaBufferGroup.h media/stagefright/MediaDebug.h media/stagefright/MediaDefs.h
media/stagefright/OMXClient.h media/stagefright/OMXCodec.h" android::OMXClient -lstagefright -lmedia -lutils -lbinder -lgnustl_static
3.再次编译就可以编译通过
root@zhangjie:/home/ffmpeg4android-code/ffmpeg-1.0.4# ./configure --enable-libstagefright_h264
install prefix /usr/local
source path .
C compiler gcc
ARCH x86 (generic)
big-endian no
runtime cpu detection yes
yasm yes
MMX enabled yes
MMXEXT enabled yes
3DNow! enabled yes
3DNow! extended enabled yes
SSE enabled yes
SSSE3 enabled yes
AVX enabled yes
FMA4 enabled yes
CMOV enabled no
CMOV is fast no
EBX available yes
EBP available yes
debug symbols yes
strip symbols yes
optimize for size no
optimizations yes
static yes
shared no
postprocessing support no
new filter support yes
network support yes
threading support pthreads
safe bitstream reader yes
SDL support no
libdxva2 enabled no
libva enabled no
libvdpau enabled no
AVISynth enabled no
frei0r enabled no
gnutls enabled no
libaacplus enabled no
libass enabled no
libcaca enabled no
libcdio support no
libcelt enabled no
libdc1394 support no
libfaac enabled no
libfdk-aac enabled no
libgsm enabled no
libiec61883 support no
libilbc enabled no
libmodplug enabled no
libmp3lame enabled no
libnut enabled no
libopencore-amrnb support no
libopencore-amrwb support no
libopencv support no
libopenjpeg enabled no
libopus enabled no
libpulse enabled no
librtmp enabled no
libschroedinger enabled no
libspeex enabled no
libstagefright-h264 enabled yes
libtheora enabled no
libtwolame enabled no
libutvideo enabled no
libv4l2 enabled no
libvo-aacenc support no
libvo-amrwbenc support no
libvorbis enabled no
libvpx enabled no
libx264 enabled no
libxavs enabled no
libxvid enabled no
openal enabled no
openssl enabled no
zlib enabled no
bzlib enabled no
texi2html enabled no
perl enabled yes
pod2man enabled yes
makeinfo enabled no
Enabled decoders:
aac cdxl kgv1
aac_latm cinepak kmvc
aasc cljr lagarith
ac3 cllc libstagefright_h264
adpcm_4xm cook loco
adpcm_adx cpia mace3
adpcm_ct cscd mace6
adpcm_ea cyuv mdec
adpcm_ea_maxis_xa dca microdvd
adpcm_ea_r1 dfa mimic
adpcm_ea_r2 dirac mjpeg
adpcm_ea_r3 dnxhd mjpegb
adpcm_ea_xas dpx mlp
adpcm_g722 dsicinaudio mmvideo
adpcm_g726 dsicinvideo motionpixels
adpcm_ima_amv dvbsub movtext
adpcm_ima_apc dvdsub mp1
adpcm_ima_dk3 dvvideo mp1float
adpcm_ima_dk4 dxtory mp2
adpcm_ima_ea_eacs eac3