You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.[Download and build MLX42](#download-and-build---mlx42)
146
139
147
140
3. Create a ```main.c``` file, include ```MLX42/MLX42.h```, compile with ```-ldl -lglfw (or -lglfw3) -pthread -lm```, make sure to also do ```-I <include_path>```.
148
141
149
142
4. Run.
150
143
144
+
----
145
+
151
146
### For Windows (with Windows Subsystem for Linux 2 (WSL2))
152
147
153
148
1. Set these variables in your `.zshrc` or `.bashrc`:
@@ -177,9 +172,11 @@ and they might not even show up in the list until the first time you start the a
177
172
178
173
5. Probably all the other steps for Linux apply, just clone, build and run.
7. Download the [GLFW source package](https://www.glfw.org/download.html) and extract it somewhere.
201
206
202
207
8. Open the terminal and type `cmake-gui`, select the downloaded/extracted
203
208
source folder, select any place you want the build output to be.
@@ -214,7 +219,9 @@ and they might not even show up in the list until the first time you start the a
214
219
215
220
13. Go to the directory you assigned in Step 10. Copy the GLFW folder in the include folder to `C:\MinGW\include` & copy the .a file in the lib folder to `C:\MinGW\lib`.
216
221
217
-
14. Compile your program with these flags:
222
+
14.[Download and build MLX42](#download-and-build---mlx42)
223
+
224
+
15. Compile your program with these flags:
218
225
-`-lglfw3`
219
226
-`-lopengl32`
220
227
-`-lgdi32`
@@ -226,6 +233,16 @@ and they might not even show up in the list until the first time you start the a
0 commit comments