Skip to contentSkip to conversation

poky-lsb: Add libQtOpenGL to all lsb image for different platform

PATCH In review Xiaofeng Yan 2 participants 3 messages May 23, 2011 – May 24, 2011

lore
Share & tools
lore
#0 lore raw

cover poky-lsb: Add libQtOpenGL to all lsb image for different platform

From: Xiaofeng Yan <[email protected]>

Hi Saul,
[YOCTO #1020]
I know you want to get a new solution to add libQtOpenGL* to image which support graphic function with graphic hardware.
We need learn which platform support graphic function and then we can add libQtOpenGL* to corresponding qt4-x11-free_4.*.bbappend. If a target platform don't support graphic function, then this library should not be added to image.
But for lsb image, as you know, library libQtOpenGL* must be included lsb image to meet lsb requirement. So I summit this patch to fix [YOCTO #1020]. In fact, LSB can run on platform without graphic function when libQtOpenGL*.so* is supported because "meta-xlib" is default conflagration for libX11 in poky. As you know, opengl run on meta-xlib or meta-dri.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: xiaofeng/opengl
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/opengl

Thanks,
Xiaofeng Yan <[email protected]>
---

Xiaofeng Yan (1):
poky-lsb: Add libQtOpenGL* to lsb image for all platform

 meta-yocto/conf/distro/poky-lsb.conf         |    2 +-
 meta/recipes-extended/tasks/task-core-lsb.bb |   18 +-----------------
 2 files changed, 2 insertions(+), 18 deletions(-)
#1 lore raw

PATCH 1/1 poky-lsb: Add libQtOpenGL* to lsb image for all platform

From: Xiaofeng Yan <[email protected]>

[YOCTO #1020]
For a lsb image prepared to meet lsb requirement, library "libQtOpenGL" must be included in it \
regardless of whether target platform provide graphic hardware or not?
In poky, meta-xlib is default configuration for libx11.
So qt4opengl can be supported when "meta-xlib" or "meta-dri" is enabled.
Adding libQtOpenGL to all target platform is only suitable in lsb image.
For other image, it depends on whether target platform has graphic function or not.

---
 meta-yocto/conf/distro/poky-lsb.conf         |    2 +-
 meta/recipes-extended/tasks/task-core-lsb.bb |   18 +-----------------
 2 files changed, 2 insertions(+), 18 deletions(-)
meta-yocto/conf/distro/poky-lsb.conf +1 -1
index eb1cf82..29f526d 100644
@@ -6,4 +6,4 @@ DISTROOVERRIDES = "poky:linuxstdbase"
 DISTRO_FEATURES += "pam largefile"
 PREFERRED_PROVIDER_virtual/libx11 = "libx11"
 
-
+QT_GLFLAGS = "-opengl"
meta/recipes-extended/tasks/task-core-lsb.bb +1 -17
index b6c5ae5..a0a359e 100644
@@ -151,6 +151,7 @@ RDEPENDS_task-core-lsb-python-add = "\
 RDEPENDS_task-core-lsb-graphic-add = "\
     libqtcore4 \
     libqtgui4 \
+    libqtopengl4 \
     libqtsql4 \
     libqtsvg4 \
     libqtxml4 \
@@ -170,23 +171,6 @@ RDEPENDS_task-core-lsb-graphic-add = "\
     liberation-fonts \
 "
 
-RDEPENDS_task-core-lsb-graphic-add_qemux86 = "\
-    libqtopengl4 \
-"
-RDEPENDS_task-core-lsb-graphic-add_atom-pc = "\
-    libqtopengl4 \
-"
-RDEPENDS_task-core-lsb-graphic-add_qemuppc = "\
-    libqtopengl4 \
-"
-RDEPENDS_task-core-lsb-graphic-add_emenlow = "\
-    libqtopengl4 \
-"
-
-RDEPENDS_task-core-lsb-graphic-add_mpc8315e-rdb = "\
-    libqtopengl4 \
-"
-
 #    mesa-dri 
 
 RDEPENDS_task-core-lsb-runtime-add = "\
Signature · 1 line
1.7.0.4
#2 lore raw
In reply to Xiaofeng Yan
Quoted 23 lines · Xiaofeng Yan

From: Xiaofeng Yan<[email protected]>

Hi Saul,
[YOCTO #1020]
I know you want to get a new solution to add libQtOpenGL* to image which support graphic function with graphic hardware.
We need learn which platform support graphic function and then we can add libQtOpenGL* to corresponding qt4-x11-free_4.*.bbappend. If a target platform don't support graphic function, then this library should not be added to image.
But for lsb image, as you know, library libQtOpenGL* must be included lsb image to meet lsb requirement. So I summit this patch to fix [YOCTO #1020]. In fact, LSB can run on platform without graphic function when libQtOpenGL*.so* is supported because "meta-xlib" is default conflagration for libX11 in poky. As you know, opengl run on meta-xlib or meta-dri.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: xiaofeng/opengl
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/opengl

Thanks,
Xiaofeng Yan<[email protected]>
---

Xiaofeng Yan (1):
poky-lsb: Add libQtOpenGL* to lsb image for all platform

Quoted 9 lines
  meta-yocto/conf/distro/poky-lsb.conf         |    2 +-
  meta/recipes-extended/tasks/task-core-lsb.bb |   18 +-----------------
  2 files changed, 2 insertions(+), 18 deletions(-)

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

How much testing have you given this especially with the BSPs that do not have mesa-dri as a default?

Also, this should be 2 distinct patch requests, one for oe-core (containing meta/* changes) and the second for poky (containing meta-yocto/* changes).

Thanks
Sau!