Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#70 closed defect (fixed)

Make JaCaVi executable on Ubuntu

Reported by: Florian Roth Owned by: Florian Roth
Priority: critical Milestone: MS1: First release (1.0.0)
Component: project Version: pre-1.0
Keywords: hal, ubuntu, linux Cc:

Description

Its necessary that JaCaVi is running on Ubuntu to support the Lib42Connector.

Maybe its necessary to add an extra run configuration during development for the Ubuntu OS

Currently it is not. I'll post the bugs later because now I'm on Windows.

Change History (10)

comment:1 Changed 16 years ago by SVN

New commit by froth (revision [212]):
[Related to ticket #70] added an launch configuration for Ubuntu

Now I'am on the following problem

18:35:42,425 WARN TrackWidget:321 - No library for native graphics acceleration has been found! Drawing will be very slow. Please check your java.library.path!

I think a have to set the LD_LIBRARY_PATH

comment:2 Changed 16 years ago by Florian Roth

Milestone: MS1: First usable version
Owner: changed from nobody to Florian Roth
Status: newaccepted

comment:3 Changed 16 years ago by SVN

New commit by froth (revision [213]):
[Related to ticket #70] added LD_LIBRARY_PATH

the problem of graphics acceleration still exists

comment:4 Changed 16 years ago by Henrik Heimbuerger

It isn't necessarily a bug. The J2D4SWT library that is used and that offers these native acceleration libraries only comes with libs for the GTK+ and Motif widget toolkits. If you're using another toolkit, it may well be possible that no native acceleration is available (which shouldn't affect functionality, just the rendering is slower).

The Wikipedia seems to indicate that Gnome uses GTK+ while KDE builds on Qt. I'm no expert on Linux desktop environments however, so take all this with a grain of salt.

comment:5 Changed 16 years ago by Florian Roth

I tried:
System.loadLibrary("j2d-gtk-linux-i386-2.0.0");

and console sais:

java.lang.UnsatisfiedLinkError?: /home/flosk8/workspaces/wsJ2D2SWTTest/Test/libj2d-gtk-linux-i386-2.0.0.so: /home/flosk8/workspaces/wsJ2D2SWTTest/Test/libj2d-gtk-linux-i386-2.0.0.so: undefined symbol: gdk_draw_rgb_32_image

But gdk_draw_rgb_32_image is available in /usr/include/gtk-2.0/gdk/gdkrgb.h

Dont know. Spend 6 hours still doesnt work. :-(

comment:6 Changed 16 years ago by Henrik Heimbuerger

I think we were on the wrong path with looking for a missing package. This is probably related to the ABI. I think you should try rebuilding the libj2d-gtk-linux-i386-2.0.0.so itself. The sources are on the J2D4SWT site.

comment:7 Changed 16 years ago by Henrik Heimbuerger

The sample application from J2D4SWT runs on my Linux VM and also seems to load the native acceleration library. It's immediately unresponsive however.

cort@VMware-Ubuntu:~/j2d4swt$ ./run.sh
[J2D] Using property file...
[J2D] --> org.holongate.j2d.gtk.GtkGraphics2DFactory
[J2D] Trying to load
[J2D] --> j2d-gtk-linux-i386-2.0.0
[J2D] Native library j2d-gtk-linux-i386-2.0.0 loaded.
[J2D] Java2D for SWT will use the factory
[J2D] --> org.holongate.j2d.gtk.GtkGraphics2DFactory

The same happens when I tried to run it with my own build of the GTK acceleration library.

I'm not sure whether this is good or bad, and why it freezes up...

comment:8 Changed 16 years ago by SVN

New commit by froth (revision [226]):
[Related to ticket #70] Haleluja the new libj2d-gtk-linux-i386-2.0.0.so works props to Henrik

The compile/ linker command line was
gcc -shared -o libj2d-gtk-linux-i386-2.0.0.so GtkGraphics2DFactory.c pkg-config --cflags gtk+-2.0 pkg-config --libs gtk+-2.0 -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux

comment:9 Changed 16 years ago by Florian Roth

Resolution: fixed
Status: acceptedclosed

comment:10 Changed 16 years ago by Henrik Heimbuerger

Some more links that might help in the future:

Note: See TracTickets for help on using tickets.