<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Ok, I switched to JDK 1.5 for now. This JDK is 32-bits, so there is no arhitecture compatibility problem anymore.</div><div><br></div><div>However, the test program org.videolan.jvlc.interlan.LibVlcImpl.main() crashes.</div><div>The crash report says :</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">  </span>Thread 21 Crashed:</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>0   com.apple.QD                  <span class="Apple-tab-span" style="white-space:pre">        </span>0x90d21609 GetPixBounds + 8</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>1   com.apple.agl                 <span class="Apple-tab-span" style="white-space:pre">     </span>0x92cefdf1 aglSetDrawable + 859</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>2   libmacosx_plugin.dylib        <span class="Apple-tab-span" style="white-space:pre"> </span>0x090a9b3f aglInit + 95</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>3   libopengl_plugin.dylib        <span class="Apple-tab-span" style="white-space:pre"> </span>0x09844388 Init + 40</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>4   libvlccore.2.dylib            <span class="Apple-tab-span" style="white-space:pre">       </span>0x06118606 InitThread + 38</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>5   libvlccore.2.dylib            <span class="Apple-tab-span" style="white-space:pre">       </span>0x06119124 RunThread + 52</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>6   libSystem.B.dylib             <span class="Apple-tab-span" style="white-space:pre">       </span>0x91eb8095 _pthread_start + 321</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>7   libSystem.B.dylib             <span class="Apple-tab-span" style="white-space:pre">       </span>0x91eb7f52 thread_start + 34</div><div><br></div></div><div>The output console says :</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">    </span>Starting vlc</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">     </span>version: 1.0.0-pre2 Goldeneye</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">    </span>changeset: exported</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">      </span>compiler: gcc version 4.2.1 (Based on Apple Inc. build 5555) (LLVM build 2056)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">   </span>Drawable=485830896</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">        </span>*** LibVLC Exception not handled: No active input</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre"> </span>Set a breakpoint in 'libvlc_exception_not_handled' to debug.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">     </span>Playing started.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">  </span>frame skip 8</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 0, 0); "><span class="Apple-tab-span" style="white-space:pre">      </span>frame skip 8</div><div><font class="Apple-style-span" color="#FF0000" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div></div><div>Any idea, anyone ??</div><div><br></div><div>Thanks, EN.</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 16:23:33 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>Réexp : 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 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></div></blockquote></div><br></body></html>