OpendJDK Darwin Binaries Unable to convolve src image
Chris Campbell
Christopher.Campbell at Sun.COM
Sun Oct 12 16:37:17 PDT 2008
The problem is in:
jdk/src/solaris/native/sun/awt/awt_Mlib.c
There's some code in there that dlopen's libmlib_image and assumes
a .so suffix; this will need to be updated to account for the .dylib
suffix on Mac OS X. A minimal fix would look like:
#if defined(__APPLE__)
handle = dlopen("libmlib_image.dylib", RTLD_LAZY);
#else
handle = dlopen("libmlib_image.so", RTLD_LAZY);
#endif
Thanks,
Chris
On Oct 12, 2008, at 3:44 PM, Michael Franz wrote:
> Hi,
>
> I create a test program from here: http://java.sun.com/developer/JDCTechTips/2004/tt0210.html
> and get the following stacktrace.
>
> Exception in thread "main" java.awt.image.ImagingOpException: Unable
> to convolve src image
> at java.awt.image.ConvolveOp.filter(ConvolveOp.java:197)
> at
> test.BrightnessChanger.setBrightnessFactor(BrightnessChanger.java:54)
> at
> test.BrightnessChanger.createBufferedImages(BrightnessChanger.java:37)
> at test.BrightnessChanger.<init>(BrightnessChanger.java:24)
> at test.BrightnessChanger.main(BrightnessChanger.java:70)
> error in dlopen: dlopen(libmlib_image.so, 1): image not found
>
> I am not sure why the error message states that the library ends
> in .so when there is the library with .dylib extension.
>
> Michael
>
More information about the bsd-port-dev
mailing list