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

Compiling with javascript (emscripten/clang) fails #282

Open
Beliar83 opened this issue Jan 31, 2022 · 1 comment
Open

Compiling with javascript (emscripten/clang) fails #282

Beliar83 opened this issue Jan 31, 2022 · 1 comment
Labels
bug Something isn't working topic:build

Comments

@Beliar83
Copy link
Contributor

When I try to compile with "platform=javascript", which uses emscripten, the compilations fails with multiple errors.

The complete log can be found here, but the main problems are errors similar to the one at Line 417:

/home/karsten/git/godex/modules/bullet_physics/systems_base.cpp:22:12: error: type 'QueryResultTuple<EntityID, Any<Changed<BtRigidBody>, Changed<const BtSpaceMarker> > >' decomposes into 2 elements, but 3 names were provided for (auto [entity, body, space_marker] : p_query) {

@AndreaCatania AndreaCatania added bug Something isn't working topic:build labels May 3, 2022
@Beliar83
Copy link
Contributor Author

Beliar83 commented May 6, 2022

It seems to work with the "-frelaxed-template-template-args" flag (https://clang.llvm.org/cxx_status.html#p0522)

But I have found out, that Godot 4 may not have HTML5 enabled for the time being. For now it compiles with that flag and does not crash. So just have to find what is the best place to set the flag.

I added env.Append(CXXFLAGS=["-frelaxed-template-template-args"]) to the main SConstruct of Godot, but not sure if that is the best place. At least it should only be added for clang builds, of course.

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

No branches or pull requests

2 participants