Redirecting X11 libraries

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Redirecting X11 libraries

1,458 Views
rebelalliance
Contributor III

Hi,

In the i.MX6Q Linux Reference Manual page 81-82, it says the following:

By default, these symbolic links are installed to point to the frame buffer version of the

libraries as such:

libGAL.so -> libGAL-fb.so

libEGL.so -> libEGL-fb.so

libVIVANTE.so -> libVIVANTE-fb.so

libOpenVG.so -> libOpenVG_3D.so

On X11 systems, the symbolic links to these libraries need to be redirected. This can be

done using the following sequence of commands:

> cd <ROOTFS>/usr/lib

> sudo ln -s libGAL-x11.so libGAL.so

> sudo ln -s libEGL-x11.so libEGL.so

> sudo ln -s libEGL-x11.so libEGL.so.1

> sudo ln -s libVIVANTE-x11.so libVIVANTE.so

On directFB backend, the symbolic links to these libraries need to be redirected. This can

be done using the following sequence of commands:

> cd <ROOTFS>/usr/lib

> sudo ln -s libGAL-dfb.so libGAL.so

> sudo ln -s libEGL-dfb.so libEGL.so

> sudo ln -s libEGL-dfb.so libEGL.so.1

> sudo ln -s libVIVANTE-dfb.so libVIVANTE.so

My question is, what is the purpose of redirecting these?  Under what condition would one want to redirect X11 libs to, say for instance,  directfb?

Labels (3)
Tags (2)
0 Kudos
3 Replies

651 Views
YixingKong
Senior Contributor IV

Rebel

This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this discussion, or create another discussion.

Thanks,

Yixing

0 Kudos

651 Views
YixingKong
Senior Contributor IV

Rebel

We have not got your response yet and will close the discussion in 3 days. If you still need help, please feel free to reply with an update to this discussion.

Thanks,

Yixing

0 Kudos

651 Views
YixingKong
Senior Contributor IV

Rebel

We are sorry for getting you back so late. The answer from our engineer below was put in wrong place. I put here and hopefully it is of useful.

-----------------------------------------

libEGL and libGAL are specific to the window manager you use. For example, lets take the X11 system, in order to run OpenGL ES or OpenVG applications on X11 windows, the libEGL and libGAL need to be compatible to run X11.


libEGL is standard naming defined by krhonos.org. All the opengl es and openvg application will be using this name. So the system should be compatible to run the application without rebuilding. Hence need to create soft links to the correct name.

--------------------------------------------

If it is good, we are going to close the discussion in 3 days. If you still need help, please feel free to reply with an update to this discussion.

Thanks,

Yixing

0 Kudos