First, as mentionned here, there is not much JVLC information on the web. I nevertheless noticed that JVLC is in fact now provided part of the standard VLC source tree which is good.
I try to get it to work on MacOSX Leopard, using standard JDK 1.6.0.
First I had to hack LibVLC.java so that it uses the correct "libvlc.dylib" library name of Mac :
Code: Select all
LibVlc INSTANCE = (LibVlc) Native.loadLibrary(
Platform.isWindows() ? "libvlc.dll" :
Platform.isMac() ? "libvlc.dylib" :
"vlc",
LibVlc.class, options);
Code: Select all
Unable to load library 'libvlc.dylib': dlopen(.../vlc/vlc_install_dir/lib/libvlc.dylib, 1): no suitable image found. Did find:
.../vlc/vlc_install_dir/lib/libvlc.dylib: mach-o, but wrong architecture
If so what are the options ?
- Compiling VLC as 64-bits binary (seems to be NOT an option at the moment) ?
- Forcing off-the shelf JNA to load 32-bits libraries (is that even possible) ?
- Using a 32-bit JDK for MacOSX (is there even one) ?
- Building another Java / Vlc binding, maybe using true JNI (will I encounter a similar problem) ?
- Using another method than JVLC to use VLC within Java (which one) ?
Any help would be greatly appreciated.
Thanks !