View Single Post
Posts: 19 | Thanked: 34 times | Joined on Aug 2017
#104
I noticed RetroArch emulator failed to start. On latest xt894 release from TheKit

After a websearch i found this seems to be related to egl problems.

Code:
[nemo@Sailfish /]$ test_egl
linkerlinker.c:1109| ERROR: Library 'libPVROGL.so' not found
linkerlinker.c:1109| ERROR: Library 'libPVROCL.so' not found

[nemo@Sailfish /]$  EGL_PLATFORM=hwcomposer test_egl
linkerlinker.c:1109| ERROR: Library 'libPVROGL.so' not found
linkerlinker.c:1109| ERROR: Library 'libPVROCL.so' not found
Segmentation fault

[nemo@Sailfish /]$  EGL_PLATFORM=fbdev test_egl
linkerlinker.c:1109| ERROR: Library 'libPVROGL.so' not found
linkerlinker.c:1109| ERROR: Library 'libPVROCL.so' not found
ERROR: failed to open framebuffer: (Bad address)
test_egl: eglplatform_fbdev.cpp:35: void fbdevws_init_module(ws_egl_interface*): Assertion `0' failed.
Aborted

[nemo@Sailfish /]$ EGL_PLATFORM=null test_egl
linkerlinker.c:1109| ERROR: Library 'libPVROGL.so' not found
linkerlinker.c:1109| ERROR: Library 'libPVROCL.so' not found
^C  [just sits there]

[nemo@Sailfish /]$ EGL_PLATFORM=wayland test_egl
linkerlinker.c:1109| ERROR: Library 'libPVROGL.so' not found
linkerlinker.c:1109| ERROR: Library 'libPVROCL.so' not found
Segmentation fault
Looking for the egl drivers I found these:
Code:
[nemo@Sailfish /]$ ls -l /usr/lib/libhybris
total 368
-rwxr-xr-x 1 root root 104899 Apr  5 23:55 eglplatform_fbdev.so
-rwxr-xr-x 1 root root  25224 Apr  5 23:55 eglplatform_hwcomposer.so
-rwxr-xr-x 1 root root  19194 Apr  5 23:55 eglplatform_null.so
-rwxr-xr-x 1 root root 209501 Apr  5 23:55 eglplatform_wayland.so
Searching for PVROGL
Code:
find / -name libPVROGL.so
returns nothing.

I tested on three devices. All same result.

Now i just found something interesting:
Code:
[nemo@Sailfish /]$ EGL_PLATFORM=wayland test_egl_configs
Starting test (EGL_PLATFORM=wayland)
linkerlinker.c:1109| ERROR: Library 'libPVROGL.so' not found
linkerlinker.c:1109| ERROR: Library 'libPVROCL.so' not found
Segmentation fault

[nemo@Sailfish /]$ EGL_PLATFORM=hwcomposer test_egl_configs
Starting test (EGL_PLATFORM=hwcomposer)
linkerlinker.c:1109| ERROR: Library 'libPVROGL.so' not found
linkerlinker.c:1109| ERROR: Library 'libPVROCL.so' not found
EGL Version 1.4
Extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer EGL_ANDROID_recordable EGL_HYBRIS_native_buffer2 EGL_HYBRIS_WL_acquire_native_buffer EGL_WL_bind_wayland_display 
Available configurations: 25
===== Configuration #0 =====
  EGL_RED_SIZE: 8
  EGL_GREEN_SIZE: 8
  EGL_BLUE_SIZE: 8
...
much more stuff
I have the sgx540 driver loaded of course.
Code:
[root@Sailfish lib]# lsmod
Module                  Size  Used by
compat                  1502  0
tty_hci                 3952  0
pvrsrvkm_sgx540_120   293781  130
wl12xx                167937  0
mac80211              378066  1 wl12xx
cfg80211              144942  2 mac80211,wl12xx
wl12xx_sdio             2806  0
Possibly relevant discussions:
http://www.merproject.org/logs/%23sa...12-25.log.html

Can someone confirm this on their device? What do we do to get it working?

EDIT: The PVROGL and PVROCL aren't important and don't cause the errors, afaict. These mobile GPUs only need to support OpenGL-ES. AFAIK

Last edited by merpl; 2017-09-14 at 06:25.
 

The Following User Says Thank You to merpl For This Useful Post: