[feature or bug] cargo build failed by dynamic link #5354
Replies: 3 comments 11 replies
-
Converting to a discussion since it is known that the dynamic feature normally works on Linux distros... EDIT: let's wait , just saw @alice-i-cecile labeling 😄 |
Beta Was this translation helpful? Give feedback.
-
Technically, you can, but you'll also have to ship the Bevy dynamic library and the std dynamic library, negating the benefits of shared libraries. Also, you can't even share the same Bevy library for many released games since Rust does not guarantee ABI stability across compiler versions/snapshots. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem with you. But in my Cargo.toml file look like this |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bevy version
version = "0.7.0", features = ["dynamic"]
Operating system
ubuntu 20.04
What problem does this solve or what need does it fill?
Hello ,thanks for the bevy first.
The question is: After I cargo build, I got a libbevy_dylib.so and a execute file. but the execute file need a libbbevy_dylib-xxxxx.so.
I also have a libbbevy_dylib-xxxxx.so in "target/debug/deps" but it also can not be used for the execute file.
So Is there dynamic feature still a temporary function just for faster project compile but can not be used in release?
There is a similar issue #2051 report on 30 Apr 2021. After a year, it still looks like we haven't updated the feature on stable?
If it wasn't for my operational error, maybe we should have written it clearly in the documentation or bevy book.
Maybe it's already in your plans, Anyway, I think this is a feature worth adding.
Beta Was this translation helpful? Give feedback.
All reactions