Open hartikainen opened 5 years ago
I've narrowed down the issue to be the libegl1-mesa-dev
apt package (or possibly some of its dependency). I have a working docker image which breaks if I do apt-get install libglew-dev
. I still don't know how to downgrade it back to the working version though.
Here's the diff of apt list --installed
for the working (18.2.2
) vs. broken (18.2.8
) installation:
-libegl1-mesa-dev/bionic-updates,now 18.2.8-0ubuntu0~18.04.2 amd64 [installed]
+libegl1-mesa-dev/bionic-updates,now 18.2.2-0ubuntu1~18.04.2 amd64 [installed]
same problem here
check this issue for fixes: https://github.com/mupen64plus/mupen64plus-video-z64/pull/16
+1 for fix. In mujoco-py, I found it sufficient to simply remove #include <GL/glext.h>
from mujoco_py/gl/eglshim.c
.
+1 for fix. In mujoco-py, I found it sufficient to simply remove
#include <GL/glext.h>
frommujoco_py/gl/eglshim.c
.
The eglshim.c file doesn't include <GL/glext.h> but I still have the problem. Does anyone know what headers else should be removed?
The error info indicates conflicting types are defined both in /usr/include/GL/glew.h
and /usr/include/GL/glext.h
. So instead of
remove
#include <GL/glext.h>
frommujoco_py/gl/eglshim.c
, which could introduce unknown type name
errors, it's preferred to comment out some lines in /usr/include/GL/glext.h
. So L12306 to L12320 should be like:
//typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params);
typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param);
//typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params);
typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param);
//typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params);
typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param);
//typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params);
typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param);
typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params);
typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param);
typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params);
typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params);
typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params);
//typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params);
//typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params);
Describe the bug I'm trying to install and run mujoco-py with GPU. The compilation fails with the following error:
To Reproduce Create a new
Dockerfile.broken
with the following diff from the existing Dockerfile. This is required since the current Dockerfile doesn't actually compile with GPU (see #237). (Unrelated note: the build fails earlier with different error if we don't change the base image).Then build the image, run the container and import mujoco py to start the compilation:
Expected behavior Build succeeds.
Error Messages See above.
Desktop (please complete the following information):
Ubuntu 18.04
3.6.5
1.50
and2.00
1.50.1.68
and2.0.2.0
Environment
output of:
echo $LD_LIBRARY_PATH
:/usr/local/nvidia/lib64:/root/.mujoco/mujoco200/bin::/usr/lib/nvidia-000
output of:
echo $HOME
/root
output of:
echo $USER
``Additional context n/a