Why does gbm_viv.so depends on libwayand-server.so

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does gbm_viv.so depends on libwayand-server.so

490 Views
ortogonal
Contributor III

Hi!

When comparing imx-gpu-viv-6.2.4.p1.0-aarch64 with imx-gpu-viv-6.2.4.p0.2-aarch64 there is one strange difference. The file gbm_viv.so is depending on libwayland-server in version 6.2.4.p1.0 but not in 6.2.4.p0.2. I can't see any reason why one would need to build libwayland-server.so just to use the GPU on a framebuffer system.

To test this:

$ readelf -a imx-gpu-viv-6.2.4.p0.2-aarch64/gpu-core/usr/lib/gbm_viv.so | grep NEEDED                 
0x0000000000000001 (NEEDED)             Shared library: [libdrm.so.2]
0x0000000000000001 (NEEDED)             Shared library: [libGAL.so]
0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
$ readelf -a imx-gpu-viv-6.2.4.p1.0-aarch64/gpu-core/usr/lib/gbm_viv.so | grep NEEDED     
0x0000000000000001 (NEEDED)             Shared library: [libdrm.so.2]
0x0000000000000001 (NEEDED)             Shared library: [libGAL.so]
0x0000000000000001 (NEEDED)             Shared library: [libwayland-server.so.0]
0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

It would be great to get a explanation why this change was added or if this is a configuration error.

Best regards,

Erik

Tags (2)
0 Kudos
3 Replies

128 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Erik,

It makes sense for gbm_viv.so to have dependency on libwayland_server.so since it hooks up gbm and wayland.

It has been recently added.

It is not available yet in early release version p0. It is normal you didn't see it.

0 Kudos

128 Views
ortogonal
Contributor III

Okay, it might make sense. I'm not that familiar with gbm.

But then I have a new question. Why do NXP provide a "-fb" version of libEGL, libGLESv2 etc.

-rwxr-xr-x 1 erik erik  1183656 mar 12 16:25 libEGL-fb.so 
lrwxrwxrwx 1 erik erik       12 apr 20 14:02 libEGL.so -> libEGL-fb.so 
lrwxrwxrwx 1 erik erik       12 apr 20 14:02 libEGL.so.1 -> libEGL-fb.so 
lrwxrwxrwx 1 erik erik       12 apr 20 14:02 libEGL.so.1.0 -> libEGL-fb.so 
-rwxr-xr-x 1 erik erik  1353256 mar 12 16:28 libEGL-wl.so 
-rwxr-xr-x 1 erik erik  1138032 mar 12 16:24 libEGL-x11.so

If I can't run the framebuffer only version what's the reason for having "-fb" version and which should I use?

Best regards

0 Kudos

128 Views
tomnakase
Contributor I

Looks like it's related to this post:

https://community.nxp.com/thread/472956

0 Kudos