#new to bevy: problem how to build
8 messages · Page 1 of 1 (latest)
Well what exactly have you built so far that resulted in this error?
did you compile with the dynamic_linking feature and not send the dylib?
well:```
[package]
name = "gametest"
version = "0.1.0"
edition = "2021"
[workspace]
resolver = "2"
[dependencies]
avian3d = "0.1.1"
bevy = { version = "0.14.1", features = ["dynamic_linking"] }
leafwing-input-manager = "0.15.0"
strum = "0.26.3"
strum_macros = "0.26.4"
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3
and with : cargo build --release
I also tried cargo build
do I have to remove this? features = ["dynamic_linking"]
remove that to make it build all the code into the executable
is it different from ?: cargo run --features bevy/dynamic_linking
yes, because adding it to the features list in Cargo.toml makes that feature always enabled, whereas the build flag allows you to choose each time