atteneder / DracoUnity

Draco 3D Data Compression Unity Package
Apache License 2.0
245 stars 38 forks source link

Failed to load 'dracoenc_unity.dll' because one or more of its dependencies could not be loaded #65

Closed hcshen closed 7 months ago

hcshen commented 1 year ago

This error is always reported on the win11 computer, but I do not know what library is relied on here

John-Storm commented 1 year ago

I had the same issue with Windows 11. The issue was resolved by installing Microsoft Visual C++ Redistributable packages for Visual Studio 2015, 2017, 2019, and 2022: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022

amakhno commented 1 year ago

It looks like the encoding plugins, .dll at least, haven't been updated along with the unity scripts

You can use the most recent binaries that have lacking functions and different signatures

Sov3rain commented 11 months ago

Hey, I have the same issue on Windows 10 latest, clean install. Built the app using Mono and IL2CPP, still missing a .dll. I need to distribute my app as a standalone, not asking users to install redistributable packages for VS, did you guys found a way to include the missing DLL in the build?

atteneder commented 10 months ago

The next DracoUnity version will have one DLL file only, so the encoding dll problem should be gone.

atteneder commented 10 months ago

If someone can confirm (or falsify) that installing Microsoft Visual C++ Redistributable packages for Visual Studio 2015, 2017, 2019, and 2022 solves the problem, I'd put that in the docs. Thanks

Sov3rain commented 10 months ago

I can confirm that installing the redistributable package linked above by @John-Storm fixes the issue.

atteneder commented 7 months ago

Please transition to Draco for Unity, the successor of this repository/package.

The original pitfall is now documented here:

https://docs.unity3d.com/Packages/com.unity.cloud.draco@5.0/manual/troubleshooting.html#native-library-on-windows

Thanks for bringing it to our attention!