0

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

我按照此处提供的“基本构建说明”来编译 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中规避它吗?

4

1 回答 1

1

众所周知,“ant run-tests”在某些架构上会失败。当您只运行以下命令时,您是否会遇到同样的错误?

ant stage

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

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

这不包括 X264 支持,因为它构建了 LGPL 版本。我确实知道也可以构建标准的 GPL 版本,但我还没有做到。您可以查看我所做的最后几个提交,以了解我为使其构建在 pi 上所做的更改。

于 2014-07-22T14:32:04.080 回答