Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Unity 2023.2+/Emscripten 3.1.38+ #68

Closed
juj opened this issue Aug 7, 2023 · 2 comments
Closed

Support for Unity 2023.2+/Emscripten 3.1.38+ #68

juj opened this issue Aug 7, 2023 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@juj
Copy link

juj commented Aug 7, 2023

Unity 2023.2 updates from Emscripten 3.1.8-unity to Emscripten 3.1.38-unity. One change between these upstream Emscripten versions is that the libstdcxx version bundled in Emscripten has been updated.

I tried building a test case, which I presume is the very one commented in #55 (comment) , with latest Unity 2023.2, but it looks like the libstdcxx change brings in ABI breakages, then yielding new build errors

wasm-ld: error: DracoUnity/Runtime/Plugins/WebGL/libdracodec_unity.a(metadata.cc.o): undefined symbol: std::__2::__vector_base_common<true>::__throw_out_of_range() const
wasm-ld: error: DracoUnity/Runtime/Plugins/WebGL/libdracodec_unity.a(metadata.cc.o): undefined symbol: std::__2::__vector_base_common<true>::__throw_length_error() const

So it seems like a new DracoUnity version for 2023.2+ is needed.

I wonder if it would be possible to create a deployment where all google/draco code would be compiled directly as native C/C++ code inside Unity? Or I wonder if the draco build system needs are more complex that building as part of Unity's plugin build will not be feasible?

@atteneder
Copy link
Owner

fyi: There's a solution in the works. DracoUnity 5.x will put WebAssembly binaries in sub-packages that will match your Editor version. No promises, but ETA is 1-2 months.

@atteneder atteneder added the bug Something isn't working label Oct 26, 2023
@atteneder atteneder added this to the 5.0.0 milestone Nov 8, 2023
@atteneder
Copy link
Owner

This is now supported by Draco for Unity, the successor of this repository/package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants