<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Just to let you know, I confirm that the pb is 32-bit vs. 64-bit.</div><div>JDK 1.6 is 64-bit on MacOSX Leopard (1.5 was 32-bit, though).</div><div><br></div><div>Even the JNISample from Apple does not work with JDK 1.6, it needs patching to force "-arch x86_64".</div><div><br></div><div>E.</div><div><br><div>Début du message réexpédié :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>De : </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Eric Nicolas <<a href="mailto:erik.nicolas@gmail.com">erik.nicolas@gmail.com</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Date : </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">26 avril 2009 15:42:27 HAEC</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>À : </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="mailto:vlc-devel@videolan.org">vlc-devel@videolan.org</a></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Objet : </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>Pb with JVLC on MacOSX Leopard</b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </div><div>Topic initially posted here : <a href="http://forum.videolan.org/viewtopic.php?f=32&t=58603#p195457">http://forum.videolan.org/viewtopic.php?f=32&t=58603#p195457</a><br>But someone suggested that I post here too.<br>---<br><br>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.<br>I try to get it to work on MacOSX Leopard, using standard JDK 1.6.0.<br><br>First I had to hack LibVLC.java so that it uses the correct "libvlc.dylib" library name of Mac :<br><br>---<br>    LibVlc INSTANCE = (LibVlc) Native.loadLibrary(<br>             Platform.isWindows() ? "libvlc.dll" :<br>                Platform.isMac() ? "libvlc.dylib" :<br>                   "vlc",<br>                   LibVlc.class, options);<br>---<br><br>But still, it does not load, failing on :<br><br>---<br>    Unable to load library 'libvlc.dylib': dlopen(.../vlc/vlc_install_dir/lib/libvlc.dylib, 1): no suitable image found.  Did find:<br>    .../vlc/vlc_install_dir/lib/libvlc.dylib: mach-o, but wrong architecture<br>---<br><br>Googling this error seems to point out that the JDK (and JNA libs) are 64-bits while libvlc is 32-bits. Is that the correct interpretation for this error ?<br><br>If so what are the options ?<br>- Compiling VLC as 64-bits binary (seems to be NOT an option at the moment) ?<br>- Forcing off-the shelf JNA to load 32-bits libraries (is that even possible) ?<br>- Using a 32-bit JDK for MacOSX (is there even one) ?<br>- Building another Java / Vlc binding, maybe using true JNI (will I encounter a similar problem) ?<br>- Using another method than JVLC to use VLC within Java (which one) ?<br><br>Any help would be greatly appreciated.<br>Thanks !<br><br></div></blockquote></div><br></body></html>