Open DonKichot opened 5 years ago
WSL can't run graphical programs out of the box, you'll have to try it with an X server.
Have you install GLFW?
Maybe related to https://github.com/patriciogonzalezvivo/glslViewer/issues/140 ??
I got it to compile in WSL by installing libglew-dev
and adding the following:
/src/gl/gl.h
, added #include <GL/glew.h>
after PLATFORM_LINUX
and before #include <GLFW/glfw3.h>
Makefile
, added -DGLEW_STATIC
after -DPLATFORM_LINUX
, and also added glew
to the --cflags
list on the same line and the --libs
list on the next line.I also installed and ran vcXsrv
on Windows, and set DISPLAY=:0.0
in WSL.
However, running glslViewer
I get a segfault, and that's as far as I've gotten.
Any idea why this might be happening? I am also trying to run glslViewer in WSL but I also get segfault.
Hi! the code had change dramatically since we close this thread in 2019. Do you mind describing what GlslViewer version are you running and providing how the command prompt looks like (what arguments and shader you pass, how the error looks, etc)
I'll open an issue tomorrow morning
Well, I found that the solution in my case was to simply start the X server with the option "Native opengl" uncheck (I am using VcXsrv Windows X Server)
Thank you!
Just in case WSL2 users want to make it work, it also helped me: https://aalonso.dev/blog/how-to-use-gui-apps-in-wsl2-forwarding-x-server-cdj
Thank you @raphaklaus, I will add it to the documentation