OpenSlide Java "Cant find dependent libraries"
Blattner, Timothy J.
timothy.blattner at nist.gov
Fri May 30 11:49:21 EDT 2014
Some of the dlls in the dependency walker output seem to be win7 oriented (minus liblzma-5.dll ... I think)
I found this post on stackoverflow related to most of the missing dlls: http://stackoverflow.com/questions/17023419/win-7-64-bit-dll-problems
One solution proposed in the post is to get the Windows SDK and .NET Framework 4: http://www.microsoft.com/en-us/download/details.aspx?id=8279
I hope this helps.
When running the build.sh script does the script execute some test cases to ensure all required libraries are found?
Regards,
Tim
-----Original Message-----
From: Kim, Timothy H.
Sent: Friday, May 30, 2014 10:16 AM
To: openslide-users at lists.andrew.cmu.edu
Cc: Blattner, Timothy J.
Subject: RE: OpenSlide Java "Cant find dependent libraries"
Thanks for quick response.
The search path was indeed the "bin" subdirectory sorry about the misinformation. Nothing occurred when I double-clicked the openslide.jar so I opened openslide-jni.dll in the Dependency Walker and got 9 errors stating that the system could not find the file specified.
I have attached the Dependency Walker Image file if you want to take a look.
Regards,
Timothy Kim
-----Original Message-----
From: Benjamin Gilbert [mailto:bgilbert at cs.cmu.edu]
Sent: Friday, May 30, 2014 1:36 AM
To: openslide-users at lists.andrew.cmu.edu
Cc: Kim, Timothy H.; Blattner, Timothy J.
Subject: Re: OpenSlide Java "Cant find dependent libraries"
On 05/29/2014 04:24 PM, Kim, Timothy H. wrote:
> $ ./build.sh setup /cygdrive/c/Users/thk/Desktop/setup-x86_64.exe
> $ ./build.sh -m64 bdist
>
> This created a .zip file, which contains the native libraries. I wrote
> a simple Java program that created an OpenSlide object referencing an
> image. However, when the object is initialized, it tries to access the
> native library "openslide-jni.dll" and gives the error message "Can't
> find dependent libraries." The .dll is searching in the same location
> as where we unzipped the file created from the build.sh script.
The search path should be the "bin" subdirectory, not the top-level directory.
> Are there any additional libraries that I need to reference other than
> the ones that were built from the build.sh script?
Everything should have been built by build.sh. If you double-click openslide.jar in the unzipped bin directory, that will launch a demo slide viewer app. If you can open a slide file with the demo viewer, the problem is likely your search path.
If the demo viewer doesn't work, you can try opening openslide-jni.dll in Dependency Walker to find the missing dependency. Please let us know what you discover.
--Benjamin Gilbert
More information about the openslide-users
mailing list