Compiling VLC with Java Bindings fails

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
laralura
New Cone
New Cone
Posts: 5
Joined: 05 Mar 2006 01:31

Compiling VLC with Java Bindings fails

Postby laralura » 17 Aug 2006 18:52

Hello,

it would appear the Java Bindings are *very* experimental :mrgreen:

After finally getting rid of all the problems concerning displaced includes [1] and missing JNI-Headers [2], I'm stranded with the following error message:

Code: Select all

video-jni.cc: In function `void Java_org_videolan_jvlc_Video__1reparent(JNIEnv*, _jobject*, _jobject*)': video-jni.cc:185: error: invalid conversion from `HWND__*' to `libvlc_drawable_t' video-jni.cc:185: error: initializing argument 2 of `int libvlc_video_reparent(libvlc_input_t*, libvlc_drawable_t, libvlc_exception_t*)'
The g++ call was trying to compile video-jni in vlc-0.8.6-svn/bindings/java/src

Code: Select all

g++ -mno-cygwin video-jni.cc -Wsign-compare -Wsign-compare -Wall -mms-bitfields -pipe `top_builddir=../../.. ../../../vlc-config --cflags pic` -I../../ -I ../../include -I/cygdrive/c/Program\ Files/Java/jdk1.5.0_07/include -I/cygdrive/c/Program\ Files/Java/jdk1.5.0_07/include/win32 -c -o video-jni.o
I'm using the SVN snapshot from 2006-08-16, so it should be quite recent. The compiler is (obviously) running in a cygwin environment. Configure flags were chosen according to the README with the exception of --enable-java-bindings. The remainder of vlc (up to the java bindings) was built without problems.

Could someone lend me a helping hand?

Now for the "links" from above: I have no clue how to supply a working patch for the problems, so please bear with me providing a description:

[1] The Makefile in java/src is missing one ../ to the include path ("-I ../../include" should be "-I ../../../include", I created a symlink)

[2] make should first compile the class files, then include the headers generated from them in the C-Code - it's a bug in the Makefile. Additionally the directory java/includes was missing - should be created as well. And finally:
* both, javah and gcj would not work unless I added "-classpath ."
* javah requires its options first: "($JHC) -o includes/(...) org(...)"
* javah wants the package separated by "." not "/" so it' should be "org.videolan.jvlc." instead of "org/videolan/jvlc/"

Regards

laralura
New Cone
New Cone
Posts: 5
Joined: 05 Mar 2006 01:31

Postby laralura » 21 Aug 2006 10:15

I'm replying to myself here, but since there have been several views of this topic with no response I'd like to ask whether
  • my report is just incomplete or
  • no one else has been trying this or
  • if the Java bindings on Windows are dead.
According to the README of JVLC it is supposed to work, so what am I missing?

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 22 Aug 2006 03:08

None of the forum moderators have ANY experience with the Java bindings. :(
Don't use PMs for support questions.

laralura
New Cone
New Cone
Posts: 5
Joined: 05 Mar 2006 01:31

Postby laralura » 22 Aug 2006 10:49

None of the forum moderators have ANY experience with the Java bindings. :(
That's to bad, but thanks for your response. Before posting I've look through the mailing list archives, but it seems there's no one maintaining the windows port.
Do you or anyone else know, who did maintain it in the first place? The JVLC website merely mentions it should be working in some places and that it doesn't in others :(

oober
New Cone
New Cone
Posts: 5
Joined: 11 Oct 2006 17:40

Postby oober » 11 Oct 2006 19:10

Why not install linux on a separate machine and compile it from there. I have had very little problems compiling both vlc and jvlc on my gentoo box.

oober
New Cone
New Cone
Posts: 5
Joined: 11 Oct 2006 17:40

Postby oober » 11 Oct 2006 19:10

Why not install linux on a separate machine and compile it from there. I have had very little problems compiling both vlc and jvlc on my gentoo box. It might even save you some more time than it takes you to sort out all those errors.

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

Postby littlejohn » 14 Oct 2006 12:52

None of the forum moderators have ANY experience with the Java bindings. :(
That's to bad, but thanks for your response. Before posting I've look through the mailing list archives, but it seems there's no one maintaining the windows port.
Do you or anyone else know, who did maintain it in the first place? The JVLC website merely mentions it should be working in some places and that it doesn't in others :(
Hi,
I'm the java bindings developer (duck :D ).
I do suggest to use svn trunk version, which is mantained for both GNU/Linux and Windows platforms. Anyway, I'm fixing version 0.8.6 now. When you configure trunk version use: --enable-java-bindings --disable-libtools .

Cheers,
Filippo


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 24 guests