From f2214c2e6b9bd405973b379739dd48fd0bc8ade5 Mon Sep 17 00:00:00 2001 From: DRC Date: Sat, 5 Feb 2011 05:51:46 +0000 Subject: [PATCH] git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@345 632fc199-4ca6-4c93-a231-07263d6284db --- java/README | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/java/README b/java/README index 5558f12b..8b6f5bcd 100644 --- a/java/README +++ b/java/README @@ -37,3 +37,16 @@ need to pass an argument of -Djava.library.path=/opt/libjpeg-turbo/lib to java. If using a 64-bit data model, then instead pass an argument of -Djava.library.path=/opt/libjpeg-turbo/lib/amd64 to use the 64-bit version of libturbojpeg.so. + + +Note for MinGW users +-------------------- + +When libjpeg-turbo is built with MinGW, the TurboJPEG/OSS dynamic library is +named libturbojpeg.dll instead of turbojpeg.dll. This is in keeping with the +convention of MinGW, and it also avoids a filename conflict when the GCC and +Visual C++ versions of the libjpeg-turbo SDK are installed on the same system. +However, the TurboJPEG/OSS JNI wrapper will not work on Windows unless the DLL +is named turbojpeg.dll. You can work around this by renaming the DLL or by +simply changing the LoadLibrary() calls in turbojpeg.java so that they load +"libturbojpeg" instead of "turbojpeg".