Compilation problem with JVLC 0.9.0

*nix specific usage questions
chooo
New Cone
New Cone
Posts: 5
Joined: 26 Mar 2008 10:24

Compilation problem with JVLC 0.9.0

Postby chooo » 26 Mar 2008 11:33

Hello,

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)
Now, if I take a look into my path/to/vlc-libraries/directory containing all vlc libraries freshly compiled from the videolan trunk, I can see no libjvlc.so library !

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.
Do you have any idea of the source of this problem ?

Thanks a lot!

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Re: Compilation problem with JVLC 0.9.0

Postby littlejohn » 08 Apr 2008 00:02

Hi,
you are using the old jvlc bindings. The libjvlc.so is not needed anymore, and --enable-java-bindings has no effects (it displays a warning you have probably missed). To build the java bindings, please refer to FAQ page:

http://trac.videolan.org/jvlc/wiki/faq

Cheers,
Filippo

srikas
New Cone
New Cone
Posts: 8
Joined: 11 Apr 2008 21:38

Re: Compilation problem with JVLC 0.9.0

Postby srikas » 02 May 2008 03:39

I get same error when trying in windows XP.
Does it suppose to work in windows XP?

Thanks,
Srinivas.

dustman
New Cone
New Cone
Posts: 3
Joined: 14 May 2008 14:51

Re: Compilation problem with JVLC 0.9.0

Postby dustman » 16 May 2008 01:33

Hi,
you are using the old jvlc bindings. The libjvlc.so is not needed anymore, and --enable-java-bindings has no effects (it displays a warning you have probably missed). To build the java bindings, please refer to FAQ page:

http://trac.videolan.org/jvlc/wiki/faq

Cheers,
Filippo
well, i used the exact instructions in the FAQ...and i still get those failed JUnit tests when running "mvn install" - i have the latest code via git :( . Help pls...


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests