vlc+for+android+x86,android - Building LibVLC for x86 - Stack Overflow

I've been trying to use LibVLC for Android and I followed the instructions at https://wiki.videolan.org/AndroidCompile and got it to work perfectly for ARM. However, when trying to compile it to x86, I set:

export ANDROID_ABI=x86

and then compiled in the same way, but now I have a problem as it fails to compile. Here's a truncated build log:

~/vlc-android$ sh compile.sh

VLC source found

Building tools

You are ready to build VLC and its contribs

Building the contribs

Generating EGL pkg-config file

Generating GLESv2 pkg-config file

Guessing build system... x86_64-linux-gnu

Creating configuration file... config.mak

Bootstrap completed.

...

config.status: executing libtool commands

Type "make; make install" to compile and install Speex

cd speexdsp && make install

make[1]: Entering directory `/home/user/vlc-android/vlc/contrib/contrib-android-i686-linux-android/speexdsp'

Making install in libspeexdsp

make[2]: Entering directory `/home/user/vlc-android/vlc/contrib/contrib-android-i686-linux-android/speexdsp/libspeexdsp'

CC resample.lo

In file included from resample.c:104:0:

resample_neon.h:142:21: error: redefinition of 'inner_product_single'

static inline float inner_product_single(const float *a, const float *b, unsigned int len)

^

In file included from resample.c:100:0:

resample_sse.h:40:21: note: previous definition of 'inner_product_single' was here

static inline float inner_product_single(const float *a, const float *b, unsigned int len)

^

make[2]: *** [resample.lo] Error 1

make[2]: Leaving directory `/home/user/vlc-android/vlc/contrib/contrib-android-i686-linux-android/speexdsp/libspeexdsp'

make[1]: *** [install-recursive] Error 1

make[1]: Leaving directory `/home/user/vlc-android/vlc/contrib/contrib-android-i686-linux-android/speexdsp'

make: *** [.speexdsp] Error 2

As far as I can tell, in that project for some reason both the ARM headers and the SSE headers are being included, causing a redefinition error. However, I don't know why or what to try to fix it. Any suggestions would be much appreciated.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值