I am trying to use the latest JVLC code from the videolan trunk, and I get the following error :
if I run
Code: Select all
# java -Djna.library.path=path/to/vlc-libraries/directory -classpath jvlc-0.9.0-20080309-linux_x86-32.jar VLCExample
I get
Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jvlc in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at org.videolan.jvlc.JVLC.<clinit>(JVLC.java:36)
at VLCPlayerFrame.initComponents(VlcClient.java:66)
at VLCPlayerFrame.<init>(VlcClient.java:47)
at VlcClient.main(VlcClient.java:218)
Here are the VLC compilation steps I followed :
1- git clone git://git.videolan.org/vlc.git
2- cd vlc && ./bootstrap && ./configure --prefix=$compilationDirectory --build=i386-linux --enable-dv --enable-dvdread --enable-v4l --enable-dvb --enable-faad --enable-twolame --enable-flac --enable-snapshot --enable-esd --enable-arts --enable-java-bindings --disable-gtk --disable-hal --disable-libcdio && make && make install
3- cd bindings/java && mvn install
Note : the mvn install command threw JUnit tests errors :
Code: Select all
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.videolan.jvlc.internal.MediaListTest
Tests run: 7, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 0.133 sec <<< FAILURE!
Running org.videolan.jvlc.MediaListTest
Tests run: 9, Failures: 0, Errors: 9, Skipped: 0, Time elapsed: 0.054 sec <<< FAILURE!
Running org.videolan.jvlc.internal.MediaListPlayerTest
Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed: 0.035 sec <<< FAILURE!
Running org.videolan.jvlc.JVLCTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.014 sec <<< FAILURE!
Running org.videolan.jvlc.internal.LibVlcMediaInstanceTest
Tests run: 8, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 0.02 sec <<< FAILURE!
Running org.videolan.jvlc.internal.LibVlcCoreTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.011 sec <<< FAILURE!
Running org.videolan.jvlc.internal.MediaDescriptorTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.006 sec <<< FAILURE!
Results :
Tests in error:
mediaListNew(org.videolan.jvlc.internal.MediaListTest)
mediaListAddMediaDescriptor(org.videolan.jvlc.internal.MediaListTest)
mediaListCountTest(org.videolan.jvlc.internal.MediaListTest)
mediaListEventManagerTest(org.videolan.jvlc.internal.MediaListTest)
mediaListIndexOfItemTest(org.videolan.jvlc.internal.MediaListTest)
mediaListRemoveIndexTest(org.videolan.jvlc.internal.MediaListTest)
mediaListRemoveIndexTest2(org.videolan.jvlc.internal.MediaListTest)
mediaListAddMedia(org.videolan.jvlc.MediaListTest)
mediaListAddMedia2(org.videolan.jvlc.MediaListTest)
mediaListRemoveMedia(org.videolan.jvlc.MediaListTest)
mediaListRemoveMedia2(org.videolan.jvlc.MediaListTest)
mediaListRemoveNonExistingMedia(org.videolan.jvlc.MediaListTest)
mediaListIndexOfNonExistingMediaDescriptor(org.videolan.jvlc.MediaListTest)
mediaListGetMediaDesciptorAtInvalidIndex(org.videolan.jvlc.MediaListTest)
mediaListGetMediaDesciptorAtInvalidIndex2(org.videolan.jvlc.MediaListTest)
mediaListGetMediaDesciptorAtInvalidIndex3(org.videolan.jvlc.MediaListTest)
mediaListPlayerNewTest(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerSetMediaListTest(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerSetMediaListTest2(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerIsPlayingTest(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerPlayNoItemTest(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerPlayItemAtIndex(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerPlayItem(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerPause(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerIsPlaying(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerGetStateStopped(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerSetMediaInstance(org.videolan.jvlc.internal.MediaListPlayerTest)
mediaListPlayerNextNoItems(org.videolan.jvlc.internal.MediaListPlayerTest)
jvlcNew(org.videolan.jvlc.JVLCTest)
jvlcPlay(org.videolan.jvlc.JVLCTest)
mediaInstanceNew(org.videolan.jvlc.internal.LibVlcMediaInstanceTest)
mediaInstancePlayBad(org.videolan.jvlc.internal.LibVlcMediaInstanceTest)
mediaInstancePlay(org.videolan.jvlc.internal.LibVlcMediaInstanceTest)
mediaInstancePauseBad(org.videolan.jvlc.internal.LibVlcMediaInstanceTest)
mediaInstancePause(org.videolan.jvlc.internal.LibVlcMediaInstanceTest)
mediaInstanceSetPosition(org.videolan.jvlc.internal.LibVlcMediaInstanceTest)
mediaInstanceStop(org.videolan.jvlc.internal.LibVlcMediaInstanceTest)
mediaInstanceStop2(org.videolan.jvlc.internal.LibVlcMediaInstanceTest)
testNew(org.videolan.jvlc.internal.LibVlcCoreTest)
testRelease(org.videolan.jvlc.internal.LibVlcCoreTest)
mediaDescriptorNew(org.videolan.jvlc.internal.MediaDescriptorTest)
mediaDescriptorGetMrl(org.videolan.jvlc.internal.MediaDescriptorTest)
Tests run: 42, Failures: 0, Errors: 42, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Thanks a lot!