All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Madieu <j.madieu@expemb.com>
To: yocto@yoctoproject.org
Subject: [meta-raspberrypi][PATCH v3 1/2] qt5: fixed raspberrypi support
Date: Tue,  2 Feb 2016 18:03:57 +0100	[thread overview]
Message-ID: <1454432638-20259-1-git-send-email-j.madieu@expemb.com> (raw)
In-Reply-To: <EC7BC1CD2E085743BB2AE634252C39C17170D3@server.exchange.local>

    Because EGL properties were not defined properly, we always had the following error
        make: *** [egl] Error 1
        | EGL disabled.
        |  The EGL functionality test failed; EGL is required by some QPA plugins to manage cont
        |  You might need to modify the include and library search paths by editing QMAKE_INCDIR

    x11 in DISTRO_FEATURES also produced the following error
        error: 'QAccessible' has not been declared
        |              } else if (QStyleHelper::isInstanceOf(groupBox->styleObject,
        QAccessible::Grouping)) {
        |                                                       ^
        |Makefile:53048: recipe for target '.obj/qgtkstyle.o' failed

    This bbappend definitively fix these bug

Signed-off-by: John Madieu <j.madieu@expemb.com>
---
 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 33 ++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend

diff --git a/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
new file mode 100644
index 0000000..f61cd1d
--- /dev/null
+++ b/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
@@ -0,0 +1,33 @@
+
+# Raspberrypi only need gles2
+PACKAGECONFIG_GL = "gles2"
+
+QT_CONFIG_FLAGS_append = "${@base_contains('DISTRO_FEATURES', 'x11', ' -accessibility ', '', d)}"
+do_configure_prepend_rpi() {
+
+	sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf
+    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
+    cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
+
+
+load(qt_config)
+
+EOF
+}
-- 
1.9.1



  reply	other threads:[~2016-02-02 17:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-02 16:50 [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set GUEYTAT Julien
2016-02-02 17:03 ` John Madieu [this message]
2016-02-02 17:03   ` [meta-raspberrypi][PATCH v3 2/2] layer.conf: avoid to force users to add the qt5 layer because of qtbase bbappend John Madieu
2016-02-03  6:08 ` [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set Khem Raj
2016-02-03  7:40   ` Yannick Kiekens
2016-02-03 11:46     ` GUEYTAT Julien
2016-02-03 14:44       ` Khem Raj
2016-02-03 14:54         ` GUEYTAT Julien
2016-02-03 15:01           ` Khem Raj
2016-02-03 15:23             ` GUEYTAT Julien
2016-02-04  4:37           ` Khem Raj
2016-02-04  9:23             ` GUEYTAT Julien
2016-04-14  7:49               ` GUEYTAT Julien
  -- strict thread matches above, loose matches on Subject: below --
2016-02-02 17:04 [meta-raspberrypi][PATCH v3 1/2] qt5: fixed raspberrypi support John Madieu
2016-01-18 14:13 John Madieu
2016-01-12  1:55 [meta-raspberrypi][PATCH v2 " john madieu
2016-01-12 14:22 ` [meta-raspberrypi][PATCH v3 " John Madieu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1454432638-20259-1-git-send-email-j.madieu@expemb.com \
    --to=j.madieu@expemb.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.