[vlc-devel] JVLC - java.lang.UnsatisfiedLinkError: Unable to load library 'vlc-control' under Windows
geert.lorang at chello.be
Wed Apr 16 19:35:14 CEST 2008
Very small (but annoying) bugreport:
When using JVLC under Windows you always get this exception:
"Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to
load library 'vlc-control': The specified module could not be found."
while it works fine under Linux. After some digging i found the cause of
The DLL (under windows) is called "libvlc-control.dll" (under Linux it
BUT the code (bindings/java/org/videolan/jvlc/internal/LibVlc.java)
tries to load "vlc-control" instead of "libvlc-control".
The fact that it works under Linux and not under Windows is because of
the appended prefixes in NativeLibrary.java (JNA)
Take a look at lines 89-108 at
(looks like JNA's svn is password protected)
There are a couple of solutions to fix this bug:
* Rename your dll under windows to "vlc-control.dll"
* Change the code in LibVlc.java to load "libvlc-control" instead of
"vlc-control" (preferred solution?)
* Let VLC produce "vlc-control.dll/so" at compilation time
* Ask JNA developers to add "lib" as a prefix for Windows in
Linux: Ubuntu 7.10 - vlc-snapshot-20080410.tar.bz2
Windows: Windows XP Pro SP2 - cygwin - git checked out yesterday
Anyway, keep up the good work!
More information about the vlc-devel