cnr-isti-vclab / corto

Mesh compression library, designed for rendering and speed.
Other
196 stars 43 forks source link

Problems with the unity plugin #23

Open AnanyaIG opened 3 years ago

AnanyaIG commented 3 years ago

So while trying to run the unity project, I was getting a DLLNotFoundException by unity, so I tried to check the Load on startup option on the plugin menu, but that gave me this error Plugins: Failed to load 'Assets/Plugins/cortocodec_unity.dll' because one or more of its dependencies could not be loaded.

The line which was causing the DLLNotFoundException was this: IntPtr decoder = CreateDecoder(data.Length, data, decoderInfo);

Would you happen to know what's going on here?

lalalune commented 3 years ago

Hi, I know this is really old, but to any who come after -- you have to run the "make" command, move the build DLLs to your plugins folder and make sure you include both unity corto lib and regular one that were built. If you build on Mac, you get a .dylib and .a, build on Linux and you get a .so, and so on.