* [PATCH v2 2/2] libgles-omap3.inc : Fix for library linking isssue with graphics SDK
@ 2011-11-21 11:59 Prathap M S
2011-11-21 13:14 ` Koen Kooi
0 siblings, 1 reply; 2+ messages in thread
From: Prathap M S @ 2011-11-21 11:59 UTC (permalink / raw)
To: openembedded-devel
* This is the fix for the issue seen with opkg install of libgles-omap3_4.04.00.02-r16.6_armv7a.ipk on target.
* With Graphics SDK release 04.04.00.02 onwards, there are 2 versions of the library libsrv_um.so - one is libsrv_um.so and other is libsrv_um_dri.so (For Xorg driver).In presence of libsrv_um_dri.so , the links created under /usr/lib were all by default linking to libsrv_um_dri.so only. Due to this 3D demos were failing.
* This fix makes sure that only one appropriate version of the library libsrv_um.so is present on target and hence links created will now be proper.
Signed-off-by: Prathap M S <msprathap@ti.com>
---
recipes-graphics/libgles/libgles-omap3.inc | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/recipes-graphics/libgles/libgles-omap3.inc b/recipes-graphics/libgles/libgles-omap3.inc
index 0b46818..24203b5 100644
--- a/recipes-graphics/libgles/libgles-omap3.inc
+++ b/recipes-graphics/libgles/libgles-omap3.inc
@@ -38,6 +38,17 @@ do_configure() {
chmod 0644 $i
done
+ # The below for loop is the fix for the issue seen with opkg install of libgles-omap3_4.04.00.02-r16.6_armv7a.ipk on target.
+ # With Graphics SDK release 04.04.00.02, there are 2 versions of the library libsrv_um.so - one is libsrv_um.so and other is libsrv_um_dri.so (For Xorg driver).
+ # In presence of libsrv_um_dri.so , the links created under /usr/lib were all by default linking to libsrv_um_dri.so only. Due to this 3D demos were failing.
+ # Now this fix makes sure that only one appropriate version of the library libsrv_um.so is present on target and hence links created will now be proper.
+ for drifile in $(find ${S} -name "libsrv_um_dri.so"); do
+ if [ "$drifile" != "" ] ; then
+ dir=$(dirname ${drifile})
+ rm -rf ${dir}/libsrv_um_dri.so
+ fi
+ done
+
# Attempt to create proper library softlinks
for sofile in $(find ${S} -name "lib*Open*.so") $(find ${S} -name "lib*srv*.so") $(find ${S} -name "lib*gl*.so") $(find ${S} -name "libpvr*.so") $(find ${S} -name "lib*GL*.so"); do
if [ "$(readlink -n ${sofile})" = "" ] ; then
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 2/2] libgles-omap3.inc : Fix for library linking isssue with graphics SDK
2011-11-21 11:59 [PATCH v2 2/2] libgles-omap3.inc : Fix for library linking isssue with graphics SDK Prathap M S
@ 2011-11-21 13:14 ` Koen Kooi
0 siblings, 0 replies; 2+ messages in thread
From: Koen Kooi @ 2011-11-21 13:14 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Op 21-11-11 12:59, Prathap M S schreef:
> * This is the fix for the issue seen with opkg install of
> libgles-omap3_4.04.00.02-r16.6_armv7a.ipk on target. * With Graphics SDK
> release 04.04.00.02 onwards, there are 2 versions of the library
> libsrv_um.so - one is libsrv_um.so and other is libsrv_um_dri.so (For
> Xorg driver).In presence of libsrv_um_dri.so , the links created under
> /usr/lib were all by default linking to libsrv_um_dri.so only. Due to
> this 3D demos were failing. * This fix makes sure that only one
> appropriate version of the library libsrv_um.so is present on target and
> hence links created will now be proper.
>
> Signed-off-by: Prathap M S <msprathap@ti.com>
This patch seems to be against the meta-ti later, please follow the
instruction from its README:
http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/tree/README
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org
iEYEARECAAYFAk7KTq8ACgkQMkyGM64RGpEf5ACeNo4s3hEMLvxvtyInanUe1yGr
ZZsAmgMoTFNzXnYT0rdxhv8VtGlj5t0G
=aKje
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-21 13:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-21 11:59 [PATCH v2 2/2] libgles-omap3.inc : Fix for library linking isssue with graphics SDK Prathap M S
2011-11-21 13:14 ` Koen Kooi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.