[Java-gnome-developer] troubles compiling gnome-java
Brought to you by:
afcowie
|
From: Bastien N. <br...@fr...> - 2001-08-08 10:57:38
|
Hi,
I just wanted to try out Gnome-Java. After a bit of hacking to get the
Makefiles to point to the right javac (they're insisting that my javac
binary be in /usr/bin/javac or something like that), I hit the wall when
it gets to compiling src/other/callback_dispatcher.c
gcc -c -g -O2 -fPIC -Iother other/callback_dispatcher.c -o
other/callback_dispatcher.o -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include
-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/include/gnome-xml -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/local/jdk-1.3//include -DGNOME
other/callback_dispatcher.c:57: syntax error before `jobject'
other/callback_dispatcher.c: In function `Java_Gtk_Object_get':
other/callback_dispatcher.c:60: warning: return makes integer from
pointer without a cast
other/callback_dispatcher.c: At top level:
other/callback_dispatcher.c:68: syntax error before `void'
other/callback_dispatcher.c: In function `jobject_signal_cb':
other/callback_dispatcher.c:149: warning: assignment makes integer from
pointer without a cast
other/callback_dispatcher.c:171: warning: assignment makes pointer from
integer without a cast
other/callback_dispatcher.c:174: warning: assignment makes integer from
pointer without a cast
other/callback_dispatcher.c:180: warning: assignment makes integer from
pointer without a cast
other/callback_dispatcher.c: In function `jobject_arg_signature':
other/callback_dispatcher.c:292: warning: assignment discards qualifiers
from pointer target type
other/callback_dispatcher.c: At top level:
other/callback_dispatcher.c:544: syntax error before `jint'
other/callback_dispatcher.c:556: syntax error before `jint'
other/callback_dispatcher.c:569: syntax error before `jint'
other/callback_dispatcher.c:582: syntax error before `jint'
other/callback_dispatcher.c:595: syntax error before `jint'
other/callback_dispatcher.c:607: syntax error before `jint'
other/callback_dispatcher.c:621: syntax error before `void'
other/callback_dispatcher.c:632: syntax error before `void'
other/callback_dispatcher.c:647: syntax error before `jint'
other/callback_dispatcher.c:659: syntax error before `jint'
other/callback_dispatcher.c:672: syntax error before `jint'
other/callback_dispatcher.c:685: syntax error before `jint'
other/callback_dispatcher.c:698: syntax error before `jint'
other/callback_dispatcher.c:710: syntax error before `jint'
other/callback_dispatcher.c:724: syntax error before `void'
other/callback_dispatcher.c:735: syntax error before `void'
make[1]: *** [other/callback_dispatcher.o] Error 1
make[1]: Leaving directory `/home/brn/src/java-gnome-0.6.0/src'
make: *** [gtk] Error 2
The piece of code if first chokes on is (at line 57):
JNIEXPORT jobject JNICALL
Java_Gtk_Object_get(JNIEnv *env, jobject obj, jstring str)
{
return NULL;
}
I'm using Sun's JDK Version 1.3.0 FCS for Linux, on a Debian/x86
unstable system.
Any ideas ?
Cheers
|