#3 Can't compile libxine-java

open
nobody
None
5
2010-12-04
2010-12-04
Tux12Fun
No

If I try to compile the Library the following error occures:

....
checking for X11/Xlib.h... yes
checking X11/Intrinsic.h usability... yes
checking X11/Intrinsic.h presence... yes
checking for X11/Intrinsic.h... yes
checking for XCB... yes
checking jawt_md.h usability... yes
checking jawt_md.h presence... yes
checking for jawt_md.h... yes
Cannot find libjawt, please specify --with-jni-lib-flags.
# << configure exited

After spending a lot of time i patched the following file:
build-utils/locatejnilibs.sh
Line 18:
# LINUX x86_64 X11
if test -e $JAVAHOME/lib/amd64/xawt/libmawt.so ; then
echo -L$JAVAHOME/lib/amd64 ; exit 0
fi

now I got a Problem with libtool. Fixed with

make
/bin/sh ./libtool --mode=compile gcc -Wall -I/opt/sun-jdk-1.6.0.22/jre/../include -I/opt/sun-jdk-1.6.0.22/jre/../include/linux -c src/libxine-helper.c -o libxine-helper.lo
./libtool: line 832: X--mode=compile: command not found
./libtool: line 998: *** Warning: inferring the mode of operation is deprecated.: command not found
./libtool: line 999: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
./libtool: line 1142: Xgcc: command not found
./libtool: line 1142: X-Wall: command not found
./libtool: line 1142: X-I/opt/sun-jdk-1.6.0.22/jre/../include: No such file or directory
./libtool: line 1142: X-I/opt/sun-jdk-1.6.0.22/jre/../include/linux: No such file or directory
./libtool: line 1142: X-c: command not found
./libtool: line 1193: Xlibxine-helper.lo: command not found
./libtool: line 1198: libtool: compile: cannot determine name of library object from `': command not found
make: *** [libxine-helper.lo] Fehler 1
Fix:
libtoolize --force --copy

No I get the following Error.
make
/bin/sh ./libtool --mode=compile gcc -Wall -I/opt/sun-jdk-1.6.0.22/jre/../include -I/opt/sun-jdk-1.6.0.22/jre/../include/linux -c src/dvdinfo.c -o dvdinfo.lo
libtool: compile: gcc -Wall -I/opt/sun-jdk-1.6.0.22/jre/../include -I/opt/sun-jdk-1.6.0.22/jre/../include/linux -c src/dvdinfo.c -fPIC -DPIC -o .libs/dvdinfo.o
mkdir -p swig/org/libxine
swig -java -package org.libxine -outdir swig/org/libxine libxine.i
/bin/sh ./libtool --mode=compile gcc -I/opt/sun-jdk-1.6.0.22/jre/../include -I/opt/sun-jdk-1.6.0.22/jre/../include/linux -c libxine_wrap.c -o libxine_wrap.lo
libtool: compile: gcc -I/opt/sun-jdk-1.6.0.22/jre/../include -I/opt/sun-jdk-1.6.0.22/jre/../include/linux -c libxine_wrap.c -fPIC -DPIC -o .libs/libxine_wrap.o
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xineJ_1open':
libxine_wrap.c:1099: warning: cast to pointer from integer of different size
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xineJ_1create_1visual':
libxine_wrap.c:1119: warning: cast to pointer from integer of different size
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xineJ_1post_1init':
libxine_wrap.c:1184: warning: cast to pointer from integer of different size
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xine_1trick_1mode':
libxine_wrap.c:1536: warning: 'xine_trick_mode' is deprecated (declared at /usr/include/xine.h:261)
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xine_1vlog':
libxine_wrap.c:3261: error: incompatible types when assigning to type 'va_list' from type 'struct __va_list_tag *'
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xine_1mrl_1reference_1data_1t_1alternative_1set':
libxine_wrap.c:7397: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7397: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7403: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xine_1mrl_1reference_1data_1t_1alternative_1get':
libxine_wrap.c:7411: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7411: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7417: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xine_1mrl_1reference_1data_1t_1mrl_1set':
libxine_wrap.c:7425: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7425: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7431: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_xine_1mrl_1reference_1data_1t_1mrl_1get':
libxine_wrap.c:7452: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7452: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7458: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_new_1xine_1mrl_1reference_1data_1t':
libxine_wrap.c:7467: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7471: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7471: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7472: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c: In function 'Java_org_libxine_XineLibJNI_delete_1xine_1mrl_1reference_1data_1t':
libxine_wrap.c:7478: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7478: warning: 'xine_mrl_reference_data_t' is deprecated
libxine_wrap.c:7482: warning: 'xine_mrl_reference_data_t' is deprecated
make: *** [libxine_wrap.lo] Fehler 1

At this Step I need your help.

Information about my system
System: Gentoo Linux (X84_64)
Kernel: 2.6.37-rc4
Java: java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
eselect java-vm list
Available Java Virtual Machines:
[1] icedtea6-bin
[2] sun-jdk-1.6 system-vm << selected
[3] sun-jre-bin-1.6
Compiler: gcc (Gentoo 4.4.4-r2 p1.2, pie-0.4.5) 4.4.4
Libtool: libtool (GNU libtool) 2.4

Discussion


Log in to post a comment.