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

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

问题描述

我正在为Raspberry Pi(运行在Debian OS上的Raspbian)编译 Xuggler , / p>

我遵循基本构建说明这里用于编译Xuggler。



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

  ant run-tests 

我正在面对以下错误,并且在libx264中的ant构建失败:



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

  common / arm / mc-cc:功能âx264_weight_cache_neonâ:
common / arm / mc-cc:89:25:警告:赋值从指针目标类型丢弃âconstâ限定符[默认启用]
common / arm / mc-cc:94:25:warning:赋值从指针目标类型放弃âconstâ限定符[enabl
common / arm / mc-cc:99:21:warning:从指针目标类型丢弃âconstâ限定符[默认启用]
common / arm / mc-cc:101:21 :警告:赋值从指针目标类型丢弃âconstâ限定符[默认启用]
common / arm / mc-cc:在函数âx264_mc_init_armâ:
common / arm / mc-cc:236:19:warning:任务从指针目标类型丢弃âconstâ限定符[默认启用]
common / arm / mc-cc:237:19:warning:赋值从指针目标类型放弃âconstâ限定符[默认启用]
common / arm / mc-cc:238:19:警告:从指针目标类型抛出âconstâ限定符[默认启用]
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 / home / pi /下载/ 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-co common / arm / predict-cc
as -I / home / pi / Downloads / xuggler / build / native / armv6l-unknown-linux-gnueabihf / captive / stage / home / pi / Downloads / xuggler / include -Wall -I。 -一世。 -i / home / pi /下载/ 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-ao common / arm / cpu-aS
as:unrecognized option'-std = gnu99'
make [1]:*** [common / arm / cpu-ao]错误1
make [1]:离开目录`/ home / pi / Downloads / xuggle-xuggler / build / native / armv6l-unknown- linux-gnueabihf / captive / libx264 / csrc'
make:*** [all-local]错误2

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

解决方案

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

  ant stage 

我已经使用蚂蚁舞台在Raspberry Pi上成功构建了Xuggler。这产生了可以在许多不同ARM计算机上使用的魔术jar。我个人只想建立一个LGPL版本的图书馆,你可以在这里在pi分支上签出代码:pi / https://github.com/ed/xuggle-xuggler/tree/pi =nofollow> https://github.com/ed/xuggle-xuggler/tree/pi



它不包括X264支持,因为它构建了一个LGPL版本。我知道有可能构建标准的GPL版本,我还没有这样做。你可以看看我做的最后几个提交,看看我改变了什么,让它建立在pi上。


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

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

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

{scroll at the end of log to see the issue}

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

I am unable to understand the problem statment "unrecognized option '-std=gnu99'" here, Can someone please tell me how can I resolve this or circumvent it in xuggler?

解决方案

"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

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/e-d/xuggle-xuggler/tree/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编译Xuggler for Raspberry pi时,问题#2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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