Skip to contentSkip to conversation

X11 failure

meta-raspberrypi Gary Thomas 3 participants 4 messages Dec 5, 2016 – Dec 6, 2016

lore
Share & tools
lore
#0 lore raw

With the latest Poky+RaspberryPi master branches, I get no X11
meta = "fix-kern-tools-native:9e63f81c78e284c9b325fe04a1b59e61c7ad8a1a"
meta-raspberrypi = "master:44d41bf3e94c4c8fe5ad5a3650572c8d17ef36c9"

When I boot (or restart X), I get this:

Couldn't open libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory

Indeed, the screen is only black (the mouse pointer is there and moves, but there are no windows)

I looked around and there is no libGL.so.1, just v2:

root@raspberrypi3:~# ls -l /usr/lib/libGL*
lrwxrwxrwx    1 root     root            14 Dec  2 05:17 /usr/lib/libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx    1 root     root            18 Dec  2 05:17 /usr/lib/libGLESv2.so.2 -> libGLESv2.so.2.0.0
-rwxr-xr-x    1 root     root         80048 Dec  2 05:17 /usr/lib/libGLESv2.so.2.0.0

What do I need to do to get libGL v1 so X11 will work again?

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 2 lines · Gary Thomas

What do I need to do to get libGL v1 so X11 will work again?

That would be part of mesa-gl, but I'm surprised RPi X needs OpenGL (as that is pure software, not accelerated).

Ross

#2 lore raw
Quoted 8 lines · Ross
Quoted 2 lines · Gary Thomas

What do I need to do to get libGL v1 so X11 will work again?

That would be part of mesa-gl, but I'm surprised RPi X needs OpenGL (as that is pure software, not accelerated).

mesa-gl is used as provider for virtual/libgl when using userland display driver.
if you use vc4graphics then you will use mesa for everything.

Quoted 9 lines

Ross

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#3 lore raw
Quoted 7 lines · Khem Raj
Quoted 6 lines · Ross
Quoted 2 lines · Gary Thomas

What do I need to do to get libGL v1 so X11 will work again?

Quoted 6 lines
Quoted 2 lines

That would be part of mesa-gl, but I'm surprised RPi X needs OpenGL (as that is pure software, not accelerated).

mesa-gl is used as provider for virtual/libgl when using userland display driver.
if you use vc4graphics then you will use mesa for everything.

I used to do this with these lines in local.conf
PREFERRED_PROVIDER_virtual/egl ?= "vc-graphics-hardfp" PREFERRED_PROVIDER_virtual/libgles2 ?= "vc-graphics-hardfp"

However this now leads to a cascade of errors:
ERROR: Nothing PROVIDES 'userland' (but
/local/poky-cutting-edge/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.3.bb DEPENDS on or otherwise requires it)
ERROR: userland was skipped: PREFERRED_PROVIDER_virtual/libgles2 set to vc-graphics-hardfp, not userland
NOTE: Runtime target 'gst-player-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['gst-player-dev', 'gstreamer1.0-plugins-bad', 'userland']
NOTE: Runtime target 'gst-player-bin' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['gst-player-bin', 'gstreamer1.0-plugins-bad', 'userland']
ERROR: Required build target 'video-demo-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['video-demo-image', 'gst-player-bin', 'gstreamer1.0-plugins-bad',
'userland']

If I remove gst-player-* from my image, I can build using vc-graphics-hardfp and X11 works again.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------