[vlc-devel] JVLC compilation problem.
Developer
ahmdprog at gmail.com
Sat Jan 6 20:01:19 CET 2007
Gentelment,
Any one have succefully compile JVLC from SVN. It is not working at all.
I tried to compile it, and I made modification at /bindings/java/Makefile.am
And I did some copying files, and it generate JVLC.dll with 1.55 mb
I tired, it just make the JVM(version 6 or 1.6) crashed. And not working.
Any news and success to compile JVLC?
JVLC developers saying that to download latest SVN and to configure with
--enable-java-bindings and --disable-libtool.
But, it is not working out of the box, and even by doing a lot of
modifications.
Plz, any help on this. And thanks in advanced.
This is my /bindings/java/Makefile.am
#######################################################################
# VLC Java Bindings
#######################################################################
SUBDIRS= . src
EXTRA_DIST= \
FAQ \
TODO \
README \
THANKS \
javadoc.xml \
VlcClient.java \
VLCExample.java
EXTRA_DIST+= \
org/videolan/jvlc/AudioIntf.java \
org/videolan/jvlc/Audio.java \
org/videolan/jvlc/GenericVideoWidget.java \
org/videolan/jvlc/InputIntf.java \
org/videolan/jvlc/Input.java \
org/videolan/jvlc/JLibVLC.java \
org/videolan/jvlc/JVLCCanvas.java \
org/videolan/jvlc/JVLC.java \
org/videolan/jvlc/JVLCPanel.java \
org/videolan/jvlc/PlaylistIntf.java \
org/videolan/jvlc/Playlist.java \
org/videolan/jvlc/VideoIntf.java \
org/videolan/jvlc/Video.java \
org/videolan/jvlc/VLCException.java \
org/videolan/jvlc/VLMIntf.java \
org/videolan/jvlc/VLM.java
OBJECTS = org/videolan/jvlc/VLCException.class
org/videolan/jvlc/Playlist.class org/videolan/jvlc/AudioIntf.class
org/videolan/jvlc/Audio.class org/videolan/jvlc/InputIntf.class
org/videolan/jvlc/Input.class org/videolan/jvlc/PlaylistIntf.class
org/videolan/jvlc/VideoIntf.class org/videolan/jvlc/Video.class
org/videolan/jvlc/JLibVLC.class org/videolan/jvlc/JVLC.class
org/videolan/jvlc/JVLCCanvas.class org/videolan/jvlc/JVLCPanel.class
org/videolan/jvlc/VLMIntf.class org/videolan/jvlc/VLM.class
org/videolan/jvlc/GenericVideoWidget.class
COBJECTS = src/utils.o src/video-jni.o src/audio-jni.o src/input-jni.o
src/playlist-jni.o src/vlm-jni.o src/core-jni.o src/graphics-jni.o
if BUILD_JAVA
# Include some JAVA stuff
PROCESSOR_FAMILY = `uname -m | sed -e 's/^i.86/i386/' | sed -e
's/^x86_64/amd64/'`
if HAVE_WIN32
JINCLUDES = -I${JAVA_HOME}/include -I${JAVA_HOME}/include/win32
LIBJINCLUDES = -L${JAVA_HOME}/lib -ljawt
JCH = javah
JAVACXXFLAGS = `top_builddir=../.. ../../vlc-config --cflags pic` -I../../
-I ../../include $(JINCLUDES)
JAVALDFLAGS = -mno-cygwin -L../../src -lvlc `top_builddir=../..
../../vlc-config --libs builtin vlc pic` -Wl,--kill-at
else
JINCLUDES = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
LIBJINCLUDES = -L$(JAVA_HOME)/jre/lib/$(PROCESSOR_FAMILY) -ljawt
JCH = gcjh -jni
JAVACXXFLAGS = `top_builddir=../.. ../../vlc-config --cflags pic` -I../../
-I ../../include $(JINCLUDES)
JAVALDFLAGS = -L../../src -lvlc `top_builddir=../.. ../../vlc-config --libs
builtin vlc pic`
endif
export JINCLUDES
# Build targets
all: libjvlc.so VlcClient VLCExample
if HAVE_WIN32
libjvlc.so: $(OBJECTS)
$(MAKE) -C src
$(CXX) -shared $(COBJECTS) $(LIBJINCLUDES) $(LDFLAGS) $(JAVALDFLAGS)
-o jvlc.dll
else
libjvlc.so: $(OBJECTS)
$(MAKE) -C src
$(CXX) -shared $(COBJECTS) $(LIBJINCLUDES) $(LDFLAGS) $(JAVALDFLAGS)
-o libjvlc.so
endif
VlcClient: $(OBJECTS)
$(JAVAC) VlcClient.java
VLCExample: $(OBJECTS)
$(JAVAC) VLCExample.java
if HAVE_WIN32
%.class: %.java
$(JAVAC) $?
$(JCH) org.videolan.jvlc.$(*F)
else
%.class: %.java
$(JAVAC) $?
$(JCH) $(@D)/$(*F) -o includes/$(*F).h
endif
clean-local:
rm -f *.class *~ org/videolan/jvlc/*.class org_videolan*.h
includes/*.h src/*.o *.so *.o *.dll
endif
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list