如何解决在为 android 构建 ffmpeg-with-libx264-enabled 时找不到 libx264 的问题?

发布于 2024-12-27 23:31:26 字数 4168 浏览 1 评论 0原文

我正在尝试构建从 git 下载的 android-ffmpeg-x264 。链接 https://github.com/halfninja/android-ffmpeg-x264

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

错误:libx264 未找到

如果您认为配置出错,请确保您使用的是最新版本 来自 Git 的版本。如果最新版本失败,请将问题报告给 [email protected] 邮件列表或 irc.freenode.net 上的 IRC #ffmpeg 。 包含由配置生成的日志文件“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

有什么解决方案可以成功构建代码吗?

i am trying build android-ffmpeg-x264 downloaded from git. Link https://github.com/halfninja/android-ffmpeg-x264

After running ./config_make_everything.sh i am getting following error

ERROR: libx264 not found

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

<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 contains

<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 am using fedora to build both ffmpeg and x264
2.NDK r7

Any solution to successfully build the code?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

做个少女永远怀春 2025-01-03 23:31:26

我个人还没有证实这一点,但我相信如果你将 NDK 降级到 r5c 就可以解决这个问题。请记住重新创建工具链。

I have not yet confirmed this personally but I believe you can solve this if you downgrade the NDK to r5c. Remember to recreate the toolchain.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文