On Nov 15, 2007, at 3:43 AM, Andrew Ross wrote: > On Tue, Nov 13, 2007 at 09:43:33PM -0500, Hazen Babcock wrote: >> >> Hello, >> >> On OS-X the java tests are failing because java is having trouble >> finding plplot.core.config.libname. This is because it is looking >> for: >> /usr/local/lib/jni/plplotjavac_wrap.dylib >> >> but the library is actually called: >> /usr/local/lib/jni/plplotjavac_wrap.so >> >> I'm not sure which is right, though on OS-X libraries usually have >> a .dylib extension. Simply renaming the library file solves the >> problem and PLplot passes the java tests. >> >> -Hazen > > I'm slightly confused about this. Plplot uses the swig_add_module > macro > from UseSWIG to build the wrapper library. Internally this uses > add_library to set up the library. This should deal with all the > system > specific aspects. It's what we use for the rest of the plplot library. > I assume you correctly get the .dynlib prefix for the rest of plplot?
libplplotd gets the .dylib extension. Python does not, nor do any of the drivers (all .so) but only Java complains. It appears that somewhere between 5.7.0 and 5.7.1 something was changed so that java would only use plplotjavac_wrap.dylib. In 5.7.0 java was happy enough to use plplotjavac_wrap.so. > As a fix, I've added code to explicitly set the suffix for the java > wrapper library. Hazen, can you test this? The extension is .dylib, but with that change, which I just committed, it works now. -Hazen ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel