UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

Unity WebGL build not building at all 153 erros

Open yaakovyitzchak opened this issue 5 years ago • 7 comments

Hi, I tried building the latest release of GLTF importer (just dragged in the ZIP to the assets folder / imported package also), and it works fine in the editor (2019.2.a), but when I do webGL build I get about 153 errors all saying basically that "GLTFComponent"... or whatever is not recognized.

It works fine in windows standalone.

I heard somewhere that there are two binaries - one for UWP and one for all others, but I couldn't find the UWP one ? Is this some kind of bug?

yaakovyitzchak avatar May 30 '19 22:05 yaakovyitzchak

Did you clone the repository? If so, then check out README.md. You'll need to build /GLTFSerialization/GLTFSerialization.sln. Then open the Unity project at /UnityGLTF and it should succeed.

AdamMitchell-ms avatar Jun 17 '19 20:06 AdamMitchell-ms

The problem is that some of the files don't have WebGL toggled on. After you toggle them the build succeeds, but it raises a new issue with some dll not being supported.

image

mkorpinen avatar Jun 25 '19 11:06 mkorpinen

I have this error too when i use Unity Package do you found the solution ?

Lakuman avatar Jul 18 '19 06:07 Lakuman

I am also seeing the "To use dlopen, you need to use Emscripten's linking support, see https://github.com/kripken/emscripten/wiki/Linking" error in WebGL. (I can't get past it. WebGl is dead in the water with it).

What's the current status on this? Are there any known workarounds?

jmo7 avatar Sep 09 '19 18:09 jmo7

Does anybody have any further insights on this? Although my c# and unity skills are only a bit above basic I'm willing to work on this if anybody has any further info that could help me get started.

jmo7 avatar Sep 16 '19 15:09 jmo7

@jmo7 - did you get this working?

I've worked with Unity C# and WebGL pretty much full time for several years now, can maybe help.

antont avatar Feb 03 '20 18:02 antont

To solve the dlopen / emscripten / linking error in the WebGL Build, try @kolodi's pull request #367. That solved it for me.

schaubli avatar Aug 06 '20 15:08 schaubli

Please update to the latest version and open a new issue if the problem persists. Thanks!

pfcDorn avatar Feb 09 '24 09:02 pfcDorn