RE: [Java-gnome-developer] Problems Compiling
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2002-06-10 16:41:06
|
It looks like the compile is having trouble finding jni.h. Please open up src/Makefile and tell me the value of JAVA_INCLUDES (it should be close to the top of the file). -Jeff > hi, > I'm having problems compiling java-gnome. I've tried a few different > things. The errors are most probably due to unsatisfied dependencies, > although I have tried to install everything relevant I have found. > > Please let me know what further tests I should perform. (i.e. checking > that I have specific libraries) > > My system: > Debian Sid (up to date) > Gnome2 packages from Debian Experimental directories > java version "1.3.1" > Java(TM) 2 Runtime Environment, Standard Edition (build > Blackdown-1.3.1-FCS) > > ============================================================== > ================= > > With the latest code from CVS. > ./configure (attached) > make -> Produces errors: > adding: gnu/gdk/GdkFillRule.class(in = 1359) (out= 737)(deflated 45%) > gcc -c -g -O2 -fPIC -Iother gnu/jni/gnu_pango_PangoColor.c -o > gnu/jni/gnu_pango_PangoColor.o -I /usr/include -I /usr/include/ > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include > -I/usr/include/atk-1.0 > -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include \ > -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 > -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 > -I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0 > -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include > -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 > -I/usr/include/pango-1.0 -I/usr/include/freetype2 > -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include > -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gconf/2 > -I/usr/include/orbit-2.0 -I/usr/include/linc-1.0 > -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 > -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include > -I/usr/include/atk-1.0 > -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGNOME > In file included from gnu/jni/gnu_pango_PangoColor.c:22: > gnu/jni/gnu_pango_PangoColor.h:38: syntax error before `jint' > gnu/jni/gnu_pango_PangoColor.h:39: warning: data definition > has no type > or storage class > gnu/jni/gnu_pango_PangoColor.h:48: syntax error before `jint' > gnu/jni/gnu_pango_PangoColor.h:49: warning: data definition > has no type > or storage class > gnu/jni/gnu_pango_PangoColor.h:58: syntax error before `jint' > gnu/jni/gnu_pango_PangoColor.h:59: warning: data definition > has no type > or storage class > gnu/jni/gnu_pango_PangoColor.h:68: syntax error before `jobject' > gnu/jni/gnu_pango_PangoColor.h:69: warning: data definition > has no type > or storage class > gnu/jni/gnu_pango_PangoColor.h:76: syntax error before `jobject' > gnu/jni/gnu_pango_PangoColor.h:77: warning: data definition > has no type > or storage class > gnu/jni/gnu_pango_PangoColor.h:84: syntax error before `void' > gnu/jni/gnu_pango_PangoColor.h:85: warning: data definition > has no type > or storage class > gnu/jni/gnu_pango_PangoColor.h:92: syntax error before `jboolean' > gnu/jni/gnu_pango_PangoColor.h:93: warning: data definition > has no type > or storage class > gnu/jni/gnu_pango_PangoColor.c:33: syntax error before `jint' > gnu/jni/gnu_pango_PangoColor.c:53: syntax error before `jint' > gnu/jni/gnu_pango_PangoColor.c:73: syntax error before `jint' > gnu/jni/gnu_pango_PangoColor.c:93: syntax error before `jobject' > gnu/jni/gnu_pango_PangoColor.c: In function > `Java_gnu_pango_PangoColor_getType': > gnu/jni/gnu_pango_PangoColor.c:103: warning: comparison > between pointer > and integer > gnu/jni/gnu_pango_PangoColor.c:103: warning: return makes integer from > pointer without a cast > gnu/jni/gnu_pango_PangoColor.c:104: warning: return makes integer from > pointer without a cast > gnu/jni/gnu_pango_PangoColor.c:105: warning: assignment makes pointer > from integer without a cast > gnu/jni/gnu_pango_PangoColor.c:108: warning: return makes integer from > pointer without a cast > gnu/jni/gnu_pango_PangoColor.c: At top level: > gnu/jni/gnu_pango_PangoColor.c:117: syntax error before `jobject' > gnu/jni/gnu_pango_PangoColor.c: In function > `Java_gnu_pango_PangoColor_copy': > gnu/jni/gnu_pango_PangoColor.c:129: warning: return makes integer from > pointer without a cast > gnu/jni/gnu_pango_PangoColor.c:130: warning: return makes integer from > pointer without a cast > gnu/jni/gnu_pango_PangoColor.c:134: warning: return makes integer from > pointer without a cast > gnu/jni/gnu_pango_PangoColor.c: At top level: > gnu/jni/gnu_pango_PangoColor.c:143: syntax error before `void' > gnu/jni/gnu_pango_PangoColor.c:157: syntax error before `jboolean' > make[2]: *** [gnu/jni/gnu_pango_PangoColor.o] Error 1 > make[2]: Leaving directory `/home/mark/java-gnomeCVS/java-gnome/src' > make[1]: *** [gtk] Error 2 > make[1]: Leaving directory `/home/mark/java-gnomeCVS/java-gnome/src' > make: *** [distro] Error 2 > > ============================================================== > ======================== > > Using java-gnome version 0.7.1 > > This is more confusing. I initially expected the problems were related > to gtk2/gnome2. Perhaps they're not. I have no idea what > callback_dispatcher is, so please let me know, if it might be useful > (for ensuring I have the packages installed). > > adding: gnu/gtk/GtkCalendar.class(in = 1034) (out= 584)(deflated 43%) > gcc -c -g -O2 -fPIC -Iother other/callback_dispatcher.c -o > other/callback_dispatcher.o -I /usr/include -I /usr/include/ > -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include > -I/usr/X11R6/include \ > -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H > -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 > -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include > -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 > -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include > -I/usr/X11R6/include -DGNOME > other/callback_dispatcher.c:58: syntax error before `jobject' > other/callback_dispatcher.c: In function `Java_Gtk_Object_get': > other/callback_dispatcher.c:61: warning: return makes integer from > pointer without a cast > other/callback_dispatcher.c: At top level: > other/callback_dispatcher.c:69: syntax error before `void' > other/callback_dispatcher.c: In function `jobject_signal_cb': > other/callback_dispatcher.c:167: warning: assignment makes > pointer from > integer without a cast > other/callback_dispatcher.c:184: warning: assignment makes > pointer from > integer without a cast > other/callback_dispatcher.c:205: warning: assignment makes > pointer from > integer without a cast > other/callback_dispatcher.c:214: warning: assignment makes > integer from > pointer without a cast > other/callback_dispatcher.c: In function `jobject_arg_signature': > other/callback_dispatcher.c:341: warning: assignment discards > qualifiers > from pointer target type > other/callback_dispatcher.c: At top level: > other/callback_dispatcher.c:615: syntax error before `jint' > other/callback_dispatcher.c:627: syntax error before `jint' > other/callback_dispatcher.c:640: syntax error before `jint' > other/callback_dispatcher.c:653: syntax error before `jint' > other/callback_dispatcher.c:666: syntax error before `jint' > other/callback_dispatcher.c:678: syntax error before `jint' > other/callback_dispatcher.c:692: syntax error before `void' > other/callback_dispatcher.c:703: syntax error before `void' > other/callback_dispatcher.c:718: syntax error before `jint' > other/callback_dispatcher.c:730: syntax error before `jint' > other/callback_dispatcher.c:743: syntax error before `jint' > other/callback_dispatcher.c:756: syntax error before `jint' > other/callback_dispatcher.c:769: syntax error before `jint' > other/callback_dispatcher.c:781: syntax error before `jint' > other/callback_dispatcher.c:795: syntax error before `void' > other/callback_dispatcher.c:806: syntax error before `void' > make[2]: *** [other/callback_dispatcher.o] Error 1 > make[2]: Leaving directory `/home/mark/java-gnome-0.7.1/src' > make[1]: *** [gtk] Error 2 > make[1]: Leaving directory `/home/mark/java-gnome-0.7.1/src' > make: *** [distro] Error 2 > > > -- > > +----------------------------------------------+ > | Mark Howard mh...@ca... | > | http://www.tildemh.com mh...@ti... | > +----------------------------------------------+ > |