imx6 gpu/vpu libraries and ldconfig

This forum is for supported devices using an ARMv7 Freescale SoC.

imx6 gpu/vpu libraries and ldconfig

Postby aplund » Tue Feb 04, 2014 5:34 am

I have a cubox-i4pro and have the 3.0.35 BSP4.1.0.

It seems one has to manually create a symbolic link to the graphics library one desires. For example, I want the framebuffer library so need to link libEGL-fb.so -> libEGL.so.1. But the problem is that when pacman installs something and runs ldconfig, ldconfig finds that the others don't have links and so tries to create the soname links for these files which ends up undoing the links that I desired. So I end up with something like this:

$this->bbcode_second_pass_code('', '-rwxr-xr-x 1 root root 85361 Feb 4 14:29 /usr/lib/libEGL-dfb.so
-rwxr-xr-x 1 root root 86888 Feb 4 14:28 /usr/lib/libEGL-fb.so
lrwxrwxrwx 1 root root 12 Feb 4 14:29 /usr/lib/libEGL.so -> libEGL-fb.so
lrwxrwxrwx 1 root root 13 Feb 4 14:39 /usr/lib/libEGL.so.1 -> libEGL-x11.so
-rwxr-xr-x 1 root root 89588 Feb 4 14:28 /usr/lib/libEGL-wl.so
-rwxr-xr-x 1 root root 81141 Feb 4 14:28 /usr/lib/libEGL-x11.so')

Is there any way to stop ldconfig doing this whilst still having the libraries automatically accessible to programs? Or is LD_LIBRARY_PATH to a non-standard directory the only way out of this?
aplund
 
Posts: 24
Joined: Tue Feb 04, 2014 5:27 am

Re: imx6 gpu/vpu libraries and ldconfig

Postby aplund » Tue Feb 04, 2014 6:11 am

Just a quick update. I can hackfix this by using hard links instead of symbolic links. Ugly, but effective.
aplund
 
Posts: 24
Joined: Tue Feb 04, 2014 5:27 am


Return to Freescale

Who is online

Users browsing this forum: No registered users and 16 guests