This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: gcj swt (motif) -- ADDENDUM


I've got it to work with two different strategies:
(1) libswt-gtk-XXXX.so and libswt-gtk-pi-YYYY.so compiled separately.
(2) libswt-gtk-XXXX.a and libswt-gtk-pi-YYYY.a statically integrated into
the executable.

Even with strategy (1) you may have to disable the loadLibrary() calls.
There are two possibilities:

(1a) You link the .so files directly with the option
"-lswt-gtk-XXXX.so -lswt-gtk-pi-YYYY.so" --> you must disable the calls.

(1b) You link dynamically (not using the options in (1a)), causing libjava's
ltdl support to load the library at runtime --> you must leave the calls
enabled. I haven't tried this option. I don't know if LD_LIBRARY_PATH will
be the location set in which ltdl will try to find the libraries to load
dynamically. I believe it is related to java.library.path, which may be
governed by other environment variables. It probably works in a similar
fashion as the jdk.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]