[Buildroot] [PATCH v6 10/10] package/qt5base: provide "qt.conf" to make "qmake" relocatable

Wolfgang Grandegger wg at grandegger.com
Wed Jul 5 10:28:14 UTC 2017


Am 05.07.2017 um 11:30 schrieb Wolfgang Grandegger:
> Hello Arnout,
> 
> Am 05.07.2017 um 10:59 schrieb Arnout Vandecappelle:
>>   Hi Wolfgang,
>>
>> On 04-07-17 18:22, Wolfgang Grandegger wrote:
>>> The file "qt.conf" can be used to override the hard-coded paths that are
>>> compiled into the Qt library. We need it to make "qmake" relocatable.
>>
>>   All qt5 packages are failing because of this, e.g.
>> http://autobuild.buildroot.net/results/33e/33eb7b7ef7d232bed2432d1d44fd80a4fc8c4e2d 
>>
>>
>> qt5serialport: installs files in
>> /accts/mlweber1/instance-2/output/host/usr/x86_64-buildroot-linux-uclibc/sysroot//accts/mlweber1/instance-2/output 
>>
>>
>>
>>   Can you have a look?
> 
> I know the problem! The patched used an old version (from an old series) 
> of "qt.conf.in"..., sorry!

The patch is reverted now. So just for the records, the patch below
fixes the problem. I'm going to provide a proper patch with my next
series. This also shows, that if "qt.conf" is in place, it's active and
will always overwrite the pathes compiled into qmake... which will break
the idea of "make sdk" somehow.

>From 934dce2df02f26a894140b70991680e0797f11cd Mon Sep 17 00:00:00 2001
From: Wolfgang Grandegger <wg at grandegger.com>
Date: Wed, 5 Jul 2017 11:33:04 +0200
Subject: [PATCH] package/qt5base: provide proper "qt.conf.in" to make "qmake"
 relocatable

We need to specify all variables to overwrite the compiled in values.

Signed-off-by: Wolfgang Grandegger <wg at grandegger.com>
---
 package/qt5/qt5base/qt.conf.in | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/package/qt5/qt5base/qt.conf.in b/package/qt5/qt5base/qt.conf.in
index 48e4b92..67ae04d 100644
--- a/package/qt5/qt5base/qt.conf.in
+++ b/package/qt5/qt5base/qt.conf.in
@@ -2,5 +2,18 @@
 Prefix=@@HOST_DIR@@/usr
 Sysroot=@@STAGING_DIR@@
 Headers=/usr/include/qt5
+Libraries=/usr/lib
+LibraryExecutables=/usr/libexec
+Binaries=/usr/bin
 Plugins=/usr/lib/qt/plugins
 Examples=/usr/lib/qt/examples
+Qml2Imports=/usr/qml
+Imports=/usr/imports
+Translations=/usr/translations
+Examples=/usr/lib/qt/examples
+Demos=/usr/lib/qt/examples
+Tests=/usr/tests
+Settings=/usr
+Documentation=/usr/doc
+ArchData=/usr
+Data=/usr
-- 
1.9.1


Wolfgang.


More information about the buildroot mailing list