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

Failed to find EGL functions in library file #276

Open
m1ndgames opened this issue May 7, 2019 · 1 comment
Open

Failed to find EGL functions in library file #276

m1ndgames opened this issue May 7, 2019 · 1 comment

Comments

@m1ndgames
Copy link

I added this to my run.py: rgb_render_config={'window_size': (800, 600), 'minimap_size': (256, 256)}

console log:
Attempting to initialize EGL from file libEGL.so ...
Failed to find EGL functions in library file!


[root@hacktop florian]# ls -la /usr/lib/libEGL*
lrwxrwxrwx 1 root root     16 24. Apr 21:16 /usr/lib/libEGL_mesa.so -> libEGL_mesa.so.0
lrwxrwxrwx 1 root root     20 24. Apr 21:16 /usr/lib/libEGL_mesa.so.0 -> libEGL_mesa.so.0.0.0
-rwxr-xr-x 1 root root 261232 24. Apr 21:16 /usr/lib/libEGL_mesa.so.0.0.0
lrwxrwxrwx 1 root root     15 14. Mar 08:35 /usr/lib/libEGL.so -> libEGL.so.1.1.0
lrwxrwxrwx 1 root root     15 14. Mar 08:35 /usr/lib/libEGL.so.1 -> libEGL.so.1.1.0
-rwxr-xr-x 1 root root  79600 14. Mar 08:35 /usr/lib/libEGL.so.1.1.0

Im using the nvidia-340xx propritary driver for my laptops Quadro FX 880M.

@jaens
Copy link

jaens commented Jun 2, 2019

Probably because it's trying to use Mesa EGL instead of the Nvidia EGL implementation, or the driver is too old.

Have you tried running other EGL apps?

Here's what it looks like on Debian with the Nvidia drivers installed:

> ls -la /usr/lib/x86_64-linux-gnu/libEGL*
lrwxrwxrwx 1 root root     20 Mar  2 04:21 /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0 -> libEGL_mesa.so.0.0.0
-rw-r--r-- 1 root root 259288 Mar  2 04:21 /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
lrwxrwxrwx 1 root root     61 Jul 26  2018 /usr/lib/x86_64-linux-gnu/libEGL_nvidia.so.0 -> /etc/alternatives/nvidia--libEGL_nvidia.so.0-x86_64-linux-gnu
lrwxrwxrwx 1 root root     49 Jul 26  2018 /usr/lib/x86_64-linux-gnu/libEGL.so -> /etc/alternatives/glx--libEGL.so-x86_64-linux-gnu
lrwxrwxrwx 1 root root     51 Aug 26  2018 /usr/lib/x86_64-linux-gnu/libEGL.so.1 -> /etc/alternatives/glx--libEGL.so.1-x86_64-linux-gnu

Console:

Attempting to initialize EGL from file libEGL.so ...
Successfully loaded EGL library!
Successfully initialized display on device idx: 0, EGL version: 1.5

Running CGLSimpleDevice::HALInit...
Calling glGetString: 0x7f0f0d623440
Version: 4.6.0 NVIDIA 418.74
Vendor: NVIDIA Corporation
Renderer: GeForce GTX 1080 Ti/PCIe/SSE2
OpenGL initialized!

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