OrangePI Club
OpenGL - Printable Version

+- OrangePI Club (
+-- Forum: International (English) Forums (
+--- Forum: *nix Distro (
+---- Forum: RetrOrangePi v4 (
+----- Forum: SUPPORT (
+----- Thread: OpenGL (/showthread.php?tid=2452)

OpenGL - indevor - 03-04-2018

I found an instruction to add OpenGL,
I wanted to try it, will the current driver will not break ?
I understand that OpenGL in this system is not configured?
I'm trying to  - glxgears.  I get 45 fps and the error is libGL error: unable to load driver:

RE: OpenGL - alexkidd - 03-04-2018

OpenGL is included, just add 'LD_LIBRARY_PATH=/usr/lib/GLSHIM' before the command .
edit: most content already make use of OpenGL ES => Mali, what exactly are you trying to achieve?

RE: OpenGL - indevor - 03-05-2018

for example, I watched the installation instructions for Minecraft,

RE: OpenGL - alexkidd - 03-05-2018

you can try your luck, but most of absent content from RetrOrangePi have Raspberry-only dependencies

RE: OpenGL - indevor - 03-05-2018

there's nothing much as far as I understand, GL driver, Java
yes, but you need to make the GL driver work on the armbian desktop, at the current setting glxgears reports that it does not see them

RE: OpenGL - alexkidd - 03-05-2018

As said, OpenGL is included, but you have to add 'LD_LIBRARY_PATH=/usr/lib/GLSHIM' (environmental flag) before the command . That's what we do, for example, with the Amiga emulator.

RE: OpenGL - indevor - 03-05-2018

I connected to my orange pi via the rdp protocol as root, after logging out of my account. now I get such results
root@RetrOrangePi:~# glxgears
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
740 frames in 5.0 seconds = 147.720 FPS
980 frames in 5.0 seconds = 195.131 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":11.0"
     after 4116 requests (37 known processed) with 0 events remaining.

Does this mean that the driver is loaded and running?

RE: OpenGL - alexkidd - 03-05-2018

you NEED to add LD_LIBRARY_PATH=/usr/lib/GLSHIM before the command, like this:

LD_LIBRARY_PATH=/usr/lib/GLSHIM /usr/bin/glxgears

btw, it will only work on X desktop