使用 libx264 为 Raspberry pi 编译 Xuggler 时出现的问题 #2 [英] Issue #2 when compiling Xuggler for Raspberry pi with libx264

查看:14
本文介绍了使用 libx264 为 Raspberry pi 编译 Xuggler 时出现的问题 #2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为 Raspberry Pi(在 Debian OS aka Raspbian 上运行)编译 Xuggler

I am trying to compile Xuggler for Raspberry Pi(Running on Debian OS aka Raspbian),

我按照此处提供的基本构建说明"来编译 Xuggler.

I followed the 'Basic Build Instructions' available here for compiling Xuggler.

在我成功安装了所有先决条件并设置了正确的路径后,我运行了以下命令:

After I successfully installed all the prerequisites and set the correct paths, I ran the following command:

ant run-tests

一段时间后,我遇到以下错误,并且在 libx264 上构建 ant 失败:

After sometime I am facing the following error and the ant build fails at libx264:

{在日志末尾滚动以查看问题}

common/arm/mc-c.c: In function âx264_weight_cache_neonâ:
common/arm/mc-c.c:89:25: warning: assignment discards âconstâ qualifier from pointer target type [enabled by default]
common/arm/mc-c.c:94:25: warning: assignment discards âconstâ qualifier from pointer target type [enabled by default]
common/arm/mc-c.c:99:21: warning: assignment discards âconstâ qualifier from pointer target type [enabled by default]
common/arm/mc-c.c:101:21: warning: assignment discards âconstâ qualifier from pointer target type [enabled by default]
common/arm/mc-c.c: In function âx264_mc_init_armâ:
common/arm/mc-c.c:236:19: warning: assignment discards âconstâ qualifier from pointer target type [enabled by default]
common/arm/mc-c.c:237:19: warning: assignment discards âconstâ qualifier from pointer target type [enabled by default]
common/arm/mc-c.c:238:19: warning: assignment discards âconstâ qualifier from pointer target type [enabled by default]
gcc -Wshadow -O3 -fno-fast-math -I/home/pi/Downloads/xuggle-xuggler/build/native/armv6l-unknown-linux-gnueabihf/captive/stage/home/pi/Downloads/xuggler/include  -Wall -I. -I.  -I'/home/pi/Downloads/xuggle-xuggler/build/native/armv6l-unknown-linux-gnueabihf/captive/stage/home/pi/Downloads/xuggler/include' -std=gnu99 -mcpu=cortex-a8 -mfpu=neon -fPIC -fomit-frame-pointer -fno-tree-vectorize   -c -o common/arm/predict-c.o common/arm/predict-c.c
as -I/home/pi/Downloads/xuggle-xuggler/build/native/armv6l-unknown-linux-gnueabihf/captive/stage/home/pi/Downloads/xuggler/include  -Wall -I. -I.  -I'/home/pi/Downloads/xuggle-xuggler/build/native/armv6l-unknown-linux-gnueabihf/captive/stage/home/pi/Downloads/xuggler/include' -std=gnu99 -mcpu=cortex-a8 -mfpu=neon -c -DPIC -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/arm/cpu-a.o common/arm/cpu-a.S
as: unrecognized option '-std=gnu99'
make[1]: *** [common/arm/cpu-a.o] Error 1
make[1]: Leaving directory `/home/pi/Downloads/xuggle-xuggler/build/native/armv6l-unknown-linux-gnueabihf/captive/libx264/csrc'
make: *** [all-local] Error 2

我无法理解这里的问题陈述无法识别的选项 '-std=gnu99'",有人可以告诉我如何在 xuggler 中解决或规避它吗?

推荐答案

ant run-tests" 在某些架构上会失败.当你只运行以下命令时,你会遇到同样的错误吗?

"ant run-tests" has been known to fail on certain architectures. Do you get this same error when you just run the following command?

ant stage

我已经使用ant stage"在 Raspberry Pi 上成功构建了 Xuggler.这产生了可以在许多不同的 ARM 计算机上使用的魔法罐.我个人只对构建 LGPL 版本的库感兴趣,您可以在此处查看在 pi 分支上按原样构建的代码:

I have successfully built Xuggler on the Raspberry Pi using "ant stage". This produces the magic jar that can then be used on many different ARM computers. I personally was only interested in building an LGPL version of the library, and you can checkout the code that builds as-is on the pi branch here:

https://github.com/ed/xuggle-xuggler/tree/pi

这不包括 X264 支持,因为它构建了 LGPL 版本.我确实知道也可以构建标准的 GPL 版本,只是我还没有这样做.您可以查看我所做的最后几次提交,以了解我进行了哪些更改以使其在 pi 上构建.

This does not include X264 support since it builds an LGPL version. I do know that it is possible to build the standard GPL version too, I just haven't done it. You can look at the last few commits I made to see what I changed to get it to build on the pi.

这篇关于使用 libx264 为 Raspberry pi 编译 Xuggler 时出现的问题 #2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