#new to bevy: problem how to build

8 messages · Page 1 of 1 (latest)

whole bison
#

Hi I just started learning bevy after using unity for years and I don't know how make a build to send to my friend for testing, I couldn't find anything online to solve my problems. help this little noob xd.

indigo lion
#

Well what exactly have you built so far that resulted in this error?

naive nebula
#

did you compile with the dynamic_linking feature and not send the dylib?

whole bison
#

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"]

naive nebula
#

remove that to make it build all the code into the executable

whole bison
#

is it different from ?: cargo run --features bevy/dynamic_linking

naive nebula
#

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