Score:0

Error with OpenGL in WSL2

cn flag

I am trying to install a software to use with Ubuntu 20.04 LTS in my Windows 10 PC (with an NVIDIA GeForce Gt 730 graphics card). It requires certain packages installed (freeglut3-dev, gfortran, gnuplot and Mesa OpenGl libraries). I have been able to install of the packages except the Mesa OpenGl one. When I want to check what version I have, I get the following:

glxinfo | grep "OpenGL version"
Error: unable to open display

Not sure what needs to be done in order to first have Mesa OpenGl package installed and working and second to be able to see what version I have.

Note I am completely new to Ubuntu and this packages so my knowledge about installing packages and everything is really limited.

hr flag
WSL/WSL2 are CLI distributions - they don't have a GUI display. You can make them use an X server such as VcXsrv or Xming on the Windows host and that will determine your OpenGL capabilites. See for example [Can't run OpenGL on WSL2](https://stackoverflow.com/questions/66497147/cant-run-opengl-on-wsl2)
Nmath avatar
ng flag
This is a textbook XY problem. You should tell us what software you are actually trying to install and provide the details about that problem. Tell us exactly what steps you are attempting and then give the details about the actual problem you are encountering. Include all error messages unredacted and verbatim. Don't ask about your proposed solution and leave out all of the details about the real problem. Your proposed solution might not actually solve your real problem.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.