All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH] qtbase: enable Raspberry Pi support
@ 2015-08-22  9:11 Jonathan Liu
  2015-08-24  1:38 ` ***SPAM*** " Herve Jourdain
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Liu @ 2015-08-22  9:11 UTC (permalink / raw)
  To: yocto

[Support #16]

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 recipes-qt/qt5/qtbase_%.bbappend | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase_%.bbappend

diff --git a/recipes-qt/qt5/qtbase_%.bbappend b/recipes-qt/qt5/qtbase_%.bbappend
new file mode 100644
index 0000000..d3d41e2
--- /dev/null
+++ b/recipes-qt/qt5/qtbase_%.bbappend
@@ -0,0 +1,21 @@
+do_configure_prepend_rpi() {
+    if ! grep -q '^EGLFS_' ${S}/mkspecs/linux-oe-g++/qmake.conf; then
+        cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf << 'EOF'
+QMAKE_INCDIR_EGL = $$[QT_SYSROOT]${includedir}/interface/vcos/pthreads \
+                   $$[QT_SYSROOT]${includedir}/interface/vmcs_host/linux
+QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
+QMAKE_LIBS_EGL = -lEGL -lGLESv2
+EOF
+
+        if [ -d ${S}/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm ]; then
+            cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf << 'EOF'
+EGLFS_DEVICE_INTEGRATION = eglfs_brcm
+EOF
+        else
+            cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf << 'EOF'
+EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host
+EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/../devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp
+EOF
+        fi
+    fi
+}
-- 
2.5.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: ***SPAM*** [meta-raspberrypi][PATCH] qtbase: enable Raspberry Pi support
  2015-08-22  9:11 [meta-raspberrypi][PATCH] qtbase: enable Raspberry Pi support Jonathan Liu
@ 2015-08-24  1:38 ` Herve Jourdain
  0 siblings, 0 replies; 2+ messages in thread
From: Herve Jourdain @ 2015-08-24  1:38 UTC (permalink / raw)
  To: 'Jonathan Liu', yocto

Hi,

Same for this one, with either my patch or Khem's patch for the include
files, most of the modifications for the include files and library should
not be needed.
I would recommend adding one of these patches, and making a dependency on
virtual/egl.

What I had to do, though, for qt5, was to add a file:
mkspecs/linux-oe-g++/qeglfshooks_pi.cpp, that would implement raspberrypi
specific hooks for QT.
At least, that was required with the QT version I was using, which might not
be needed with the latest one - I would need to check that further, which is
why I didn't push anything regarding that yet.

Best regards,

Herve

-----Original Message-----
From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org]
On Behalf Of Jonathan Liu
Sent: samedi 22 août 2015 11:11
To: yocto@yoctoproject.org
Subject: ***SPAM*** [yocto] [meta-raspberrypi][PATCH] qtbase: enable
Raspberry Pi support

[Support #16]

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 recipes-qt/qt5/qtbase_%.bbappend | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase_%.bbappend

diff --git a/recipes-qt/qt5/qtbase_%.bbappend
b/recipes-qt/qt5/qtbase_%.bbappend
new file mode 100644
index 0000000..d3d41e2
--- /dev/null
+++ b/recipes-qt/qt5/qtbase_%.bbappend
@@ -0,0 +1,21 @@
+do_configure_prepend_rpi() {
+    if ! grep -q '^EGLFS_' ${S}/mkspecs/linux-oe-g++/qmake.conf; then
+        cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf << 'EOF'
+QMAKE_INCDIR_EGL = $$[QT_SYSROOT]${includedir}/interface/vcos/pthreads \
+                   
+$$[QT_SYSROOT]${includedir}/interface/vmcs_host/linux
+QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL} QMAKE_LIBS_EGL = -lEGL 
+-lGLESv2 EOF
+
+        if [ -d
${S}/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm ]; then
+            cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf << 'EOF'
+EGLFS_DEVICE_INTEGRATION = eglfs_brcm
+EOF
+        else
+            cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf << 'EOF'
+EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host
+EGLFS_PLATFORM_HOOKS_SOURCES = 
+$$PWD/../devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp
+EOF
+        fi
+    fi
+}
--
2.5.0

--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-24  1:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-22  9:11 [meta-raspberrypi][PATCH] qtbase: enable Raspberry Pi support Jonathan Liu
2015-08-24  1:38 ` ***SPAM*** " Herve Jourdain

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.