configure认为当前目录是tools下

本文记录了在Ubuntu环境下使用FFmpeg源码编译适用于Android平台的库时遇到的问题及部分错误信息。包括路径冲突、文件缺失导致的编译失败等,并展示了编译过程中的配置选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考http://blog.youkuaiyun.com/jwzhangjie/article/details/8721612


在tools下

source ../configure $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS" --extra-cxxflags="$EXTRA_CXXFLAGS" | tee $DEST/configuration.txt


会导致configure认为当前目录是tools下。。。


root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpeg-1.2/tools# 

root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpeg-1.2/tools# 
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpeg-1.2/tools# 
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpeg-1.2/tools# source jwzhangjie.shFetching Android system headers
fatal: destination path '../android-source/frameworks/base' already exists and is not an empty directory.
fatal: destination path '../android-source/frameworks/av' already exists and is not an empty directory.
fatal: destination path '../android-source/frameworks/native' already exists and is not an empty directory.
fatal: destination path '../android-source/hardware/libhardware' already exists and is not an empty directory.
fatal: destination path '../android-source/system/core' already exists and is not an empty directory.
Fetching Android libraries for linking
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/allcodecs.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/allcodecs.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/allcodecs.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/allcodecs.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/allcodecs.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavformat/allformats.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavformat/allformats.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavdevice/alldevices.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavdevice/alldevices.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavformat/allformats.c: No such file or directory
sed: can't read /home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavfilter/allfilters.c: No such file or directory
install prefix            ../build/stagefright/armeabi-v7a

source path               /home/zhangbin/ffmpeg/ffmpeg-1.2/tools
C compiler                /home/zhangbin/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
ARCH                      arm (armv7-a)
big-endian                no
runtime cpu detection     yes
ARMv5TE enabled           yes
ARMv6 enabled             yes
ARMv6T2 enabled           yes
VFP enabled               yes
NEON enabled              yes
THUMB enabled             no
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           no
threading support         pthreads
safe bitstream reader     yes
SDL support               no
texi2html enabled         no
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          no


External libraries:
libstagefright_h264


Enabled decoders:


Enabled encoders:


Enabled hwaccels:


Enabled parsers:


Enabled demuxers:


Enabled muxers:


Enabled protocols:


Enabled filters:


Enabled bsfs:


Enabled indevs:


Enabled outdevs:


License: LGPL version 2.1 or later
Creating config.mak and config.h...
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavcodec/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavdevice/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavfilter/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavformat/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavresample/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libavutil/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libpostproc/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libswresample/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/zhangbin/ffmpeg/ffmpeg-1.2/tools/libswscale/version.h' for reading (No such file or directory)


WARNING: Option --disable-decoder=h264 did not match anything
WARNING: Option --disable-decoder=h264_vdpau did not match anything
WARNING: arm-linux-androideabi-pkg-config not found, library detection may fail.
make: Makefile: Too many levels of symbolic links
make: stat: Makefile: Too many levels of symbolic links
make: *** No rule to make target `Makefile'.  Stop.
make: Makefile: Too many levels of symbolic links
make: stat: Makefile: Too many levels of symbolic links
make: *** No rule to make target `Makefile'.  Stop.
/home/zhangbin/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-ar: creating libavcodec/libavcodec.a
/home/zhangbin/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-ld: error: cannot open libavformat/libavformat.a: No such file or directory
/home/zhangbin/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-ld: error: cannot open libavutil/libavutil.a: No such file or directory
/home/zhangbin/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-ld: error: cannot open /opt/android-ndk-r8d/sources/cxx-stl/stlport/libs/armeabi-v7a/libstlport_static.a: No such file or directory
root@Ubuntu32:/home/zhangbin/ffmpeg/ffmpeg-1.2/tools# 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

等风来不如迎风去

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值