Dentosal / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
585 stars 182 forks source link

Failed to find EGL functions in library file #276

Open m1ndgames opened 5 years ago

m1ndgames commented 5 years ago

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 commented 5 years ago

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!