Page 1 of 1

JVLC error on LINUX

Posted: 03 May 2006 23:41
by ekladka
I am trying to open VLC in JAVA and I think solution is to try JVLC.

After lots and lots of errors and fixes, I could compile JVLC by modifing make file.

and now it gives me error when I try to run it.


Eception in thread "Main" java.lang.UNsatisfiedLinKError

when I try to run SwingClient

Can someone please help me? I have been trying to work around this forever.

Re: JVLC error on LINUX

Posted: 04 May 2006 15:13
by littlejohn
I am trying to open VLC in JAVA and I think solution is to try JVLC.

After lots and lots of errors and fixes, I could compile JVLC by modifing make file.

and now it gives me error when I try to run it.


Eception in thread "Main" java.lang.UNsatisfiedLinKError

when I try to run SwingClient

Can someone please help me? I have been trying to work around this forever.
Hi,
I'm the developer of the java bindings. Please write more on the subject, since I need more details to help you.

Cheers,
lj

Posted: 05 May 2006 21:24
by harisson
hello littlejohn,

Could you please synchronize your jvlc repository with the vlc-trunk ? the methods from *Intf interfaces don't have the same signatures.

After these modifications, i've got an UnsatisfiedLinkError Exception too, when I try to run VlcClient (latest vlc-svn) :

Code: Select all

/home/harisson/workspace/vlc-trunk/bindings/java/libjvlc.so: undefined symbol: vlc_entry__faad at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647) at java.lang.Runtime.load0(Runtime.java:769) at java.lang.System.load(System.java:967) at org.videolan.jvlc.JVLC.<clinit>(JVLC.java:37) at org.videolan.jvlc.JVLCCanvas.finit$(JVLCCanvas.java:34) at org.videolan.jvlc.JVLCCanvas.<init>(JVLCCanvas.java) at org.videolan.jvlc.JVLCPanel.<init>(JVLCPanel.java:37) at VLCPlayerFrame.initComponents(VlcClient.java:23) at VLCPlayerFrame.<init>(VlcClient.java:10) at VlcClient.main(VlcClient.java:142)

Posted: 05 May 2006 22:22
by Guest
hello littlejohn,

Could you please synchronize your jvlc repository with the vlc-trunk ? the methods from *Intf interfaces don't have the same signatures.
Yes, I'll do it asap.
After these modifications, i've got an UnsatisfiedLinkError Exception too, when I try to run VlcClient (latest vlc-svn) :

Code: Select all

/home/harisson/workspace/vlc-trunk/bindings/java/libjvlc.so: undefined symbol: vlc_entry__faad at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647) at java.lang.Runtime.load0(Runtime.java:769) at java.lang.System.load(System.java:967) at org.videolan.jvlc.JVLC.<clinit>(JVLC.java:37) at org.videolan.jvlc.JVLCCanvas.finit$(JVLCCanvas.java:34) at org.videolan.jvlc.JVLCCanvas.<init>(JVLCCanvas.java) at org.videolan.jvlc.JVLCPanel.<init>(JVLCPanel.java:37) at VLCPlayerFrame.initComponents(VlcClient.java:23) at VLCPlayerFrame.<init>(VlcClient.java:10) at VlcClient.main(VlcClient.java:142)
Please post the configure switches you used for vlc.

Cheers,
lj

Posted: 05 May 2006 22:41
by harisson

Please post the configure switches you used for vlc.

Cheers,
lj
here are my configure switches :

Code: Select all

configure --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac --with-ffmpeg-faad --enable-theora --enable-flac --enable-esd --enable-dvbpsi --enable-dvdread --enable-release --enable-wxwidgets --enable-a52 --enable-dts --enable-libmpeg2 --enable-vorbis --enable-hal --enable-sout --enable-http --enable-vlm --enable-gnutls --enable-livedotcom --enable-dvdnav --enable-smb --enable-libcdio --enable-alsa --enable-visual --enable-libcddb --enable-cdda --enable-vcd --enable-screen --enable-ogg --enable-mkv --enable-mod --enable-mad --enable-speex --enable-png --enable-x264 --enable-cmml --enable-x11 --enable-xvideo --enable-glx --enable-opengl --enable-sdl --enable-freetype --enable-fribidi --enable-libxml2 --enable-fb --enable-oss --enable-daap --enable-skins --enable-skins2 --enable-loader --enable-dmo --enable-v4l --enable-dvb --enable-mozilla --enable-java-bindings
on debian sid with :
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
built on Apr 30 2006

Posted: 07 May 2006 20:49
by Guest

here are my configure switches :

Code: Select all

...
I updated java bindings sources on vlc svn head and then compiled it with your same switches (but --enable-loader since I'm on amd64); compilation was successful. I didn't have any problems running VlcClient either.

Please try with the latest vlc svn repository and if it doesn't work, post the output of:

Code: Select all

vlc-config --cxxflags pic vlc-config --libs external pic
Cheers,
lj
[/code]

Posted: 09 May 2006 14:24
by Guest

here are my configure switches :

Code: Select all

...
I updated java bindings sources on vlc svn head and then compiled it with your same switches (but --enable-loader since I'm on amd64); compilation was successful. I didn't have any problems running VlcClient either.

Please try with the latest vlc svn repository and if it doesn't work, post the output of:

Code: Select all

vlc-config --cxxflags pic vlc-config --libs external pic
Cheers,
lj
[/code]
Ok sorry for late answer, i saw your update for the delete item function in libvlc, i will retry to recompile it but i get some troubles with faad/faad2 which i suppose (maybe i'm wrong) cause this unsatisfiedLinkError.

harisson

Posted: 10 May 2006 14:38
by harisson
Hi lj,

I finally success to skip the vlc__entry__faad unsatisfiedLinkException and run jvlc \o/ , below my final configure switches :

Code: Select all

configure --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac --with-faad-tree=extras/faad2 --enable-faad --enable-theora --enable-flac --enable-esd --enable-dvbpsi --enable-dvdread --enable-release --enable-wxwidgets --enable-a52 --enable-dts --enable-libmpeg2 --enable-vorbis --enable-hal --enable-dbus --disable-gnomevfs --disable-hd1000v --disable-hd1000a --disable-daap --disable-bonjour --enable-sout --enable-http --enable-vlm --enable-gnutls --enable-livedotcom --enable-dvdnav --enable-smb --enable-libcdio --enable-alsa --enable-visual --enable-libcddb --enable-cdda --enable-vcd --enable-screen --enable-ogg --enable-mkv --enable-mod --enable-mad --enable-speex --enable-png --with-x264-tree=extras/x264 --enable-x264 --enable-cmml --enable-x11 --enable-xvideo --enable-glx --enable-opengl --enable-sdl --enable-freetype --enable-fribidi --enable-libxml2 --enable-fb --enable-oss --enable-skins --enable-skins2 --enable-loader --enable-dmo --enable-v4l --enable-dvb --enable-mozilla --enable-java-bindings
Now I will try to integrate jvlc in my project :-), I hope there will be one day a Mac OS X port of jvlc (for win we use the activeX component).

Keep up the good work lj ;-)

Posted: 10 May 2006 23:03
by littlejohn
Hi lj,

I finally success to skip the vlc__entry__faad unsatisfiedLinkException and run jvlc \o/ , below my final configure switches :
....
Now I will try to integrate jvlc in my project :-), I hope there will be one day a Mac OS X port of jvlc (for win we use the activeX component).

Keep up the good work lj ;-)
Great!

Cheers,
lj

Posted: 12 May 2006 10:26
by spiridonas
hello ekladka could you post the makefile????please it would be a great help for me since i'm stack with the make.....another question: you just use make or something else....p.s. I try do it on a Ubuntu system....not using AMD64

Thanks in advance

Posted: 12 May 2006 10:56
by littlejohn
hello ekladka could you post the makefile????please it would be a great help for me since i'm stack with the make.....another question: you just use make or something else....p.s. I try do it on a Ubuntu system....not using AMD64

Thanks in advance
I think he used the standard makefile, since he configured vlc with --enable-java-bindings . I also tested this with x86. Are you using latest vlc svn version?

Cheers,
lj

Posted: 12 May 2006 11:07
by spiridonas
Hello littlejohn

I think he wrote...at the begining
"After lots and lots of errors and fixes, I could compile JVLC by modifing make file. "

I got the vlc trunk using svn co svn://svn.videolan...etc I suppose this is the latest version...Thank you anyway I will try it using your advice on my post

PROBLEM WITH JVLC#2 and let you know....or thank you if everything went fine...but thanks anyway for your help