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
I'm trying to set up a docker for CI using OSMesa on a headless machine, but I couldn't make it work.
Currently, I'm testing on a regular machine running Ubuntu 20.04.
Despite I've already set up the OpenGL context with OSMesaMakeCurrent() and enabled glewExperimental = GL_TRUE, glewInit() fails with the error Missing GL version.
I tried two machine and both output a similar result.
I've attached both files in a zip, as well as the glewinfo output.
One thing I noticed in the glewinfo output is that all GL_MESA_xxx is MISSING. Is this a problem?
How do I approach this issue?
After some try & error, I figured it out. Now the GLEW can initialize successfully.
Here's what I did:
Edit /etc/ld.so.conf and append another line include /usr/lib/x86_64-linux-gnu, where libOSMesa.so is installed to.
Run ldconfig
Instead of compiling GLEW using make SYSTEM=linux-osmesa, go to build/, run cmake ./cmake -DGLEW_OSMESA=Y, and run make install afterward. I've cross-validated and it seems that only the CMake version works, so I guess there might be some problem with the Makefile in the root folder.
I'll do some more tests and try to make it work in the following days.
Hello everyone,
I'm trying to set up a docker for CI using OSMesa on a headless machine, but I couldn't make it work.
Currently, I'm testing on a regular machine running Ubuntu 20.04.
Despite I've already set up the OpenGL context with
OSMesaMakeCurrent()
and enabledglewExperimental = GL_TRUE
,glewInit()
fails with the errorMissing GL version
.I'm using GLEW 2.2 compiled with
My OSMesa is installed using apt-get.
The code I'm testing:
The
CMakeLists.txt
for building it:Running the above code will print:
I tried two machine and both output a similar result.
I've attached both files in a zip, as well as the glewinfo output.
One thing I noticed in the glewinfo output is that all GL_MESA_xxx is MISSING. Is this a problem?
How do I approach this issue?
glewinfo.txt
osmesa_test.zip
The text was updated successfully, but these errors were encountered: