unity.webp icon indicating copy to clipboard operation
unity.webp copied to clipboard

DLLNotFoundException on PC build

Open MisterFOnGitHub opened this issue 4 years ago • 2 comments

I created a PC Win64 project with Unity that includes your WebP encoder. The EXE runs fine on my development machine. However, I copied the build on another PC that doesn't have anything but Windows 10 installed for testing, and I get a DLLNotFoundException on libwebp.dll. Is there any specific dependency for this DLL ?

MisterFOnGitHub avatar Nov 16 '21 17:11 MisterFOnGitHub

Thank you for reporting that. I also reproduce that bug using Hyper-V( host: Windows10 - x64 ) and figured out using lucasg/Dependencies

The problem of that is missing depenency VCRUNTIME140.dll as you expected.

-deps_x64

deps_x64

  • deps_x86

deps_x86

so to fix this problem

  • copy dll to plugin's directory
    • x64: copy C:\Windows\System32\vcruntime140.dll to build_dir\Plugins\x86_64\
    • x86: copy C:\Windows\SysWOW64\vcruntime140.dll to build_dir\Plugins\x86\
  • or guide to install Visual C++ Redistributable for Visual Studio 2015hosting machine

netpyoung avatar Nov 17 '21 15:11 netpyoung