我有我的发行版最旧的 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.
>