Skip to contentSkip to conversation

qtbase: Add basic Qt5 building support

PATCH Superseded Yen-Chin Lee 2 participants 4 messages Oct 25, 2014 – Jan 27, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtbase: Add basic Qt5 building support

To build raspberrypi with Qt5, we need to add extra QT_CONFIG_FLAGS to indicate device config.

---
 recipes-qt/qt5/qtbase_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase_%.bbappend
recipes-qt/qt5/qtbase_%.bbappend new file +7 -0
new file mode 100644
index 0000000..c994cf5
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+QT_CONFIG_FLAGS += " \
+    -device linux-rasp-pi-g++ \
+    -device-option CROSS_COMPILE=${TARGET_PREFIX} \
+    -I${STAGING_DIR_TARGET}${includedir}/interface/vcos/pthreads \
+"
Signature · 1 line
1.9.3 (Apple Git-50)
#1 lore raw

Hello Yen,

Quoted 15 lines · Yen-Chin Lee

To build raspberrypi with Qt5, we need to add extra QT_CONFIG_FLAGS to indicate device config.

---
 recipes-qt/qt5/qtbase_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase_%.bbappend
recipes-qt/qt5/qtbase_%.bbappend new file +0 -0
new file mode 100644
index 0000000..c994cf5

recipes-qt/qt5/qtbase_%.bbappend line 7

Quoted 7 lines
recipes-qt/qt5/qtbase_%.bbappend new file +7 -0
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+QT_CONFIG_FLAGS += " \
+    -device linux-rasp-pi-g++ \
+    -device-option CROSS_COMPILE=${TARGET_PREFIX} \
+    -I${STAGING_DIR_TARGET}${includedir}/interface/vcos/pthreads \
+"

If we add this append we need to change the layer dependencies and probably add this package to the test image too. But maybe we can avoid this by using a separate layer specific directory as meta-fsl-arm does with qt5-layer.

Check https://github.com/Freescale/meta-fsl-arm and
https://github.com/Freescale/meta-fsl-arm/blob/master/conf/layer.conf

P.S.: Sorry for this very late reply but I had a very busy period lately. Thanks for understanding.
--
Andrei Gherzan

#2 lore raw

Hello,

Quoted 32 lines · Andrei Gherzan

Hello Yen,

Review

Quoted 10 lines · Yen-Chin Lee

To build raspberrypi with Qt5, we need to add extra QT_CONFIG_FLAGS to indicate device config.

---
 recipes-qt/qt5/qtbase_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase_%.bbappend
(quoted diff) +0 -0

b/recipes-qt/qt5/qtbase_%.bbappend

recipes-qt/qt5/qtbase_%.bbappend line 7

Quoted 12 lines

new file mode 100644
index 0000000..c994cf5

recipes-qt/qt5/qtbase_%.bbappend new file +7 -0
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+QT_CONFIG_FLAGS += " \
+    -device linux-rasp-pi-g++ \
+    -device-option CROSS_COMPILE=${TARGET_PREFIX} \
+    -I${STAGING_DIR_TARGET}${includedir}/interface/vcos/pthreads \
+"

If we add this append we need to change the layer dependencies and probably add
this package to the test image too. But maybe we can avoid this by using a separate layer specific directory as meta-fsl-arm does with qt5-layer.

Quoted 4 lines

Check https://github.com/Freescale/meta-fsl-arm and
https://github.com/Freescale/meta-fsl-arm/blob/master/conf/layer.conf

Do you still work on this? I'm trying to catch up with old patches. Any updates on this one?

Signature · 1 line
*Andrei Gherzan*
#3 lore raw

Hi:

Sorry for the late reply :-S

I'll resend the patch to move it to qt5-layers just like meta-fsl-arm does, just wait for a while :).

Quoted 36 lines · Andrei Gherzan

Hello,

Quoted 32 lines · Andrei Gherzan

Hello Yen,

Review

Quoted 10 lines · Yen-Chin Lee

To build raspberrypi with Qt5, we need to add extra QT_CONFIG_FLAGS to indicate device config.

---
 recipes-qt/qt5/qtbase_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 recipes-qt/qt5/qtbase_%.bbappend
(quoted diff) +0 -0

b/recipes-qt/qt5/qtbase_%.bbappend

recipes-qt/qt5/qtbase_%.bbappend line 7

Quoted 12 lines

new file mode 100644
index 0000000..c994cf5

recipes-qt/qt5/qtbase_%.bbappend new file +7 -0
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+QT_CONFIG_FLAGS += " \
+    -device linux-rasp-pi-g++ \
+    -device-option CROSS_COMPILE=${TARGET_PREFIX} \
+    -I${STAGING_DIR_TARGET}${includedir}/interface/vcos/pthreads \
+"

If we add this append we need to change the layer dependencies and probably add
this package to the test image too. But maybe we can avoid this by using a separate layer specific directory as meta-fsl-arm does with qt5-layer.

Quoted 6 lines
Quoted 4 lines

Check https://github.com/Freescale/meta-fsl-arm and
https://github.com/Freescale/meta-fsl-arm/blob/master/conf/layer.conf

Do you still work on this? I'm trying to catch up with old patches. Any updates on this one?

--
Sent from emacs with mu4e