Skip to contentSkip to conversation

New: qt package moc, uic, rcc read from wrong place

Buildroot bugzilla at busybox.net 1 participant 6 messages Apr 14, 2012 – Apr 28, 2012

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=5102

Summary: qt package moc, uic, rcc read from wrong place
Product: buildroot
Version: 2012.02
Platform: Other
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: mehsamadi at yahoo.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

when cross compiling qt, building application with cross compiled qmake creates a wrong location for moc, uic, and rcc in Makefile.
qmake expect finding moc in host/usr/arm-unknown-linux-uclibcgnueabi/usr/bin/ while the actual files are located in the host/usr/bin/

I compiled this with 2011.11 and it was ok. I guess this is something that is introduced in 2012.02.

Thank you
sorry for bad english. :-)

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 5102] qt package moc, uic, rcc read from wrong place

https://bugs.busybox.net/show_bug.cgi?id=5102

--- Comment #1 from Thomas Petazzoni <[email protected]> 2012-04-14 16:47:09 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 <[email protected]>
Date:   Thu Feb 9 21:20:12 2012 +0100

qt: needs host-pkg-config

Closes #4760

package/qt/qt.mk +1 -1
index 28a477a..34f05f9 100644
@@ -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) <[email protected]>
Date:   Fri Jan 27 00:41:30 2012 +0100

qt: qt-dbus: replace dependency on dbus by select

package/qt/Config.in +1 -4
index ab231d9..3a552d0 100644
@@ -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.
 
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 5102] qt package moc, uic, rcc read from wrong place

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5102

--- Comment #2 from mehdi <[email protected]> 2012-04-15 05:32:58 UTC --- Created attachment 4274
--> https://bugs.busybox.net/attachment.cgi?id=4274
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 :-).

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 5102] qt package moc, uic, rcc read from wrong place

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5102

--- Comment #3 from Thomas Petazzoni <[email protected]> 2012-04-25 15:40:54 UTC --- 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.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 5102] qt package moc, uic, rcc read from wrong place

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5102

--- Comment #4 from mehdi <[email protected]> 2012-04-28 19:49:30 UTC --- thanx that solved the problem. :-)

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 5102] qt package moc, uic, rcc read from wrong place

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5102

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #5 from Thomas Petazzoni <[email protected]> 2012-04-28 20:24:42 UTC --- Thanks for reporting. Marking the bugs as fixed, worksforme.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.