webp-imageio-core icon indicating copy to clipboard operation
webp-imageio-core copied to clipboard

Error while loading : Can't find dependent libraries

Open jobartim44 opened this issue 4 years ago • 9 comments

While trying to test the library under Windows I have the folowing error. The webp-imageio.dll is in the temporary directory but it seems that there are dependent libraries...

Can someone help me ?

déc. 11, 2020 7:20:51 PM org.scijava.nativelib.NativeLibraryUtil loadNativeLibrary
AVERTISSEMENT: Problem with library
java.lang.UnsatisfiedLinkError: C:\Users\pnv_vmo.ASP\AppData\Local\Temp\webp-imageio3809737815982273834.dll: Can't find dependent libraries
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
	at java.lang.Runtime.load0(Runtime.java:795)
	at java.lang.System.load(System.java:1062)
	at org.scijava.nativelib.NativeLibraryUtil.loadNativeLibrary(NativeLibraryUtil.java:291)
	at com.luciad.imageio.webp.WebP.loadNativeLibrary(WebP.java:29)
	at com.luciad.imageio.webp.WebP.<clinit>(WebP.java:34)
	at com.luciad.imageio.webp.WebPEncoderOptions.<clinit>(WebPEncoderOptions.java:20)
	at com.luciad.imageio.webp.WebPWriteParam.<init>(WebPWriteParam.java:30)
	at example.EncodeTest.main(EncodeTest.java:26)

jobartim44 avatar Dec 11 '20 18:12 jobartim44

image me too.

ColorfulGhost avatar Jan 26 '21 15:01 ColorfulGhost

image me too.

just windows not work

ColorfulGhost avatar Jan 29 '21 03:01 ColorfulGhost

me too

Renwq avatar Jul 14 '21 06:07 Renwq

me too

别用maven ,使用jar包导入试试

ColorfulGhost avatar Jul 14 '21 13:07 ColorfulGhost

i too

graycatdeveloper avatar Oct 03 '21 11:10 graycatdeveloper

Windows平台的dll, 作者使用了VS2017的DEBUG模式下编译的依赖VCRUNTIME140D.dll

Devifish avatar Nov 04 '21 01:11 Devifish

me too, but solve by use v0.1.0 而且提过类似的问题了:https://github.com/nintha/webp-imageio-core/issues/2

RavenLiao avatar Aug 16 '22 08:08 RavenLiao

me too

别用maven ,使用jar包导入试试

你的正常了吗

Aismy avatar Aug 21 '23 05:08 Aismy

I had the same issue on a Windows 10 System. I solved this by analyzing and installing the missing dll dependencies of the temporary "webp-imageio.dll". In my case the following dependencies have been missing. So I put these into "C:\Windows\System32" directory:

  • vcruntime140d.dll
  • ucrtbased.dll

Tool to analyze the DLL dependencies on Windows:

  • https://lucasg.github.io/Dependencies/ => start then the "DependenciesGui.exe" and drag and drop the dll file which you like to have analyzed

to get vcruntime140 you need to download Microsoft Visual C++ Redistributable Version https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022 or https://aka.ms/vs/17/release/vc_redist.x64.exe this should then automatically install the library on your windows system and no copy to system32 folder should be necessary Remark: I had to rename the "vcruntime140.dll" simple to "vcruntime140d.dll" don't ask me why. The "d" version is the debug version. However I assume the trick by renaming it may do it.

For the "ucrtbased.dll" you need to get the VS2022 Community installed. https://visualstudio.microsoft.com/downloads/ or Windows SDK download https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/ it get then for instance installed into C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\ucrt\ucrtbased.dll this then you can copy to your "System32" directory

image

egloffmark avatar May 23 '24 20:05 egloffmark