* [meta-fsl-demos][PATCH] qt-in-automotive-quick-ivi: QT Automotive Quick IVI Demo
@ 2013-03-01 16:13 Leonardo Sandoval
2013-03-01 16:56 ` Otavio Salvador
0 siblings, 1 reply; 3+ messages in thread
From: Leonardo Sandoval @ 2013-03-01 16:13 UTC (permalink / raw)
To: meta-freescale
Introduces a new recipe to construct the QT Automotive Quick IVI demo.
Tested on i.MX6 Sabre SD with a fsl-image-gui image. Notes: 1) Currently
there is no icon on the main desktop, so execution of the demo
has to be either from the console (DISPLAY=0:0 /usr/bin/ConnectedCarIVI)
or from File Manager; another patch is needed to introduced the icon
2) All demo filenames containing spaces were renamed, spaces were replaced
by undescores, so not all icons/images will be shown
on the demo; another patch is needed to correct this issue.
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@freescale.com>
---
.../packagegroup/packagegroup-qt-in-use-demos.bb | 3 +-
recipes-qt/qt-in-use/qt-in-automotive-common.inc | 22 ++++++++++++++++++++
.../qt-in-use/qt-in-automotive-quick-ivi_git.bb | 20 ++++++++++++++++++
3 files changed, 44 insertions(+), 1 deletions(-)
create mode 100644 recipes-qt/qt-in-use/qt-in-automotive-common.inc
create mode 100644 recipes-qt/qt-in-use/qt-in-automotive-quick-ivi_git.bb
diff --git a/recipes-qt/packagegroup/packagegroup-qt-in-use-demos.bb b/recipes-qt/packagegroup/packagegroup-qt-in-use-demos.bb
index 3c84b00..9cf7e7d 100644
--- a/recipes-qt/packagegroup/packagegroup-qt-in-use-demos.bb
+++ b/recipes-qt/packagegroup/packagegroup-qt-in-use-demos.bb
@@ -10,4 +10,5 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
inherit packagegroup
RDEPENDS_${PN} = " \
- qt-in-industrial-embedded-smarthome"
+ qt-in-industrial-embedded-smarthome \
+ qt-in-automotive-quick-ivi"
diff --git a/recipes-qt/qt-in-use/qt-in-automotive-common.inc b/recipes-qt/qt-in-use/qt-in-automotive-common.inc
new file mode 100644
index 0000000..a996ae7
--- /dev/null
+++ b/recipes-qt/qt-in-use/qt-in-automotive-common.inc
@@ -0,0 +1,22 @@
+DESCRIPTION = "Demos and enhancements from the automotive sector"
+
+inherit autotools
+
+PV = "0.0+gitr${SRCPV}"
+SRCREV = "6c8bacc929cf7549de8962ae6462a236f75571d0"
+SRC_URI = "git://gitorious.org/qt-in-use/qt-in-automotive.git"
+
+PR = "r0"
+
+S = "${WORKDIR}/git/${DEMO}"
+
+do_configure_prepend() {
+ # fix qmake ugly deployment support
+ find ${S} -type f -exec sed -i 's,/usr/local,/usr,g' '{}' ';'
+
+}
+
+RDEPENDS_${PN} += " \
+ ${QT_BASE_NAME}-qml-plugins \
+ ${QT_BASE_NAME}-plugin-imageformat-svg \
+"
diff --git a/recipes-qt/qt-in-use/qt-in-automotive-quick-ivi_git.bb b/recipes-qt/qt-in-use/qt-in-automotive-quick-ivi_git.bb
new file mode 100644
index 0000000..98de439
--- /dev/null
+++ b/recipes-qt/qt-in-use/qt-in-automotive-quick-ivi_git.bb
@@ -0,0 +1,20 @@
+require qt-in-automotive-common.inc
+
+LICENSE = "TPLA"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f7f3422e093a2b8e49cb5efac1b7ab47"
+
+DEMO = "qt-quick-ivi-demo"
+
+do_install_append () {
+ # Ugly hack to replace spaces on data files.
+ # if not done, bitbake hangs on populate_sysroot task
+ for i in `find ${D}${datadir} -name '* *' | tr ' ' '~'`; do
+ mv "$(echo $i| tr '~' ' ')" "$(echo $i | tr '~' '_')";
+ done
+}
+
+inherit qt4x11
+
+FILES_${PN} += "${datadir}/ConnectedCarIVI ${datadir}/icons"
+
+EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-fsl-demos][PATCH] qt-in-automotive-quick-ivi: QT Automotive Quick IVI Demo
2013-03-01 16:13 [meta-fsl-demos][PATCH] qt-in-automotive-quick-ivi: QT Automotive Quick IVI Demo Leonardo Sandoval
@ 2013-03-01 16:56 ` Otavio Salvador
2013-03-01 17:40 ` Sandoval Gonzalez Leonardo-B42214
0 siblings, 1 reply; 3+ messages in thread
From: Otavio Salvador @ 2013-03-01 16:56 UTC (permalink / raw)
To: Leonardo Sandoval; +Cc: meta-freescale
On Fri, Mar 1, 2013 at 1:13 PM, Leonardo Sandoval
<leonardo.sandoval@freescale.com> wrote:
> Introduces a new recipe to construct the QT Automotive Quick IVI demo.
> Tested on i.MX6 Sabre SD with a fsl-image-gui image.
> Notes: 1) Currently
> there is no icon on the main desktop, so execution of the demo
> has to be either from the console (DISPLAY=0:0 /usr/bin/ConnectedCarIVI)
> or from File Manager; another patch is needed to introduced the icon
Can you postpone this and resend it with the proper icon added?
> 2) All demo filenames containing spaces were renamed, spaces were replaced
> by undescores, so not all icons/images will be shown
> on the demo; another patch is needed to correct this issue.
Why this was need? In case it was a workaround we may try to fix the
real problem and avoid patching the code.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-fsl-demos][PATCH] qt-in-automotive-quick-ivi: QT Automotive Quick IVI Demo
2013-03-01 16:56 ` Otavio Salvador
@ 2013-03-01 17:40 ` Sandoval Gonzalez Leonardo-B42214
0 siblings, 0 replies; 3+ messages in thread
From: Sandoval Gonzalez Leonardo-B42214 @ 2013-03-01 17:40 UTC (permalink / raw)
To: Otavio Salvador; +Cc: meta-freescale
Hi Otavio.
Comments inline
On Fri, Mar 1, 2013 at 1:13 PM, Leonardo Sandoval
<leonardo.sandoval@freescale.com> wrote:
> Introduces a new recipe to construct the QT Automotive Quick IVI demo.
> Tested on i.MX6 Sabre SD with a fsl-image-gui image.
> Notes: 1) Currently
> there is no icon on the main desktop, so execution of the demo
> has to be either from the console (DISPLAY=0:0 /usr/bin/ConnectedCarIVI)
> or from File Manager; another patch is needed to introduced the icon
Can you postpone this and resend it with the proper icon added?
Leonardo. Sure, I do that.
> 2) All demo filenames containing spaces were renamed, spaces were replaced
> by undescores, so not all icons/images will be shown
> on the demo; another patch is needed to correct this issue.
Why this was need? In case it was a workaround we may try to fix the
real problem and avoid patching the code.
Leonardo. It was needed because a sub-process (populate_sysroot) execution was hanging, so the bitbake process in turn was hanging. So, the hack was to remove blanks into underscores for some files. I was thinking of adding a build_append function to do the opposite
(underscore to spaces) but this is also a bit hacky. The real fix would be in the poky layer, I believe.
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-01 17:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-01 16:13 [meta-fsl-demos][PATCH] qt-in-automotive-quick-ivi: QT Automotive Quick IVI Demo Leonardo Sandoval
2013-03-01 16:56 ` Otavio Salvador
2013-03-01 17:40 ` Sandoval Gonzalez Leonardo-B42214
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.