Page 1 of 1

JVLC error when running demo application

Posted: 05 Oct 2006 08:11
by sepi_1982
Hello,

i am under Debian Linux and i am unable to run the JVLC demo application SwingClient. I get the following exception:

xception in thread "main" java.lang.UnsatisfiedLinkError: workspace_thesis/vlcTest/lib/libjvlc.so: libdvbpsi.so.4: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at org.videolan.jvlc.JVLC.<clinit>(JVLC.java:37)
at org.videolan.jvlc.JVLCCanvas.<init>(JVLCCanvas.java:44)
at org.videolan.jvlc.JVLCPanel.<init>(JVLCPanel.java:42)
at vlc.VLCPlayerFrame.initComponents(SwingClient.java:53)
at vlc.VLCPlayerFrame.<init>(SwingClient.java:39)
at vlc.SwingClient.main(SwingClient.java:209)


any idea about how to fix this?
thanks a lot
sebastien

Posted: 05 Oct 2006 11:49
by funman
try to install libdvbpsi

still the same problem

Posted: 05 Oct 2006 14:39
by sepi_1982
hi,
thanks for your nreply. I did installed the package libdvbpsi3-dev under linux debian, but i still get the same exception. Do i need to restart Eclipse or my whole machine?

any idea?
thanks a lot
sebastien

Posted: 05 Oct 2006 18:25
by Gujs
You need libdvbpsi4-dev for vlc!

Posted: 06 Oct 2006 08:12
by sepi_1982
Hello,

thanks for your reply. It seems that was the problem but now i have another one. It looks for the file: libstdc++.so.6

Exception in thread "main" java.lang.UnsatisfiedLinkError: /lib/libjvlc.so: libstdc++.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at org.videolan.jvlc.JVLC.<clinit>(JVLC.java:37)
at org.videolan.jvlc.JVLCCanvas.<init>(JVLCCanvas.java:44)
at org.videolan.jvlc.JVLCPanel.<init>(JVLCPanel.java:42)
at vlc.VLCPlayerFrame.initComponents(SwingClient.java:53)
at vlc.VLCPlayerFrame.<init>(SwingClient.java:39)
at vlc.SwingClient.main(SwingClient.java:209)




What libraries do i need to start this JVLC. Would it be possible to have some kind of list of needed packages for Linux debian so that i can install everything at once?

thanks a lot
sebastien

Posted: 06 Oct 2006 15:56
by sepi_1982
I have made some progress, by installing the library , i got the application SwingClien t of JVLC to starts. I can see the GUI but not my AVI movie. I get those errors:

[00000018] main interface error: no interface module matched "hotkeys,none"
[00000018] main interface error: no suitable interface module
[00000001] main vlc error: interface "hotkeys,none" initialization failed
[00000019] main interface error: no interface module matched "screensaver,none"
[00000019] main interface error: no suitable interface module
[00000001] main vlc error: interface "screensaver,none" initialization failed
[00000022] main access error: no access2 module matched "any"
[00000020] main input error: no suitable access module for `'
[00000026] main access error: no access2 module matched "any"
[00000024] main input error: no suitable access module for `'
[00000029] main access error: no access2 module matched "file"


any ideas?
regards
sebastien

Posted: 09 Oct 2006 13:03
by sepi_1982
hi,
what do you think is the reason of my problem?
thanks
sebastien

Posted: 11 Oct 2006 18:55
by oober
Hi I got those errors since I upgraded vlc to the latest revision. I had to recompile jvlc to make them go away.

Posted: 12 Oct 2006 23:03
by nimzo
Last svn version now compiles and works (not completely stable though).

Remeber to clean out all old vlc stuff and to configure with
./configure --enable-java-bindings --disable-libtool

I am using ubuntu 6.06, my steps are documented here if it can be any help: http://sg.homeunix.org/trac/mvk17/wiki/ ... structions

sill some problems

Posted: 26 Oct 2006 09:23
by sepi_1982
Hello
thanks a again for your reply and the documentation.
i did not manage to compile VLC from source either., i get some errors:
when i run./bootstrap
it notifies me this:
"You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'"
then later own i get this error:
Copying file intl/textdomain.c
Copying file autotools/mkinstalldirs
+ aclocal1.4-p4 -I m4
./bootstrap: line 420: aclocal1.4-p4: command not found

i do have aclocal command in my Linux Debian system.
Can you tell me what is wrong?
The point also is that i do not have root access to the system.

regards
sebastien

Posted: 30 Oct 2006 21:23
by nimzo
Hi,
Do you have automake and autoconf? I recommend you get another computer with root access to install missing libraries if needed, there are many dependencies to vlc. Ubuntu shuldnt take more than half an hour to install with all libraries needed

Posted: 03 Nov 2006 07:24
by sepi_1982
hi
thnks for your reply,,
i do not have root access at my study place. I tried your guidelines on my kubuntu 6.06 machine i installled all required packages and it seems that ./boostrap works
but i get some error when ./configure some missing librairies
and make does not work.
Is it not possible to download a compile verison from somewhere?
thanks
sebastien

main interface error: no interface module matched

Posted: 10 Dec 2006 04:40
by galabad
I just downloaded the latest linux binary and recompiled vlc per the above linked page. I am still getting the same error output problem listed above that starts with the line "main interface error: no interface module matched "hotkeys,none"

Has anyone else encountered or solved this problem?

similar problem

Posted: 10 Dec 2006 06:45
by galabad
This webpage shows the same errors, is this normal?:

http://appdb.winehq.org/appview.php?iVe ... ingId=1673

Posted: 12 Dec 2006 13:38
by sepi_1982
Hi,

JVLC group just released a new version of their librairies: binaries for both Linux and Windows. I did not try it but it might be now running fine without hard compilation.

Problem with latest VLCJ linux binary

Posted: 12 Dec 2006 17:57
by galabad
I have been using the latest binary and it has the above mentioned problem. I also noticed the jar file in the binary download package has a modfy time of August 1st. That makes it appear as if the older files were put in the package by mistake. Is that what happened?

Posted: 19 Dec 2006 21:18
by GuruMeditation
I started receiving the error after an Ubuntu system update. If you're building from scratch this may not help you, but these are the steps I used to fix the problem (and hope it helps some people who end up here using google). Maybe reinstalling some of the libs may help you :

System :

Ubuntu 7.04 (Feisty Fawn)
All applications installed through the apt-get interface.

Original error :

After doing a system update on December 18th (not sure what exactly got updated, but it was a 150Mb update) VLC refused to launch through its Gnome icon, and the following error occured in the console.

Code: Select all

VLC media player 0.8.6 Janus [00000276] main interface error: no suitable interface module [00000001] main private error: interface "hotkeys,none" initialization failed [00000278] main interface error: no suitable interface module [00000001] main private error: interface "screensaver,none" initialization failed [00000280] main interface error: no suitable interface module [00000001] main private error: interface "(null)" initialization failed
Steps taken :

Step 1 : Remove VLC and associated libs :

Code: Select all

$ sudo apt-get autoremove vlc Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libwxgtk2.6-0 libpostproc0d libdvbpsi4 libxosd2 libvlc0 vlc-nox libwxbase2.6-0 libdvdnav4 libiso9660-4 libdvdread3 vlc libmad0 libid3tag0 libmodplug0c2 libtar libvcdinfo0 libmpcdec3 libmpeg2-4 libsdl-image1.2 The following packages will be REMOVED: libdvbpsi4 libdvdnav4 libdvdread3 libid3tag0 libiso9660-4 libmad0 libmodplug0c2 libmpcdec3 libmpeg2-4 libpostproc0d libsdl-image1.2 libtar libvcdinfo0 libvlc0 libwxbase2.6-0 libwxgtk2.6-0 libxosd2 vlc vlc-nox 0 upgraded, 0 newly installed, 19 to remove and 15 not upgraded. Need to get 0B of archives. After unpacking 28.9MB disk space will be freed.
Step 2 : Reinstall VLC

Code: Select all

$ sudo apt-get install vlc Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libcaca0 libcucul0 libdvbpsi4 libdvdnav4 libdvdread3 libid3tag0 libiso9660-4 libmad0 libmodplug0c2 libmpcdec3 libmpeg2-4 libpostproc0d libsdl-image1.2 libtar libvcdinfo0 libvlc0 libwxbase2.6-0 libwxgtk2.6-0 libxosd2 vlc-nox Suggested packages: libdvdcss2 xfonts-base-transcoded mozilla-plugin-vlc Recommended packages: videolan-doc The following NEW packages will be installed: libcaca0 libcucul0 libdvbpsi4 libdvdnav4 libdvdread3 libid3tag0 libiso9660-4 libmad0 libmodplug0c2 libmpcdec3 libmpeg2-4 libpostproc0d libsdl-image1.2 libtar libvcdinfo0 libvlc0 libwxbase2.6-0 libwxgtk2.6-0 libxosd2 vlc vlc-nox 0 upgraded, 21 newly installed, 0 to remove and 15 not upgraded. Need to get 6155kB/11.4MB of archives. After unpacking 31.5MB of additional disk space will be used.
Step 3 : Use VLC :)