Cant't comile JVLC under winXP

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
s.naujoks
New Cone
New Cone
Posts: 3
Joined: 30 Jul 2008 18:31

Cant't comile JVLC under winXP

Postby s.naujoks » 30 Jul 2008 21:17

Hallo,
after sucsessfull cross compiling under winXP with cygwin I tried to make the JVLC in the java binding folder with mvn install.
following happens and maven stop:

C:\cygwin\usr\src\vlc\bindings\java>mvn -fn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] JVLC
[INFO] JVLC - Core
[INFO] JVLC - Samples
[INFO] JVLC - Client sample
[INFO] ------------------------------------------------------------------------
[INFO] Building JVLC
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\cygwin\usr\src\vlc\bindings\java\pom.xml to C:\Dokumente und Einstellungen\s.naujoks\.m2\repository
\org\videolan\jvlc-parent\0.9.0-SNAPSHOT\jvlc-parent-0.9.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building JVLC - Core
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: C:\cygwin\usr\src\vlc\bindings\java\core\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.videolan.jvlc.JVLCTest
-vvv: unknown option or missing mandatory argument `-j'
Try `-vvv --help' for more information.

CamHart
New Cone
New Cone
Posts: 7
Joined: 28 Jul 2008 20:46

Re: Cant't comile JVLC under winXP

Postby CamHart » 31 Jul 2008 04:06

Okay so I'm a nub... But whats wrong with just downloading the precompiled jvlc.jar file?

http://trac.videolan.org/jvlc/wiki/download

s.naujoks
New Cone
New Cone
Posts: 3
Joined: 30 Jul 2008 18:31

Re: Cant't comile JVLC under winXP

Postby s.naujoks » 31 Jul 2008 15:31

hi cam,

it isn't wrong to download the existing jvlc. jar file. But it dosn't solve the problem.
It is the same question why crosscompile under cygwin, I can download it too.

Cut a long story short, after a long reading in this forum I found out what it is.
The parameters(plugins-cache,plugin-path)
in the vlcrc file (user.home/Application Data/vlc/)must be changed.
After the editing of this parameters mvn install stoped with this massage:

Running org.videolan.jvlc.JVLCTest
[00000001] main libvlc debug: VLC media player - version 0.9.0-test3 Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--host=i686-pc-mingw32' '--disable-gtk' '--enable
-nls' '--enable-sdl' '--with-sdl-config-path=/usr/win32/bin' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-fa
ac' '--with-ffmpeg-zlib' '--enable-faad' '--enable-flac' '--enable-theora' '--with-wx-config-path=/usr/win32/bin' '--wit
h-freetype-config-path=/usr/win32/bin' '--with-fribidi-config-path=/usr/win32/bin' '--disable-live555' '--with-live555-t
ree=/usr/win32/live.com' '--enable-caca' '--with-caca-config-path=/usr/win32/bin' '--with-
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file C:\Dokumente und Einstellungen\s.naujoks\Anwendungsdaten\vlc\pl
ugins-04041e.dat
[00000001] main libvlc warning: This doesn't look like a valid plugins cache
[00000001] main libvlc debug: recursively browsing `C:\Programme\Java\jdk1.5.0_14\jre\bin\modules'
[00000001] main libvlc debug: recursively browsing `C:\Programme\Java\jdk1.5.0_14\jre\bin\plugins'
[00000001] main libvlc debug: module bank initialized, found 1 modules
libvlc: unknown option or missing mandatory argument `--no-media-library '
Try `libvlc --help' for more information.

Can anybody help me?

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Re: Cant't comile JVLC under winXP

Postby littlejohn » 31 Jul 2008 20:31

Hi,
the error you get is non-sense with the lastest libvlc. Try to reset the plugins cache with --reset-plugins-cache.

Cheers,
Filippo

saurabh
Blank Cone
Blank Cone
Posts: 25
Joined: 05 Aug 2008 08:19
Operating System: Linux
Location: Pune, India

Re: Cant't comile JVLC under winXP

Postby saurabh » 23 Aug 2008 10:19

