Consider adding some WSL-specific help to README
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 52/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- rust
- Domain
- documentation
Research direction
Start by reading the README and compare its local testing guidance with the WSL instructions and commands described in this issue. Update the README with the relevant WSL setup, target, and build guidance, then verify that the documented commands are clear and complete.
Written by the indexing model from the issue text.
Description
First of all thank you! Very excited to start using this.
There is a small gotcha I ran into because I use WSL environment. It will not run natively in it, you will need to cross-compile. It may be helpful to others?
Testing Locally with WSL
things to include in .cargo/config
[target.x86_64-pc-windows-gnu]
linker = "x86_64-w64-mingw32-gcc"
ar = "x86_64-w64-mingw32-gcc-ar"
This can work if you've got mingw sudo apt install mingw-w64 (there maybe better linkers but i didn't investigate)
credit goes to these people: link
you may also need to add this target with rustup and the compiler will tell you if you don't have it
rustup target add x86_64-pc-windows-gnu
to see which targets you have run
rustup target list
Then compile to that target: cargo build --target x86_64-pc-windows-gnu
Have your Rust directories somewhere easily accessible on both, WSL bash and on Windows file explorer: it will make you a clickable .exe file that works natively
The error you get if you let it think it's in real linux is here:
Error: WinitEventLoop(Os(OsError { line: 81, file: "/home/xxxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.9/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoWaylandLib)) }))
I tested that a GUI is possible (there are some nuances depending if you have WSL1 or WSL2 link) and in my configuration a linux GUI can be successfully displayed from WSL.
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 235
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from emilk/eframe_template
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
emilk/eframe_template#218 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 64/100
emilk/eframe_template#84 · 6 comments ·
-
Doesn't runOpen
Difficulty 3/5 1-2 days Newbie friendliness 38/100
emilk/eframe_template#229 ·
-
Name empty?Open
Difficulty 1/5 Under an hour Newbie friendliness 55/100
emilk/eframe_template#228 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
emilk/eframe_template#217 ·
All issues in emilk/eframe_template
Similar issues
-
claim
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#946 ·
Maintainers usually reply within 1 day
-
area: ai-assistants documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
storytold/craft-libs#5594 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
听歌识曲历史跳转后对应音源界面无法返回Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
LingyunStudio/RustMusic#16 ·