question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build issues in 2021.2.0b9

See original GitHub issue

So, I was trying to build the project in beta 9 for WebGL, getting this error:

emcc2: error: Packages/com.atteneder.draco/Runtime/Plugins/WebGL/libdracodec_unity.a: No such file or directory ("Packages/com.atteneder.draco/Runtime/Plugins/WebGL/libdracodec_unity.a" was expected to be an input file, based on the commandline arguments provided)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun () (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:179)

First happened in my main project, then also tried after freshly importing gltFast and Draco into a new project in a simple test project.

(First tried 4.0.0-preview.1 then 4.0.0-preview.3 both with the same error)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
attenedercommented, Sep 10, 2021

I just tested and successfully built with DracoUnity 4.0.0-preview.3 and Unity 2021.2.0b11. You have to use version 4 or later for 2021.2 or later!

If you installed via GIT URL or cloned the DracoUnity repository and added the package locally, please make sure you followed the GIT LFS install instructions.

DracoUnity/Runtime/Plugins/WebGL/libdracodec_unity.a has to have ~6.7MB, otherwise it won’t work.

Feel free to re-open if the issue persists

1reaction
Bersaelorcommented, Sep 2, 2021

@TeryBuster that error seems to be specific to your mesh, the issue in this thread is more about that in 2021.2.0b9 a project with Draco doesn’t build at all, so I don’t even get to try anything (due to changes in the Unity 2021 beta build). In 2021.1.17f1 and before the package itself seemed to build and my simple test meshes also worked.

In a different scenario I had, it helped @atteneder to have the actual test mesh that causes the error, so he can debug it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unity 2021.2.0b9
Known Issues in 2021.2.0b9. Asset Importers: Editor crashes on UnityEditor.Unsupported:IsDestroyScriptableObject when applying changes to a ...
Read more >
Error when build with Unity 2021.2.0b12.3482
I build this project (it's upgraded from 2021.2.0b9) it gets errors. I also tried build it with 2021.2.0b9 and it gets the same...
Read more >
Missing IL2CPP methods errors are thrown on every new ...
2021.2. 2021.2.0b9. 2022.1. Issue ID ... Using IL2CPP stripping engine with medium stripping builds project successfully with no errors but ...
Read more >
Android build fails when using ArmV7 Target Architecture
2021.2. 2021.2.0b9. Issue ID ... Actual result: Build fails with ARMv7 Target Architecture. Reproducible with: 2021.2.0b8, 2021.2.0b11
Read more >
4. Release Notes - Crest Ocean System
Fix 2021.2.0b9 shader compile errors. HDRP. Fix ocean material properties missing for 2021.2 material inspector. HDRP. Fix outline around refracted objects ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found