|
From: Noel O'B. <bao...@gm...> - 2006-12-19 16:58:30
|
I didn't get any answer on the SWIG mailing list regarding this...but I didn't really know how to phrase the question. Googling doesn't help much but I did find the following links which might yield some information: http://forum.java.sun.com/thread.jspa?threadID=786600 http://forum.java.sun.com/thread.jspa?threadID=521235&messageID=2492274 http://java.sun.com/docs/books/jni/download/jni.pdf Noel On 18/12/06, Geoffrey Hutchison <ge...@ge...> wrote: > > On Dec 17, 2006, at 7:33 PM, richard apodaca wrote: > > > But now I get a new series of errors when this code is > > run: > ... > > /usr/local/lib/openbabel/cifformat.so did not load > > properly > > This sounds like the problems we had with the Python and Perl > wrappers, e.g.: > if sys.platform.find(\"linux\") != -1: > import dl > sys.setdlopenflags(sys.getdlopenflags() | dl.RTLD_GLOBAL) > > I'm not sure what the appropriate fix would be for Java. Basically, > Open Babel loads its file format shared libraries separately from the > library. Probably the best solution would be to write to the SWIG > list and find out if there's a global solution. (Strange that it's > not an issue with Ruby, evidently.) > > As I've learned, adding new languages with SWIG is always an > adventure. :-) > > Thanks guys! > -Geoff > |