Hi folks..
I am using a precompiled jvlc on winXP..
Now my application is running smooth..
But when I create 'jar' for my application it gives following error while running from command promt..


F:\Client\jvlc-player>java -jar jvlc-player.jar
vlc: unknown option or missing mandatory argument `-j'
Try `vlc --help' for more information.
The command line options couldn't be loaded, check that they are valid

Press the RETURN key to continue...


When I hit return it creates th following

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x62e4e49b, pid=6076, tid=528
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, sharing)
# Problematic frame:
# C [libvlc.dll+0x8e49b]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x03159c00): JavaThread "Thread-2" [_thread_in_native, id=528]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000004

Registers:
EAX=0x00000000, EBX=0x0037dbd8, ECX=0x030ffa64, EDX=0x00000000
ESP=0x030ff870, EBP=0x030ff8a8, ESI=0x269b5930, EDI=0x03159cec
EIP=0x62e4e49b, EFLAGS=0x00010202

Top of Stack: (sp=0x030ff870)
0x030ff870: 03159cec 030ff918 02ac2ec0 030ff89c
0x030ff880: 00000000 77c12088 030ff8a8 70441211
0x030ff890: 03159cec 030ff918 02ac2ec0 704a401f
0x030ff8a0: 0037dbd8 269b5930 030ff8c8 70442f73
0x030ff8b0: 00000000 0037dbd8 269b5930 269b5930
0x030ff8c0: 269b5930 03159c00 030ff908 0091a440
0x030ff8d0: 03159cec 030ff918 03159c00 6d92ab50
0x030ff8e0: 03159c00 00000006 030ff8e8 269b5930

Instructions: (pc=0x62e4e49b)
0x62e4e48b: 0a 00 8d 76 00 55 89 e5 56 53 83 ec 30 8b 45 08
0x62e4e49b: 8b 58 04 85 db 0f 84 7f 00 00 00 8b 53 20 85 d2


Stack: [0x030b0000,0x03100000), sp=0x030ff870, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libvlc.dll+0x8e49b]
C [jvlc.dll+0x2f73]
j org.videolan.jvlc.Playlist._isRunning()I+0
j org.videolan.jvlc.Playlist.isRunning()Z+1
j org.videolan.jvlc.JVLC.run()V+11
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.videolan.jvlc.Playlist._isRunning()I+0
j org.videolan.jvlc.Playlist.isRunning()Z+1
j org.videolan.jvlc.JVLC.run()V+11
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
=>0x03159c00 JavaThread "Thread-2" [_thread_in_native, id=528]
0x02ae0800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5916]
0x02ade000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1380]
0x02a7c800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=6068]
0x02a78000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5656]
0x02a76c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=3668]
0x02a75c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1388]
0x02a6e000 JavaThread "Finalizer" daemon [_thread_blocked, id=4328]
0x02a6d000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5908]
0x00296000 JavaThread "main" [_thread_in_native, id=5784]

Other Threads:
0x02a63c00 VMThread [id=2672]
0x02a7e000 WatcherThread [id=3312]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 960K, used 314K [0x22990000, 0x22a90000, 0x22e70000)
eden space 896K, 27% used [0x22990000, 0x229ce8c8, 0x22a70000)
from space 64K, 100% used [0x22a80000, 0x22a90000, 0x22a90000)
to space 64K, 0% used [0x22a70000, 0x22a70000, 0x22a80000)
tenured generation total 4096K, used 393K [0x22e70000, 0x23270000, 0x26990000)
the space 4096K, 9% used [0x22e70000, 0x22ed2708, 0x22ed2800, 0x23270000)
compacting perm gen total 12288K, used 209K [0x26990000, 0x27590000, 0x2a990000)
the space 12288K, 1% used [0x26990000, 0x269c46f0, 0x269c4800, 0x27590000)
ro space 8192K, 66% used [0x2a990000, 0x2aedd978, 0x2aedda00, 0x2b190000)
rw space 12288K, 52% used [0x2b190000, 0x2b7d9cb8, 0x2b7d9e00, 0x2bd90000)

