linux - 我如何让 VLC 2.x 在我的 Linux 下工作?

标签 linux logging vlc libvlc vlcj

我的发行版中有最旧的 VLC 版本,我使用我的发行版包管理器 yum 删除了它。之后我从 VLC Git 存储库编译,我至少在终端中获得了 VLC 2.0。

但它看起来仍然失败,因为在我的应用程序中它仍然找到旧的 VLC。我怎样才能使我的发行版中的最新 VLC 可用,以便不会抛出以下 Java 错误?

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: This version of vlcj requires version 2.0.0 or later of libvlc, found too old version 1.1.13 The Luggage.
    at uk.co.caprica.vlcj.binding.LibVlcFactory.create(LibVlcFactory.java:157)
    at uk.co.caprica.vlcj.player.MediaPlayerFactory.<init>(MediaPlayerFactory.java:168)

BUILD STOPPED (total time: 44 seconds)

$ ls
cachegen.c   Makefile.in  rootwrap.o     vlc.o                  vlc_win32_rc.rc.in
cachegen.o   override.c   vlc            vlc-static             vlc-wrapper
Makefile     override.o   vlc.c          vlc_static-override.o  winvlc.c
Makefile.am  rootwrap.c   vlc-cache-gen  vlc_static-vlc.o
$ ./vlc
VLC media player 2.1.0-git Rincewind (revision 1.3.0-git-1562-g2dd544e)
[0x99e58f0] main libvlc error: No plugins found! Check your VLC installation.


$ vlc
VLC media player 1.1.13 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x8933cbc] main interface error: no suitable interface module
[0x887a8fc] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x887a8fc] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x8933f5c] [rc] lua interface: Listening on host "*console".
VLC media player 1.1.13 The Luggage
Remote control interface initialized. Type `help' for help.
> 

最佳答案

看起来可能是旧版本的 libvlc。

转数-qa | grep -i vlc

查看是否有其他与VLC相关的包。

如果没有...也许获取一个新的 tarball。

关于linux - 我如何让 VLC 2.x 在我的 Linux 下工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9609831/

相关文章:

linux - Linux系统不忙时如何调度任务

logging - Glassfish 伐木

c# - NLog 自动重载不起作用

logging - 为什么 Jenkins 日志文件大小增长如此之多?

java - vlcj:屏幕多路分解错误:无法创建位图

macos - 基于 VLCKit 的应用程序阻止屏幕保护程序

Python - 如何知道媒体播放器正在播放哪首歌(最好是 VLC)

linux - Linux 桌面应用程序确保其具有硬件访问权限的最佳实践?

gnome 上的 javafx 应用程序名称

linux - 如何以编程方式获取进程的根目录?