Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sushimon opened this issue Oct 9, 2024 · 5 comments
Open

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

sushimon opened this issue Oct 9, 2024 · 5 comments

Comments

@sushimon
Copy link

sushimon commented Oct 9, 2024

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
Copy link

jennicao commented Oct 9, 2024

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
Copy link

jennicao commented Oct 9, 2024

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
Copy link

jennicao commented Oct 9, 2024

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

microsoft/WSL#6430

microsoft/WSL#2855

@sushimon
Copy link
Author

sushimon commented Oct 9, 2024

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
Copy link

jennicao commented Oct 9, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants