Open Zertsov opened 2 weeks ago
Here's the series of steps / commands I ran to get things (mostly) up and running, assuming we are past the dx new
step:
dx serve --hot-reload --platform desktop
(For brevity sake, when I say "serve" going forward, I mean this command)rustup update
serve
sudo apt update
sudo apt-get install librust-atk-dev
serve
sudo apt install pkg-config libdbus-1-dev libgtk-3-dev libsoup2.4-dev libjavascriptcoregtk-4.0-dev libwebkit2gtk-4.0-dev
sudo apt-get update
serve
export DISPLAY=:0
to profileserve
sudo apt-get install libxdo-dev
serve
<-- Now worksAnother 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
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:
cargo install dioxus-cli@0.5.0
dx new
Desktop
andTailwind
optionsDesktop
and below have no content eitherdx serve --hot-reload --platform desktop
- there will (probably) be many errorsExpected 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
Environment:
desktop
Questionnaire