Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add installation instructions for WSL / Desktop #2321

Open
2 of 3 tasks
Zertsov opened this issue Apr 16, 2024 · 2 comments
Open
2 of 3 tasks

Add installation instructions for WSL / Desktop #2321

Zertsov opened this issue Apr 16, 2024 · 2 comments

Comments

@Zertsov
Copy link

Zertsov commented Apr 16, 2024

Problem

The docs currently don't give a great guide for getting Dioxus to work with WSL.

Steps To Reproduce

Steps to reproduce the behavior:

  • Run cargo install dioxus-cli@0.5.0
  • Run dx new
  • Select Desktop and Tailwind options
  • Note that the selections in the screenshot below don't actually lead anywhere, and options from Desktop and below have no content either
  • Attempt dx serve --hot-reload --platform desktop - there will (probably) be many errors

Expected behavior

Clearer, or any, instructions on how to get Dioxus running on WSL. Also, more details on how to use Desktop or the other web renderers.

Screenshots
image

Environment:

  • Dioxus version: v0.5
  • Rust version: rustc 1.77.2 (25ef9e3d8 2024-04-09)
  • OS info: Windows (WSL 2)
  • App platform: desktop

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later
@Zertsov
Copy link
Author

Zertsov commented Apr 16, 2024

Here's the series of steps / commands I ran to get things (mostly) up and running, assuming we are past the dx new step:

  1. dx serve --hot-reload --platform desktop (For brevity sake, when I say "serve" going forward, I mean this command)
  2. rustup update
  3. serve
  4. sudo apt update
  5. sudo apt-get install librust-atk-dev
  6. serve
  7. sudo apt install pkg-config libdbus-1-dev libgtk-3-dev libsoup2.4-dev libjavascriptcoregtk-4.0-dev libwebkit2gtk-4.0-dev
  8. sudo apt-get update
  9. serve
  10. add the export DISPLAY=:0 to profile
  11. serve
  12. sudo apt-get install libxdo-dev
  13. serve <-- Now works

@Zertsov
Copy link
Author

Zertsov commented Apr 16, 2024

Another note - even after all this, there are still permission errors when running this:

Connected to hot reloading 🚀
libEGL warning: failed to open /dev/dri/renderD128: Permission denied

libEGL warning: failed to open /dev/dri/card0: Permission denied


** (dioxus-desktop:6506): WARNING **: 14:35:10.523: webkit_settings_set_enable_offline_web_application_cache is deprecated and does nothing.
libEGL warning: failed to open /dev/dri/renderD128: Permission denied

libEGL warning: failed to open /dev/dri/card0: Permission denied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant