dilevin / computer-graphics-bounding-volume-hierarchy

Computer Graphics Assignment about Bounding Volume Hierarchies
6 stars 7 forks source link

Unable to get libigl viewer working on Windows or teach.cs #119

Open sushimon opened 1 month ago

sushimon commented 1 month ago

Hi,

As the title says, I've tried a student's suggestion with using putty with x11 forwarding to try to get it working on teach.cs with no luck. I've also installed all the linux packages in the readme for WSL but it doesn't work either even after setting my DISPLAY variable (it either seg faults or runs but no display shows up). Any help is appreciated

jennicao commented 1 month ago

Did you also install an X server like Xming or Vcxsrv?

Putty doesn’t work alone. I only used putty to get it to work on teach CS, but if I do it locally, only an X server is needed.

jennicao commented 1 month ago

If you already have an X server installed and it's running in the background. Then, to set the DISPLAY variable in windows, you can run this in the command line:

export DISPLAY="$(grep nameserver /etc/resolv.conf | sed 's/nameserver //'):0"

This is only to get it to work locally. For teach CS, you don't need to do this, putty does it for you.

jennicao commented 1 month ago

These are the resources I used when I was trying to find a solution, if it helps:

https://github.com/microsoft/WSL/issues/6430

https://github.com/microsoft/WSL/issues/2855

sushimon commented 1 month ago

I downloaded Vcxsrv and have it running in the system tray but still no luck. I get the following error message

Authorization required, but no authorization protocol specified X11: Failed to open display X.X.X.X:0The GLFW library is not initializedThe GLFW library is not initializedThe GLFW library is not initializedSegmentation fault (core dumped)

jennicao commented 1 month ago

I haven't gotten this error before, but I tried googling and found this:

https://stackoverflow.com/questions/48833451/no-protocol-specified-when-running-a-sudo-su-app-on-ubuntu-linux

If you can't find a solution, maybe teach CS won't require authorization?