-
Notifications
You must be signed in to change notification settings - Fork 134
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
Integration with bevy_ecs
- linker failure pthread_setcancelstate is not implemented
#276
Comments
The |
Maybe a start would be to disable the multithreading feature: https://github.com/bevyengine/bevy/blob/c4e479a2d4f2ca1d7ce2637e4da1a4bb5cbed133/crates/bevy_ecs/Cargo.toml#L14 |
Huh, I guess I might have found how wasm32 works: https://github.com/bevyengine/bevy/blob/c4e479a2d4f2ca1d7ce2637e4da1a4bb5cbed133/crates/bevy_ecs/src/query/par_iter.rs#L112-L125. On wasm32 it defaults to single thread operation, maybe they would accept a PR which adds |
Thanks yeah looks like it should also go for that operation when [dependencies]
bevy_ecs = { version = "0.12.1", default-features = false, features = [] }
bevy_tasks = { version = "0.12.1", default-features = false, features = [] } |
Ok it looks like this is a duplicate of esp-idf-template/178
^^ I can confirm this was the solution for my issue too. |
I'm looking to use bevy_ecs with
esp-idf
but am getting linker errors when I add thebevy_ecs
dependency. I'm using theesp-idf-template
and have tried with both Windows and the dev container.The errors are all along the lines of
pthread_attr_init is not implemented and will always fail
bevy_ecs
is the lightweight ecs architecture that drives the bevy engine, I thought it might 'just work' with esp-idf because it officially supports wasm which is also a restricted environment.my setup
main.rs
error
The text was updated successfully, but these errors were encountered: