On Mon, 2005-08-15 at 19:00 -0700, John M. Gabriele wrote:
[john@localhost ~/dev/java/JOGL_Example]$ ./MyTest
Exception in thread "main" java.lang.LinkageError: unexpected exception during
linking: net.java.games.jogl.GLCapabilities
Rebuild your code with -findirect-dispatch and it will work. I guess we
always need to use -findirect-dispatch, perhaps because we're
implementing an interface that was built using that option.
[john@localhost ~/dev/java/JOGL_Example]$ echo $LD_LIBRARY_PATH
/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/i386
and running it actually brings up a window and draws something
which is red and flickers a bit, but doesn't look like a triangle.
It's a triangle, although the flickering is really making it
unrecognizable. If your test code used double buffering then all would
be good.
I don't know why the triangle is constantly being rerendered. Perhaps
this is normal behaviour.
Here's the nasty-looking messages that come up in my terminal
window:
[john@localhost ~/dev/java/JOGL_Example]$ gij -cp /usr/share/java/jogl.jar Test
Init GL is net.java.games.jogl.impl.x11.X11GLImpl
(.:3155): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in
cast to `GtkWidget'
(.:3155): GLib-GObject-WARNING **: invalid unclassed pointer in cast to
`GtkObject'
(.:3155): Gtk-CRITICAL **: gtk_widget_get_display: assertion `GTK_IS_WIDGET
(widget)' failed
Aborted
I don't get any of these messages. Is your FC4 system up to date?
AG