[vlc-devel] Fwd: Pb with JVLC on MacOSX Leopard

Eric Nicolas erik.nicolas.ml at gmail.com
Tue Apr 28 11:18:36 CEST 2009


Ok, I switched to JDK 1.5 for now. This JDK is 32-bits, so there is no  
arhitecture compatibility problem anymore.

However, the test program org.videolan.jvlc.interlan.LibVlcImpl.main()  
crashes.
The crash report says :

	Thread 21 Crashed:
	0   com.apple.QD                  	0x90d21609 GetPixBounds + 8
	1   com.apple.agl                 	0x92cefdf1 aglSetDrawable + 859
	2   libmacosx_plugin.dylib        	0x090a9b3f aglInit + 95
	3   libopengl_plugin.dylib        	0x09844388 Init + 40
	4   libvlccore.2.dylib            	0x06118606 InitThread + 38
	5   libvlccore.2.dylib            	0x06119124 RunThread + 52
	6   libSystem.B.dylib             	0x91eb8095 _pthread_start + 321
	7   libSystem.B.dylib             	0x91eb7f52 thread_start + 34

The output console says :

	Starting vlc
	version: 1.0.0-pre2 Goldeneye
	changeset: exported
	compiler: gcc version 4.2.1 (Based on Apple Inc. build 5555) (LLVM  
build 2056)
	Drawable=485830896
	*** LibVLC Exception not handled: No active input
	Set a breakpoint in 'libvlc_exception_not_handled' to debug.
	Playing started.
	frame skip 8
	frame skip 8

Any idea, anyone ??

Thanks, EN.

Début du message réexpédié :

> De : Eric Nicolas <erik.nicolas at gmail.com>
> Date : 26 avril 2009 16:23:33 HAEC
> À : vlc-devel at videolan.org
> Objet : Réexp : Pb with JVLC on MacOSX Leopard
>
> Just to let you know, I confirm that the pb is 32-bit vs. 64-bit.
> JDK 1.6 is 64-bit on MacOSX Leopard (1.5 was 32-bit, though).
>
> Even the JNISample from Apple does not work with JDK 1.6, it needs  
> patching to force "-arch x86_64".
>
> E.
>
> Début du message réexpédié :
>
>> De : Eric Nicolas <erik.nicolas at gmail.com>
>> Date : 26 avril 2009 15:42:27 HAEC
>> À : vlc-devel at videolan.org
>> Objet : Pb with JVLC on MacOSX Leopard
>>
>> Topic initially posted here : http://forum.videolan.org/viewtopic.php?f=32&t=58603#p195457
>> But someone suggested that I post here too.
>> ---
>>
>> 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 :
>>
>> ---
>>    LibVlc INSTANCE = (LibVlc) Native.loadLibrary(
>>             Platform.isWindows() ? "libvlc.dll" :
>>                Platform.isMac() ? "libvlc.dylib" :
>>                   "vlc",
>>                   LibVlc.class, options);
>> ---
>>
>> But still, it does not load, failing on :
>>
>> ---
>>    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
>> ---
>>
>> 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 ?
>>
>> 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 !
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090428/01c84a2e/attachment.html>


More information about the vlc-devel mailing list