我正在尝试从git下载构建android-ffmpeg-x264。链接https://github.com/halfninja/android-ffmpeg-x264
运行./config_make_everything.sh后,我收到以下错误
错误:未找到libx264
如果您认为配置有误,请确保您使用的是最新版本 来自Git的版本。如果最新版本失败,请将问题报告给 ffmpeg-user@ffmpeg.org irc.freenode.net上的邮件列表或IRC #ffmpeg。 包括configure生成的日志文件“config.log”,这将有所帮助 解决问题。
<pre>
Makefile:1: config.mak: No such file or directory
libavutil/Makefile:1: libavutil/../config.mak: No such file or directory
libavutil/../subdir.mak:96: warning: overriding commands for target `libavutil/'
libavutil/../subdir.mak:26: warning: ignoring old commands for target `libavutil/'
libavutil/../subdir.mak:96: warning: overriding commands for target `libavutil/'
libavutil/../subdir.mak:96: warning: ignoring old commands for target `libavutil/'
tests/Makefile:44: /tests/fate.mak: No such file or directory
tests/Makefile:45: /tests/fate2.mak: No such file or directory
tests/Makefile:47: /tests/fate/aac.mak: No such file or directory
tests/Makefile:48: /tests/fate/als.mak: No such file or directory
tests/Makefile:49: /tests/fate/fft.mak: No such file or directory
tests/Makefile:50: /tests/fate/h264.mak: No such file or directory
tests/Makefile:51: /tests/fate/mp3.mak: No such file or directory
tests/Makefile:52: /tests/fate/vorbis.mak: No such file or directory
tests/Makefile:53: /tests/fate/vp8.mak: No such file or directory
make: *** No rule to make target `/tests/fate/vp8.mak'. Stop.
</pre>
config.log包含
<pre>
ratecontrol.c:(.text+0xa400): undefined reference to `memset'
ratecontrol.c:(.text+0xa41c): undefined reference to `memset'
ratecontrol.c:(.text+0xa448): undefined reference to `__aeabi_l2d'
ratecontrol.c:(.text+0xa49c): undefined reference to `__aeabi_ldivmod'
ratecontrol.c:(.text+0xa4a0): undefined reference to `__aeabi_l2d'
ratecontrol.c:(.text+0xa4f8): undefined reference to `__aeabi_idivmod'
ratecontrol.c:(.text+0xa794): undefined reference to `__aeabi_l2d'
../x264/libx264.a(set.o): In function `x264_validate_levels':
set.c:(.text+0x200): undefined reference to `__aeabi_ldivmod'
set.c:(.text+0x334): undefined reference to `__aeabi_idiv'
../x264/libx264.a(set.o): In function `x264_sei_version_write':
set.c:(.text+0xeec): undefined reference to `strlen'
set.c:(.text+0xf10): undefined reference to `memcpy'
set.c:(.text+0xf3c): undefined reference to `sprintf'
set.c:(.text+0xf44): undefined reference to `strlen'
../x264/libx264.a(set.o): In function `scaling_list_write':
set.c:(.text+0x20b0): undefined reference to `memcmp'
set.c:(.text+0x2138): undefined reference to `memcmp'
set.c:(.text+0x2158): undefined reference to `memcmp'
../x264/libx264.a(set.o): In function `x264_pps_write':
set.c:(.text+0x5870): undefined reference to `memcmp'
set.c:(.text+0x5a7c): undefined reference to `memcmp'
../x264/libx264.a(set.o):set.c:(.text+0x5a9c): more undefined references to `memcmp' follow
../x264/libx264.a(macroblock.o): In function `x264_noise_reduction_update':
macroblock.c:(.text+0xe10): undefined reference to `__aeabi_uldivmod'
../x264/libx264.a(macroblock.o): In function `x264_predict_lossless_8x8_chroma':
macroblock.c:(.text+0x3224): undefined reference to `memcpy'
macroblock.c:(.text+0x323c): undefined reference to `memcpy'
../x264/libx264.a(cabac.o): In function `x264_macroblock_write_cabac':
cabac.c:(.text+0x2c58): undefined reference to `__assert2'
cabac.c:(.text+0x2dd8): undefined reference to `__assert2'
cabac.c:(.text+0x2f80): undefined reference to `__assert2'
cabac.c:(.text+0x3020): undefined reference to `__assert2'
../x264/libx264.a(rectangle.o): In function `x264_macroblock_cache_ref_1_1':
rectangle.c:(.text+0x1e4): undefined reference to `__assert2'
../x264/libx264.a(rectangle.o):rectangle.c:(.text+0x210): more undefined references to `__assert2' follow
ERROR: libx264 not found
</pre>
1.我正在使用fedora来构建ffmpeg和x264 2.NDK r7
成功构建代码的任何解决方案?
答案 0 :(得分:1)
我还没有亲自证实这一点,但我相信如果你将NDK降级到r5c,你可以解决这个问题。请记住重新创建工具链。