2012-01-21 30 views
2

我想构建从git下载的android-ffmpeg-x264。链接https://github.com/halfninja/android-ffmpeg-x264如何解决在为android构建启用ffmpeg-with-libx264时未找到libx264?

运行./config_make_everything.sh后我收到以下错误

ERROR:libx264没有找到

如果你想配置犯了一个错误,请确保您使用的是最新版本的 从混帐。如果最新版本失败,请将问题报告给irc.freenode.net上的 [email protected]邮件列表或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.I我使用的Fedora构建既FFMPEG和X264 2.NDK R7

任何解决方案才能成功构建的代码?

回答

1

我还没有亲自证实过这一点,但我相信如果您将NDK降级为r5c,则可以解决此问题。请记住重新创建工具链。

相关问题