[meta-freescale] [meta-fsl-arm][PATCH] gpu-viv-bin-mx6q.inc: fix libEGL and libGLESv2 installation
otavio at ossystems.com.br
Thu Jun 27 06:05:48 PDT 2013
On Thu, Jun 27, 2013 at 9:42 AM, Philip Craig <phil at blackmoth.com.au> wrote:
> Previously, we were only packaging libEGL.so and libGLESv2.so. This
> worked at runtime because ldconfig installed symlinks for the soname
> of these libraries (libEGL.so.1 and libGLESv2.so.2).
> However, there are situations where we need the soname version of
> these libraries at build time. Specifically, if these libraries are
> indirectly referenced by another library, then the linker looks them
> up using the soname.
> This patch changes the installation of these libraries to the normal
> way of installing. That is, we install them as the soname, and create
> symlinks for libEGL.so and libGLESv2.so.2. This also matches the way
> that these libraries are provided in the source.
> The one catch with that is libEGL.so also tries to load libGLESv2.so
> directly at runtime, rather than using the soname, so we need to
> install the libGLESv2.so symlink to the rootfs also, and we need to
> disable a QA error to allow this.
> libGL and libGLESv1 are fixed in a similar manner, but I haven't
> tested them.
> This fixes the following errors when building qtgstreamer:
> oe-core/build/tmp-eglibc/sysroots/i686-linux/usr/libexec/armv7a-vfp-neon-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.7.2/ld: warning: libGLESv2.so.2, needed by oe-core/build/tmp-eglibc/sysroots/imx6qsabrelite/usr/lib/libQt5Gui.so.5.0.2, not found (try using -rpath or -rpath-link)
> oe-core/build/tmp-eglibc/sysroots/i686-linux/usr/libexec/armv7a-vfp-neon-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.7.2/ld: warning: libEGL.so.1, needed by oe-core/build/tmp-eglibc/sysroots/imx6qsabrelite/usr/lib/libQt5Gui.so.5.0.2, not found (try using -rpath or -rpath-link)
> Signed-off-by: Philip Craig <phil at blackmoth.com.au>
I agree with the changes and I did like the improvement how we handle
the different backends but this does not apply on master. Can you
rebase it and resend?
Otavio Salvador O.S. Systems
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
More information about the meta-freescale