svn commit: trunk/buildroot/package/qtopia4
Author: jacmet
Date: 2008-10-28 02:40:25 -0700 (Tue, 28 Oct 2008) New Revision: 23827
Log:
qtopia4: fix use of pkg-config
When cross compiling, Qt sets PKG_CONFIG in its own configure script to an empty string. That leads to not using pkg-config. To avoid that, use the configure option -force-pkg-config. Also set environment variables for pkg-config defined in TARGET_CONFIGURE_OPTS.
Patch by Markus Heidelberg.
See http://buildroot.uclibc.org/lists/buildroot/2008-October/011324.html
for more details.
Modified:
trunk/buildroot/package/qtopia4/qtopia4.mk
Changeset:
Modified: trunk/buildroot/package/qtopia4/qtopia4.mk
===================================================================
buildroot/package/qtopia4/qtopia4.mk +6 -1
@@ -253,10 +253,15 @@ -[ -f $(QTOPIA4_QCONFIG_FILE) ] && cp $(QTOPIA4_QCONFIG_FILE) \ $(QTOPIA4_TARGET_DIR)/$(QTOPIA4_QCONFIG_FILE_LOCATION) +# Qt doesn't use PKG_CONFIG, it searches for pkg-config with 'which'. +# PKG_CONFIG_SYSROOT is only used to avoid a warning from Qt's configure system +# when cross compiling, Qt 4.4.3 is wrong here. (cd $(QTOPIA4_TARGET_DIR); rm -rf config.cache; \ - PATH=$(TARGET_PATH) \ + $(TARGET_CONFIGURE_OPTS) \ + PKG_CONFIG_SYSROOT="$(STAGING_DIR)" \ ./configure \ -verbose \ + -force-pkg-config \ -embedded $(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM) \ $(QTOPIA4_QCONFIG_COMMAND) \ $(QTOPIA4_CONFIGURE) \
This breaks building Qt for AVR32. It will force qmake to be build for the target so its unusable later on.
-----Original Message-----
From: [email protected] on behalf of jacmet at uclibc.org
Sent: Tue 10/28/2008 9:40 AM
To: buildroot at uclibc.org
Subject: [Buildroot] svn commit: trunk/buildroot/package/qtopia4
Author: jacmet
Date: 2008-10-28 02:40:25 -0700 (Tue, 28 Oct 2008) New Revision: 23827
Log:
qtopia4: fix use of pkg-config
When cross compiling, Qt sets PKG_CONFIG in its own configure script to an empty string. That leads to not using pkg-config. To avoid that, use the configure option -force-pkg-config. Also set environment variables for pkg-config defined in TARGET_CONFIGURE_OPTS.
Patch by Markus Heidelberg.
See http://buildroot.uclibc.org/lists/buildroot/2008-October/011324.html
for more details.
Modified:
trunk/buildroot/package/qtopia4/qtopia4.mk
Changeset:
Modified: trunk/buildroot/package/qtopia4/qtopia4.mk
===================================================================
buildroot/package/qtopia4/qtopia4.mk +6 -1
@@ -253,10 +253,15 @@ -[ -f $(QTOPIA4_QCONFIG_FILE) ] && cp $(QTOPIA4_QCONFIG_FILE) \ $(QTOPIA4_TARGET_DIR)/$(QTOPIA4_QCONFIG_FILE_LOCATION) +# Qt doesn't use PKG_CONFIG, it searches for pkg-config with 'which'. +# PKG_CONFIG_SYSROOT is only used to avoid a warning from Qt's configure system +# when cross compiling, Qt 4.4.3 is wrong here. (cd $(QTOPIA4_TARGET_DIR); rm -rf config.cache; \ - PATH=$(TARGET_PATH) \ + $(TARGET_CONFIGURE_OPTS) \ + PKG_CONFIG_SYSROOT="$(STAGING_DIR)" \ ./configure \ -verbose \ + -force-pkg-config \ -embedded $(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM) \ $(QTOPIA4_QCONFIG_COMMAND) \ $(QTOPIA4_CONFIGURE) \
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3596 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20081029/8bed3fde/attachment.bin
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnar" == Arnar Mar Sigur?sson <[email protected]> writes:
Hi,
Arnar> This breaks building Qt for AVR32. It will force qmake to be Arnar> build for the target so its unusable later on.
Ok, I don't do Qt nor AVR32 - Markus, Thomas?
Signature · 1 line
Bye, Peter Korsgaard
Quoted 9 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnar" == Arnar Mar Sigur?sson <[email protected]> writes:
Hi,
Arnar> This breaks building Qt for AVR32. It will force qmake to be Arnar> build for the target so its unusable later on.
Ok, I don't do Qt nor AVR32 - Markus, Thomas?
I didn't try it either myself yet as I'm kind busy working on some other stuff, but the patch seams ok to me.
I do quite a bit of AVR32 and Qt. The sed just edits the qmake.conf that qmake uses to generate the makefiles for qt and applications that use it. qmake itself is usually built using a simpler Makefile to go around the chicken egg issue.
The PKG_CONFIG_SYSROOT part is that I'm not quite sure. Is that the part that breaks it Amar?
Kind Regards,
Thiago A. Correa
r23828 - the sed changes are good (i remember being hit by this some timeago and had to edit that file by hand) r23827 - the pkg config changes on the other hand break it. After reverting that i'm able to build 4.4.3 and 4.5.0-tp1.
Greets
Arnar Mar Sig
-----Original Message-----
From: Thiago A. Corr?a [mailto:thiago.correa at gmail.com]
Sent: Wed 10/29/2008 4:01 PM
To: Peter Korsgaard
Cc: Arnar Mar Sigur?sson; buildroot at uclibc.org; markus.heidelberg at web.de
Subject: Re: [Buildroot] svn commit: trunk/buildroot/package/qtopia4
Quoted 9 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnar" == Arnar Mar Sigur?sson <[email protected]> writes:
Hi,
Arnar> This breaks building Qt for AVR32. It will force qmake to be Arnar> build for the target so its unusable later on.
Ok, I don't do Qt nor AVR32 - Markus, Thomas?
I didn't try it either myself yet as I'm kind busy working on some other stuff, but the patch seams ok to me.
I do quite a bit of AVR32 and Qt. The sed just edits the qmake.conf that qmake uses to generate the makefiles for qt and applications that use it. qmake itself is usually built using a simpler Makefile to go around the chicken egg issue.
The PKG_CONFIG_SYSROOT part is that I'm not quite sure. Is that the part that breaks it Amar?
Kind Regards,
Thiago A. Correa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20081029/5e9ab0b7/attachment.htm
Peter Korsgaard, 29.10.2008:
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnar" == Arnar Mar Sigur?sson <[email protected]> writes:
Hi,
Arnar> This breaks building Qt for AVR32. It will force qmake to be Arnar> build for the target so its unusable later on.
Ok, I don't do Qt nor AVR32 - Markus, Thomas?
Sorry for this. I'm a bit ashamed, as I use AVR32 myself. I used it at the office on the AVR32, but after the PKG_CONFIG cleanup the day before I decided to introduce TARGET_CONFIGURE_OPTS at home and only tested it for i386.
Please try the patch I just sent, Arnar. It fixes it for me on AVR32 and should fix it for you, too.
Markus