* [RFC][PATCH] qt4: add target qmake to qt4-tools package
@ 2011-05-11 23:42 Ilya Yanok
2011-05-13 10:17 ` Paul Eggleton
0 siblings, 1 reply; 9+ messages in thread
From: Ilya Yanok @ 2011-05-11 23:42 UTC (permalink / raw)
To: poky; +Cc: Ilya Yanok
Target qmake is needed to build Qt program natively on target.
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
---
Hello everybody,
I've just found that we don't have qmake in any target package. Still
qmake is necessary to build Qt applications natively on the target.
This patch tries to address this by calling qmake and make in the qmake
subdirectory after the main build. I'm not sure if it's a perfect
solution though. Any comments are welcome.
BTW, also I've found that qt4-tools and qt4-embedded-tools packages
contain the same files (I'm not sure if the actual programs are the
same but at least filenames are). Isn't it a problem?
Regards, Ilya.
meta/recipes-qt/qt4/qt-4.6.3.inc | 2 ++
meta/recipes-qt/qt4/qt-4.7.2.inc | 2 ++
meta/recipes-qt/qt4/qt4.inc | 7 ++-----
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/meta/recipes-qt/qt4/qt-4.6.3.inc b/meta/recipes-qt/qt4/qt-4.6.3.inc
index 37a15f1..8f8fcc3 100644
--- a/meta/recipes-qt/qt4/qt-4.6.3.inc
+++ b/meta/recipes-qt/qt4/qt-4.6.3.inc
@@ -54,4 +54,6 @@ do_compile() {
unset CFLAGS CXXFLAGS
oe_runmake ${EXTRA_ENV}
+ # build qmake for target
+ (cd qmake; QMAKESPEC=${S}/mkspecs/${TARGET_OS}-oe-g++ ../bin/qmake; oe_runmake ${EXTRA_ENV})
}
diff --git a/meta/recipes-qt/qt4/qt-4.7.2.inc b/meta/recipes-qt/qt4/qt-4.7.2.inc
index 0f75a46..e07d7da 100644
--- a/meta/recipes-qt/qt4/qt-4.7.2.inc
+++ b/meta/recipes-qt/qt4/qt-4.7.2.inc
@@ -56,4 +56,6 @@ do_compile() {
install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease
oe_runmake ${EXTRA_ENV}
+ # build qmake for target
+ (cd qmake; QMAKESPEC=${S}/mkspecs/${TARGET_OS}-oe-g++ ../bin/qmake; oe_runmake ${EXTRA_ENV})
}
diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc
index b86f89f..8a6e91a 100644
--- a/meta/recipes-qt/qt4/qt4.inc
+++ b/meta/recipes-qt/qt4/qt4.inc
@@ -124,8 +124,8 @@ RRECOMMENDS_${QT_BASE_NAME}-examples += " \
${QT_BASE_NAME}-plugin-sqldriver-sqlite \
${QT_BASE_NAME}-plugin-imageformat-jpeg"
-FILES_${QT_BASE_NAME}-tools = "${bindir}/uic* ${bindir}/moc ${bindir}/rcc ${bindir}/qttracereplay ${bindir}/qdoc*"
-FILES_${QT_BASE_NAME}-tools-dbg = "${bindir}/.debug/uic* ${bindir}/.debug/moc ${bindir}/.debug/rcc ${bindir}/.debug/qttracereplay ${bindir}/.debug/qdoc*"
+FILES_${QT_BASE_NAME}-tools = "${bindir}/uic* ${bindir}/moc ${bindir}/rcc ${bindir}/qttracereplay ${bindir}/qdoc* ${bindir}/qmake"
+FILES_${QT_BASE_NAME}-tools-dbg = "${bindir}/.debug/uic* ${bindir}/.debug/moc ${bindir}/.debug/rcc ${bindir}/.debug/qttracereplay ${bindir}/.debug/qdoc* ${bindir}/.debug/qmake"
FILES_${QT_BASE_NAME}-assistant = "${bindir}/*assistant* ${bindir}/qcollectiongenerator ${bindir}/qhelpconverter ${bindir}/qhelpgenerator"
FILES_${QT_BASE_NAME}-assistant-dbg = "${bindir}/.debug/*assistant* ${bindir}/.debug/qcollectiongenerator ${bindir}/.debug/qhelpconverter ${bindir}/.debug/qhelpgenerator"
FILES_${QT_BASE_NAME}-common = "${bindir}/qtconfig"
@@ -264,9 +264,6 @@ python populate_packages_prepend() {
do_install() {
oe_runmake install INSTALL_ROOT=${D}
- # These are host binaries, we should only use them in staging
- rm -rf ${D}/${bindir}/qmake
-
# fix pkgconfig, libtool and prl files
sed -i -e s#-L${S}/lib##g \
-e s#-L${STAGING_LIBDIR}##g \
--
1.7.4.4
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [poky] [RFC][PATCH] qt4: add target qmake to qt4-tools package
2011-05-11 23:42 [RFC][PATCH] qt4: add target qmake to qt4-tools package Ilya Yanok
@ 2011-05-13 10:17 ` Paul Eggleton
0 siblings, 0 replies; 9+ messages in thread
From: Paul Eggleton @ 2011-05-13 10:17 UTC (permalink / raw)
To: poky; +Cc: Ilya Yanok, openembedded-core
This exclusion of qmake of course comes from OE, and I'm not sure but I'm
guessing the reason this was not installed is because qmake is already
provided by the qmake2 package in OE. We don't have that currently in oe-core
and the question is do we want to bring that over rather than simply
installing it as part of qt4*tools?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC][PATCH] qt4: add target qmake to qt4-tools package
@ 2011-05-13 10:17 ` Paul Eggleton
0 siblings, 0 replies; 9+ messages in thread
From: Paul Eggleton @ 2011-05-13 10:17 UTC (permalink / raw)
To: poky; +Cc: Ilya Yanok, openembedded-core
This exclusion of qmake of course comes from OE, and I'm not sure but I'm
guessing the reason this was not installed is because qmake is already
provided by the qmake2 package in OE. We don't have that currently in oe-core
and the question is do we want to bring that over rather than simply
installing it as part of qt4*tools?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [poky] [RFC][PATCH] qt4: add target qmake to qt4-tools package
2011-05-13 10:17 ` Paul Eggleton
@ 2011-05-13 11:05 ` Koen Kooi
-1 siblings, 0 replies; 9+ messages in thread
From: Koen Kooi @ 2011-05-13 11:05 UTC (permalink / raw)
To: Paul Eggleton
Cc: poky@yoctoproject.org, Ilya Yanok,
openembedded-core@lists.openembedded.org
Putting it in qttools would be fine by me
Op 13 mei 2011 om 12:17 heeft Paul Eggleton <paul.eggleton@linux.intel.com> het volgende geschreven:
> This exclusion of qmake of course comes from OE, and I'm not sure but I'm
> guessing the reason this was not installed is because qmake is already
> provided by the qmake2 package in OE. We don't have that currently in oe-core
> and the question is do we want to bring that over rather than simply
> installing it as part of qt4*tools?
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [RFC][PATCH] qt4: add target qmake to qt4-tools package
@ 2011-05-13 11:05 ` Koen Kooi
0 siblings, 0 replies; 9+ messages in thread
From: Koen Kooi @ 2011-05-13 11:05 UTC (permalink / raw)
To: Paul Eggleton
Cc: poky@yoctoproject.org, Ilya Yanok,
openembedded-core@lists.openembedded.org
Putting it in qttools would be fine by me
Op 13 mei 2011 om 12:17 heeft Paul Eggleton <paul.eggleton@linux.intel.com> het volgende geschreven:
> This exclusion of qmake of course comes from OE, and I'm not sure but I'm
> guessing the reason this was not installed is because qmake is already
> provided by the qmake2 package in OE. We don't have that currently in oe-core
> and the question is do we want to bring that over rather than simply
> installing it as part of qt4*tools?
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [poky] [RFC][PATCH] qt4: add target qmake to qt4-tools package
2011-05-13 11:05 ` Koen Kooi
(?)
@ 2011-05-13 11:46 ` Otavio Salvador
2011-05-13 12:25 ` [OE-core] " Ilya Yanok
-1 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2011-05-13 11:46 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: Paul Eggleton, poky@yoctoproject.org, Ilya Yanok
On Fri, May 13, 2011 at 08:05, Koen Kooi <koen@dominion.thruhere.net> wrote:
> Putting it in qttools would be fine by me
It would be much better to use qt4-native as being done on OE dev currently.
--
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] 9+ messages in thread
* Re: [poky] [RFC][PATCH] qt4: add target qmake to qt4-tools package
2011-05-13 11:46 ` [poky] " Otavio Salvador
@ 2011-05-13 12:25 ` Ilya Yanok
0 siblings, 0 replies; 9+ messages in thread
From: Ilya Yanok @ 2011-05-13 12:25 UTC (permalink / raw)
To: Otavio Salvador
Cc: Paul Eggleton, poky@yoctoproject.org,
Patches and discussions about the oe-core layer
Hi Otavio,
On 13.05.2011 15:46, Otavio Salvador wrote:
> On Fri, May 13, 2011 at 08:05, Koen Kooi <koen@dominion.thruhere.net> wrote:
>> Putting it in qttools would be fine by me
>
> It would be much better to use qt4-native as being done on OE dev currently.
To use qt4-native for what? We are talking about _target_ version of
qmake which is currently not provided by any package...
Regards, Ilya.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [RFC][PATCH] qt4: add target qmake to qt4-tools package
@ 2011-05-13 12:25 ` Ilya Yanok
0 siblings, 0 replies; 9+ messages in thread
From: Ilya Yanok @ 2011-05-13 12:25 UTC (permalink / raw)
To: Otavio Salvador
Cc: Paul Eggleton, poky@yoctoproject.org,
Patches and discussions about the oe-core layer
Hi Otavio,
On 13.05.2011 15:46, Otavio Salvador wrote:
> On Fri, May 13, 2011 at 08:05, Koen Kooi <koen@dominion.thruhere.net> wrote:
>> Putting it in qttools would be fine by me
>
> It would be much better to use qt4-native as being done on OE dev currently.
To use qt4-native for what? We are talking about _target_ version of
qmake which is currently not provided by any package...
Regards, Ilya.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [poky] [RFC][PATCH] qt4: add target qmake to qt4-tools package
2011-05-13 12:25 ` [OE-core] " Ilya Yanok
(?)
@ 2011-05-13 12:27 ` Otavio Salvador
-1 siblings, 0 replies; 9+ messages in thread
From: Otavio Salvador @ 2011-05-13 12:27 UTC (permalink / raw)
To: Ilya Yanok
Cc: Paul Eggleton, poky@yoctoproject.org,
Patches and discussions about the oe-core layer
On Fri, May 13, 2011 at 09:25, Ilya Yanok <yanok@emcraft.com> wrote:
> To use qt4-native for what? We are talking about _target_ version of
> qmake which is currently not provided by any package...
Oh ok; I missed this.
--
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] 9+ messages in thread
end of thread, other threads:[~2011-05-13 13:08 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-11 23:42 [RFC][PATCH] qt4: add target qmake to qt4-tools package Ilya Yanok
2011-05-13 10:17 ` [poky] " Paul Eggleton
2011-05-13 10:17 ` Paul Eggleton
2011-05-13 11:05 ` [poky] " Koen Kooi
2011-05-13 11:05 ` Koen Kooi
2011-05-13 11:46 ` [poky] " Otavio Salvador
2011-05-13 12:25 ` Ilya Yanok
2011-05-13 12:25 ` [OE-core] " Ilya Yanok
2011-05-13 12:27 ` [poky] " Otavio Salvador
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.