Skip to contentSkip to conversation

qtbase: Add basic Qt5 building support

PATCH In review Yen-Chin Lee 2 participants 3 messages Jan 27, 2015 – Feb 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

---
 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend new file +7 -0
new file mode 100644
index 0000000..384df9f
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+QT_CONFIG_FLAGS_append_raspberrypi = " \
+    -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,

Quoted 25 lines · Yen-Chin Lee

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

---
 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend new file +7 -1
new file mode 100644
index 0000000..384df9f
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+QT_CONFIG_FLAGS_append_raspberrypi = " \
+    -device linux-rasp-pi-g++ \
+    -device-option CROSS_COMPILE=${TARGET_PREFIX} \
+    -I${STAGING_DIR_TARGET}${includedir}/interface/vcos/pthreads \
+"
--

1.9.3 (Apple Git-50)

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

First of all please send patches to meta-raspberrypi mailing list (yocto). Use README for additional information.

For whatever reason I can't bake qtbase:
pulse/pulseaudio.h: No such file or directory

|  #include <pulse/pulseaudio.h>
|                               ^
| compilation terminated.
| Makefile:206: recipe for target 'pulseaudio.o' failed
| make: *** [pulseaudio.o] Error 1
| PulseAudio disabled.
| PulseAudio support cannot be enabled due to functionality tests!

Any idea why? Didn't you encounter this issue?

--
Andrei Gherzan

#2 lore raw
Quoted 47 lines · Andrei Gherzan

Hello,

Quoted 25 lines · Yen-Chin Lee

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

---
 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend new file +7 -1
new file mode 100644
index 0000000..384df9f
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+QT_CONFIG_FLAGS_append_raspberrypi = " \
+    -device linux-rasp-pi-g++ \
+    -device-option CROSS_COMPILE=${TARGET_PREFIX} \
+    -I${STAGING_DIR_TARGET}${includedir}/interface/vcos/pthreads \
+"
--

1.9.3 (Apple Git-50)

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

First of all please send patches to meta-raspberrypi mailing list (yocto). Use README for additional information.

For whatever reason I can't bake qtbase:
pulse/pulseaudio.h: No such file or directory

|  #include <pulse/pulseaudio.h>
|                               ^
| compilation terminated.
| Makefile:206: recipe for target 'pulseaudio.o' failed
| make: *** [pulseaudio.o] Error 1
| PulseAudio disabled.
| PulseAudio support cannot be enabled due to functionality tests!
Quoted 1 line

Any idea why? Didn't you encounter this issue?

Last time I build with qt5 is fine, I think it's due to meta-qt5 upstream recently add function to let user to select alsa/pulseaudio.

I'll re-test this and resend it.

--