我正在尝试编译Xuggler http://www.xuggle.com/xuggler/对于 Raspberry Pi(在 Debian 操作系统上运行,又名 Raspbian),
我遵循了可用的“基本构建说明”here http://www.xuggle.com/xuggler/build用于编译 Xuggler。
成功安装所有先决条件并设置正确的路径后,我运行了以下命令:
ant run-tests
一段时间后,我遇到以下错误,并且 ant 构建在 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 stage
我已经使用“ant stage”在 Raspberry Pi 上成功构建了 Xuggler。这会产生一个可以在许多不同的 ARM 计算机上使用的神奇罐子。我个人只对构建该库的 LGPL 版本感兴趣,您可以在此处查看在 pi 分支上按原样构建的代码:
https://github.com/e-d/xuggle-xuggler/tree/pi https://github.com/e-d/xuggle-xuggler/tree/pi
这不包括 X264 支持,因为它构建的是 LGPL 版本。我确实知道也可以构建标准 GPL 版本,但我只是还没有这样做。您可以查看我所做的最后几次提交,以了解我更改了哪些内容以使其在 pi 上构建。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)