OpendJDK Darwin Binaries Unable to convolve src image
Michael Franz
mvfranz at gmail.com
Sun Oct 12 17:10:44 PDT 2008
Is it possible to use JNI_LIB_SUFFIX as it is defined jvm*.h? Or use the
System.loadLibrary?
Michael
On Sun, Oct 12, 2008 at 7:37 PM, Chris Campbell <
Christopher.Campbell at sun.com> wrote:
> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20081012/702a6ddc/attachment.html
More information about the bsd-port-dev
mailing list