| Summary: | qt package moc, uic, rcc read from wrong place | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | mehdi <mehsamadi> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | minor | CC: | buildroot |
| Priority: | P5 | ||
| Version: | 2012.02 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | qt cross compile log | ||
|
Description
mehdi
2012-04-14 11:54:23 UTC
That seems strange, because there were only two commits relative to the Qt package between 2011.11 and 2012.12 and none of them could have affected the location of moc, uic, rcc, etc. Can you please post the Buildroot configuration you're using, and the build errors you have (full build log would be nice) ? The following two commits that took place are: commit 1e39b8a6ff5ba330688bc1a60d1e509d716b6900 Author: Frederik Pasch <fpasch@googlemail.com> Date: Thu Feb 9 21:20:12 2012 +0100 qt: needs host-pkg-config Closes #4760 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> diff --git a/package/qt/qt.mk b/package/qt/qt.mk index 28a477a..34f05f9 100644 --- a/package/qt/qt.mk +++ b/package/qt/qt.mk @@ -15,7 +15,7 @@ QT_VERSION = 4.7.4 QT_SOURCE = qt-everywhere-opensource-src-$(QT_VERSION).tar.gz QT_SITE = http://get.qt.nokia.com/qt/source - +QT_DEPENDENCIES = host-pkg-config QT_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_QT_LICENSE_APPROVED),y) commit d018125508c1d13f69b71702384c00c7095986a1 Author: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Date: Fri Jan 27 00:41:30 2012 +0100 qt: qt-dbus: replace dependency on dbus by select Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> diff --git a/package/qt/Config.in b/package/qt/Config.in index ab231d9..3a552d0 100644 --- a/package/qt/Config.in +++ b/package/qt/Config.in @@ -280,12 +280,9 @@ config BR2_PACKAGE_QT_PHONON_BACKEND If unsure, say n. endif -comment "Qt Dbus module not available (needs dbus)" - depends on !BR2_PACKAGE_DBUS - config BR2_PACKAGE_QT_DBUS bool "DBus Module" - depends on BR2_PACKAGE_DBUS + select BR2_PACKAGE_DBUS help Build the Qt DBus module. Created attachment 4274 [details]
qt cross compile log
Buildroot compilation have no error but when I try to cross compile a qt application it gives me an error. I tried to cross compile spreadsheet example of qt. I set QMAKESPEC=/arm-linux-qt/mkspecs/qws/linux-arm-g++. Here is the Makefile that qmake created( qmake.Makefile ).
I followed it to qt compilation and the config.status( buildroot.qt.config.status) of qt source has this :
-hostprefix /home/emb/projects/logger/build-tools/buildroot-2012.02/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot
that could be the cause.
here is the cross compilation commands and the error:
qt-book/chap03/spreadsheet> /arm-linux-qt/bin/qmake -project
qt-book/chap03/spreadsheet> /arm-linux-qt/bin/qmake spreadsheet.pro
qt-book/chap03/spreadsheet> make
buildroot-2012.02/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/bin/uic gotocelldialog.ui -o ui_gotocelldialog.h
make: buildroot-2012.02/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/bin/uic: Command not found
make: *** [ui_gotocelldialog.h] Error 127
if I copy uic and moc and rcc to buildroot-2012.02/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/bin/ from buildroot-2012.02/output/host/usr/bin
it compiles fine. But with same configuration by suing 2011.11 version It tries to run uic and all from correct place.
Thanx for your time and great job with buildroot :-).
I think you're using the wrong qmake. You should be executing the qmake from output/host/usr/bin/qmake. I'll try to find the source code of your example and build it. thanx that solved the problem. :-) Thanks for reporting. Marking the bugs as fixed, worksforme. |