我的发行版最早的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.
>
答案 0 :(得分:1)
看起来可能存在旧版本的libvlc。
rpm -qa | grep -i vlc
查看是否还有与VLC相关的其他软件包。
如果没有......也许会抓住一个新的tarball。