【问题标题】:Issue #2 when compiling Xuggler for Raspberry pi with libx264使用 libx264 为 Raspberry pi 编译 Xuggler 时出现问题 #2
【发布时间】:2014-09-10 18:05:52
【问题描述】:

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

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

【问题讨论】:

    标签: ffmpeg raspberry-pi raspbian xuggler libx264


    【解决方案1】:

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

    ant stage
    

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

    https://github.com/e-d/xuggle-xuggler/tree/pi

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

    【讨论】:

    • 对不起,我以前没有看到过这个错误。我知道 Sudhir Kumar(gmail 的 sudhirm4)在 pi 上构建了启用 x264 的 Xuggler。你可以试着联系他。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-01-20
    • 1970-01-01
    • 2023-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-03
    相关资源
    最近更新 更多