UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

WebGL build Libc dll error

Open handrianj opened this issue 4 years ago • 7 comments

Has anyone managed to make a webgl build working ?

I'm on unity 2021.1.24fc1 and whenever I do a WebGL build with the test scenes I end up with the following error:

"Unable to open DLL libc! Dynamic linking is not supported in WebAssembly builds due to limitations to performance and code size. Please statically link in the needed libraries."

Can anyone point me at the steps to solve this error please ?

handrianj avatar Oct 25 '21 02:10 handrianj

Seems to be quite a lot of issues with WebGL: https://github.com/KhronosGroup/UnityGLTF/issues?q=is%3Aissue+is%3Aopen+webgl

Unless the export feature is important for your project, I suggest that you use gltFast instead. It works well on WebGL and the developer is actively improving it: https://github.com/atteneder/glTFast

Export is still under development.

Kibsgaard avatar Oct 26 '21 09:10 Kibsgaard

Em technically I don't need the export... I'm just trying to display GLTF/GLB files in a simple window... We've tried GLTFast but there is a problem with the management of transparency in their shaders

handrianj avatar Oct 27 '21 00:10 handrianj

Would be great if you give the dev branch / this PR a try for better WebGL support:

  • https://github.com/KhronosGroup/UnityGLTF/pull/644

hybridherbst avatar Apr 08 '22 11:04 hybridherbst

Excuse me, how to solve this problem?

CaizhongQiang avatar Jul 13 '22 05:07 CaizhongQiang

Please try the dev branch! WebGL works fine as far as I'm aware (both import and export).

hybridherbst avatar Jul 13 '22 05:07 hybridherbst

How to operate?

CaizhongQiang avatar Jul 13 '22 09:07 CaizhongQiang

Would be great if you give the dev branch / this PR a try for better WebGL support:

* [Culmination of two years of fixes, especially for export #644](https://github.com/KhronosGroup/UnityGLTF/pull/644)

Sorry, I totally forgot about testing that, I'll have a look and let you know!

handrianj avatar Jul 15 '22 01:07 handrianj