Dynamic libraries:
0x00400000 - 0x00423000 C:\Program Files\Java\jdk1.6.0_02\bin\java.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jdk1.6.0_02\jre\bin\msvcr71.dll
0x6d870000 - 0x6dab9000 C:\Program Files\Java\jdk1.6.0_02\jre\bin\client\jvm.dll
0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x629c0000 - 0x629c9000 C:\WINDOWS\system32\LPK.DLL
0x74d90000 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x6d3c0000 - 0x6d3c8000 C:\Program Files\Java\jdk1.6.0_02\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d820000 - 0x6d82c000 C:\Program Files\Java\jdk1.6.0_02\jre\bin\verify.dll
0x6d460000 - 0x6d47f000 C:\Program Files\Java\jdk1.6.0_02\jre\bin\java.dll
0x6d860000 - 0x6d86f000 C:\Program Files\Java\jdk1.6.0_02\jre\bin\zip.dll
0x6d0b0000 - 0x6d273000 C:\Program Files\Java\jdk1.6.0_02\jre\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x62dc0000 - 0x63068000 F:\Client\jvlc-player\libvlc.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.DLL
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x6d360000 - 0x6d3b3000 C:\Program Files\Java\jdk1.6.0_02\jre\bin\fontmanager.dll
0x651b0000 - 0x651d2000 C:\PROGRA~1\COMMON~1\SYMANT~1\ANTISPAM\ASOEHOOK.DLL
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x6af90000 - 0x6afee000 c:\Program Files\Common Files\Symantec Shared\ccL40.dll
0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.dll
0x7c3a0000 - 0x7c41b000 C:\WINDOWS\system32\MSVCP71.dll
0x7c9c0000 - 0x7d1d4000 C:\WINDOWS\system32\shell32.dll
0x773d0000 - 0x774d2000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
0x5d090000 - 0x5d127000 C:\WINDOWS\system32\comctl32.dll
0x70440000 - 0x70744000 F:\Client\jvlc-player\jvlc.dll
0x02fa0000 - 0x02fa6000 C:\Program Files\Java\jre1.5.0_06\bin\jawt.dll
0x769c0000 - 0x76a73000 C:\WINDOWS\system32\USERENV.dll
0x660c0000 - 0x660cd000 F:\Client\jvlc-player\plugins\libdirect3d_plugin.dll
0x666c0000 - 0x666cb000 F:\Client\jvlc-player\plugins\libglwin32_plugin.dll
0x5ed00000 - 0x5edcc000 C:\WINDOWS\system32\OPENGL32.DLL
0x68b20000 - 0x68b40000 C:\WINDOWS\system32\GLU32.dll
0x6bc00000 - 0x6bc10000 F:\Client\jvlc-player\plugins\libvout_directx_plugin.dll

VM Arguments:
java_command: jvlc-player.jar
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\Program Files\Java\jdk1.6.0_02\bin;C:\Program Files\Java\jdk1.6.0_02\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\HPQ\IAM\bin;C:\Program Files\Java\jre1.5.0_06\bin
USERNAME=Administrator
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 72 Stepping 2, AuthenticAMD



--------------- S Y S T E M ---------------

OS: Windows XP Build 2600 Service Pack 2

CPU:total 2 (2 cores per cpu, 1 threads per core) family 15 model 72 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext

Memory: 4k page, physical 916844k(298832k free), swap 2219360k(1612764k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0_02-b06) for windows-x86, built on Jul 12 2007 01:16:14 by "java_re" with unknown MS VC++:1310

EOF

Plus double clicking th file gives this error...

Could not find main class. Program will exit..

so wht do u think guys..

Why such thing is happening with jar file only.. ?

Please help me..

Thanks in advance...

darkanita
New Cone
New Cone
Posts: 4
Joined: 23 Aug 2008 00:49
Operating System: Windows

Re: Cant't comile JVLC under winXP

Postby darkanita » 26 Aug 2008 17:37

Hi.

You can solved this problem?, i have the same error and i don't that to do. can you help me?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 64 guests