[vlc-devel] Build problem with 'enable-java-bindings' svn 18545

vladakk vladakk at abanka.co.yu
Thu Jan 11 09:00:42 CET 2007


Hi,

I am unable to build VLC svn source with enable-java-bindings.

Kubuntu 6.10

Linux vladakk-asoft 2.6.17-10-generic #2 SMP Tue Dec 5 22:28:26 UTC 2006 i686 GNU/Linux

gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)

.../bootstrap > bootstrap-out.log 2>&1
   ...
+ aclocal-1.9 -I m4
/usr/share/aclocal/eb3.m4:18: warning: underquoted definition of eb_LIB_EB3
   run info '(automake)Extending aclocal'
   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
+ autoconf
+ autoheader
+ automake-1.9 --add-missing --copy -Wall
configure.ac: installing `autotools/install-sh'
configure.ac: installing `autotools/missing'
activex/Makefile.am: installing `autotools/compile'
activex/Makefile.am: installing `autotools/depcomp'
bindings/java/Makefile.am:56: `%'-style pattern rules are a GNU make extension
bindings/java/Makefile.am:58: *F: non-POSIX variable name
bindings/java/Makefile.am:60: `%'-style pattern rules are a GNU make extension
bindings/java/Makefile.am:62: *F: non-POSIX variable name
Makefile.am:315: user target `vlc$(EXEEXT)' defined here...
/usr/share/automake-1.9/am/program.am: ... overrides Automake target `vlc$(EXEEXT)' defined here
Makefile.am:266:   while processing program `vlc'
+ rm -f vlc-config.in vlc-config
+ rm -f src/misc/modules_builtin.h
+ set +x
   ...

CPPFLAGS="-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include" \
JAVA_HOME=/usr/lib/j2sdk6.0-sun \
.../configure --prefix=$DEST_DIR --enable-java-bindings \
   --enable-mozilla --enable-wxwidgets=no  > configure-out0.log 2>&1

make all > make-out0.log 2>&1
.......
make[4]: Entering directory `/temporary/vlc-trunk/bindings/java/src'
if /bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../..  `top_builddir="../../.." ../../../vlc-config --cflags pic` -I/usr/lib/j2sdk6.0-sun/include -I/usr/lib/j2sdk6.0-sun/include/linux -I/usr/include/dbus-1.0 
-I/usr/lib/dbus-1.0/include -DSYS_LINUX -I../../../include  -g -O2 -MT libjvlc_la-audio-jni.lo -MD -MP -MF ".deps/libjvlc_la-audio-jni.Tpo" -c -o libjvlc_la-audio-jni.lo `test -f 'audio-jni.cc' || echo './'`audio-jni.cc; \
	then mv -f ".deps/libjvlc_la-audio-jni.Tpo" ".deps/libjvlc_la-audio-jni.Plo"; else rm -f ".deps/libjvlc_la-audio-jni.Tpo"; exit 1; fi
mkdir .libs
  g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/local/asoft/vlc/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/asoft/vlc/share/locale\" 
-DDATA_PATH=\"/usr/local/asoft/vlc/share/vlc\" -DPLUGIN_PATH=\"/usr/local/asoft/vlc/lib/vlc\" -O3 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -I/usr/lib/j2sdk6.0-sun/include -I/usr/lib/j2sdk6.0-sun/include/linux -I/usr/include/dbus-1.0 
-I/usr/lib/dbus-1.0/include -DSYS_LINUX -I../../../include -g -O2 -MT libjvlc_la-audio-jni.lo -MD -MP -MF .deps/libjvlc_la-audio-jni.Tpo -c audio-jni.cc  -fPIC -DPIC -o .libs/libjvlc_la-audio-jni.o
audio-jni.cc: In function '_jstring* Java_org_videolan_jvlc_Audio__1getChannel(JNIEnv*, _jobject*)':
audio-jni.cc:66: error: invalid conversion from 'int' to 'char*'
audio-jni.cc: In function 'void Java_org_videolan_jvlc_Audio__1setChannel(JNIEnv*, _jobject*, _jstring*)':
audio-jni.cc:79: error: invalid conversion from 'char*' to 'int'
audio-jni.cc:79: error:   initializing argument 2 of 'void libvlc_audio_set_channel(libvlc_instance_t*, int, libvlc_exception_t*)'
make[4]: *** [libjvlc_la-audio-jni.lo] Error 1
make[4]: Leaving directory `/temporary/vlc-trunk/bindings/java/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/temporary/vlc-trunk/bindings/java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/temporary/vlc-trunk/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/temporary/vlc-trunk'
make: *** [all] Error 2
.......

Regards,
Vladimir Kokovic, Belgrade, Serbia









www.abanka.co.yu



-- 
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