Comments (8)
Have you enabled optimizations for your dependencies as instructed by the fast compiles getting started?
from bevy.
Before your answer I did not, but I tried again with this Cargo.toml
[package]
name = "conway-bevy"
version = "0.1.0"
edition = "2021"
[profile.dev]
opt-level = 1
[dependencies]
bevy = { version = "0.13.2", features = ["dynamic_linking"] }
And it didn't work too
from bevy.
I tried compiling it with rust-lld and the same configuration as above, and got the same style of error message: = note: rust-lld: error: too many exported symbols (got 157889, max 65535)
from bevy.
Pretty sure this is exactly the same thing I ran into when I tried using the dynamic_linking feature years ago, and came to the conclusion that it just doesn't work on Windows.
from bevy.
but I tried again with this Cargo.toml
You're missing this part:
[profile.dev.package."*"]
opt-level = 3
Pretty sure this is exactly the same thing I ran into when I tried using the dynamic_linking feature years ago, and came to the conclusion that it just doesn't work on Windows.
Did you just enable the feature or did you also set the optimization level as explained by the guide I previously linked?
from bevy.
As someone who has run into this multiple times on Windows, I'm very sure @SkiFire13's last comment is the correct fix.
Maybe we should be more explicit in the docs that opt-level = 3
is not just an optimization, but actually necessary when using Windows + LLD + dynamic linking?
Changing the tags accordingly. Ping me if the suggested fix does not work @Quentindeve :)
from bevy.
Maybe we should be more explicit in the docs
It is already quite explicit
The big yellow box is telling exactly this, specifying "must" and even reporting the exact error that people run into. I don't know what could be changed, maybe move it before the instructions to enable dynamic linking?
from bevy.
@SkiFire13 haha, it seems my mind just skipped the yellow box automatically. Thanks, you're right. Closing this.
from bevy.
Related Issues (20)
- Some images compressed with `CompressedImageSaver` cause panics after loading HOT 1
- Tracking issue: Isometry follow-ups HOT 3
- Use bicubic filtering in lightmaps
- Remove `get_at` method from `Map` trait (reflection) HOT 2
- State docs should inform the need for the StatePlugin to be used HOT 1
- Bubbling observers `Traversal` should use `QueryData`
- Observers tests are not particularly robust
- `trigger_observers` should operate on slices of data
- Allow fragment shader to access vertex position HOT 7
- Running the same system in two different states is treated as ambiguous by the scheduler HOT 1
- Allow specifying Event bubbling info as proc macro attributes
- `OnReplace` observer needs to be reflectable
- AutoExposure doesn't seem to work on web HOT 1
- Types related to Contrast Adaptive Sharpening should be `Cas*` instead of `CAS*`
- Bevy does not report `.just_pressed` in this edge case involving windows focus and cursor grab HOT 1
- Unsoundness in dynamic queries: sparse filters are ignored if the typed query is dense HOT 2
- `FilteredEntityRef`/`FilteredEntityMut`'s access is empty when used in composite queries
- Passing image data to bevy_window for window icons and cursors HOT 3
- 3D line example broken on web HOT 2
- `Viewport::default()` produces a viewport that always crashes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy.