- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我一直在尝试使用适用于 Android 的 LibVLC,并且我遵循了 https://wiki.videolan.org/AndroidCompile 中的说明。并使其在 ARM 上完美运行。但是,在尝试将其编译为 x86 时,我设置了:
导出 ANDROID_ABI=x86
然后以同样的方式编译,但现在我遇到了一个问题,因为它无法编译。这是截断的构建日志:
~/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
据我所知,在该项目中出于某种原因同时包含了 ARM header 和 SSE header ,从而导致重新定义错误。但是,我不知道为什么或尝试修复它。任何建议将不胜感激。
最佳答案
Autoconf 看起来不太正确,x86 构建与 NEON 指令集无关,因此不应包含 resample_neon.h。我还没有找到根本原因,但为了快速解决,打开 ../vlc-android/vlc/contrib/contrib-android-i686-linux-android 下的
并删除以下行:resample.c
/speexdsp/libspeexdsp
...
#ifdef _USE_NEON
#include "resample_neon.h"
#endif
...
然后重新运行 compile.sh,您应该会得到一个适用于您的 x86 模拟器/设备的可用 apk。
关于android - 为 x86 构建 LibVLC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26609320/
我正在开发一个 Android 项目,我想使用 LibVLC 创建一个媒体播放器。要使用此库创建媒体播放器,我需要实例化 LibVLC 对象。但是当我尝试这样做时,实例化将失败并且应用程序将自动关闭。
我下载了 vlc-2.2.4-win32.7z 并提取了文件。我在 VS2010 中创建了一个空项目,并使用我在 https://wiki.videolan.org/LibVLC_Tutorial/
当我尝试执行库 Qt-VLC 的示例时出现以下错误 *** glibc detected *** /home/lalalal/Scrivania/SORGENTI/VLC-QT/build-d
我想在Android平台上开发一个Android程序,并且我还编译了一些libs(例如libvlc.so,libvlcjni.so……)。但是在我构建了这些库之后,我还发现了一些Java代码,一个名为
我正在开发一个利用 Caprica's VLCJ Bindings 的程序. 这对 Windows 和 Mac 来说很好,因为我可以将它们的 VLC 库打包到一个 zip 文件中,并在适当的地方将它们
我目前正在尝试使用LibVLC播放视频,有一些问题: 在具有多个屏幕的计算机上,如何让 LibVLC 在特定屏幕上显示全屏? 我尝试使用 libvlc_video_set_marquee_int。经过
有没有支持 Http Adaptive Streaming 的开源流媒体解决方案?根据我的研究,VLC 不支持自适应流媒体。我不确定 Darwin 流服务器。有什么想法吗? 最佳答案 我看到了它们,但
我目前正在尝试使用LibVLC播放视频,有一些问题: 在具有多个屏幕的计算机上,如何让 LibVLC 在特定屏幕上显示全屏? 我尝试使用 libvlc_video_set_marquee_int。经过
我试图在播放音频文件时设置音量,但它似乎根本不起作用。请问我做错了什么? # create a vlc playable object from source self.playable = vlc.
我有一个 .NET Framework 项目 A 的解决方案,它构建了一个包含类 MyPlayer 的 winforms 应用程序,它需要 LibVLCSharp。为了正确构建和运行应用程序,我必须添
嗨,我有这个代码来流式传输一些视频 package video; import javax.swing.*; import java.awt.*; import java.io.File; impor
已结束。此问题正在寻求书籍、工具、软件库等的推荐。它不满足Stack Overflow guidelines 。目前不接受答案。 我们不允许提出寻求书籍、工具、软件库等推荐的问题。您可以编辑问题,以便
我正在尝试使用 LibVLC 解码视频文件并将其渲染为纹理。 打开和开始播放的代码有效,音频播放完美,但像素缓冲区始终填充0xCD。我尝试在 VLC 上渲染的视频,甚至在 C# 实现中我也能正常工作,
我有这个代码: public class MediaPanel { public static void main(final String[] args) {
我对使用媒体编解码器还很陌生,我尝试使用 Java 播放媒体文件并进行了一些研究,我发现 vlcj 绑定(bind)符合我的需要。我希望将 libvlc native 库与我的应用程序中的插件模块捆绑
在 vlc 中有一些我在 libvlc 中找不到的视频效果,当我在 vlc 中打开视频时,我可以转到“工具->效果和滤镜->视频效果”,然后有很多视频效果我可以使用,例如否定颜色或降噪器或色调分离器等
我制作了 qt 快速应用程序,我需要制作一个带有视频的声明性小部件(我不想使用 qt mobility)。就像,这不是问题。但我不知道如何做模糊 libVLC。有谁知道如何使用 libVLC 制作模糊
我正在尝试在 LibVLC 中设置日志记录,但遇到了一些问题。 我使用的函数是libvlc_log_set_file,文档如下: LibVLC logging docs 这是我现在的代码: //hea
我正在编写 GTK/VLC 程序。与普通媒体播放器一样,我的程序应按如下方式运行: 双击播放列表(使用GtkTreeView实现)使播放器(使用libvlc_media_player实现)播放选定的媒
我正在使用 libvlc,我想检查媒体位置/路径是否有效: libvlc_instance_t* inst = libvlc_new(0, NULL); libvlc_media_t* m = lib
我是一名优秀的程序员,十分优秀!