Skip to content

Commit aff594d

Browse files
authored
Adding common errors to setting up with wsl (#263)
1 parent aaa0215 commit aff594d

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,37 @@ just wasm-serve
140140
```
141141
_Note: you'll need python installed on your machine to run this command_
142142

143+
## Building for WSL
144+
145+
Errors you may encouter:
146+
147+
1. Missing Libraries
148+
149+
```bash
150+
Could not run pkg-config ... alsa-sys ...
151+
The system library `libudev` required by crate `libudev-sys` was not found.
152+
```
153+
154+
Fix:
155+
156+
```bash
157+
sudo apt update
158+
sudo apt install pkg-config libasound2-dev libudev-dev cmake build-essential xorg-dev
159+
```
160+
161+
2. glfw incompatible version
162+
163+
```bash
164+
Package dependency requirement 'glfw3 >= 3.4.0' could not be satisfied.
165+
Package 'glfw3' has version '3.3.10', required version is '>= 3.4.0'
166+
```
167+
168+
```bash
169+
cd /tmp
170+
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/glfw3/libglfw3_3.4-4_amd64.deb
171+
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/glfw3/libglfw3-dev_3.4-4_amd64.deb
172+
sudo dpkg -i libglfw3_3.4-4_amd64.deb libglfw3-dev_3.4-4_amd64.deb
173+
```
143174

144175
## Contributing
145176

0 commit comments

Comments
 (0)