From 3cf0bbb8e1113376d5b5b26ecff362e180a180fd Mon Sep 17 00:00:00 2001 From: Jeroen Hofstee Date: Tue, 21 Nov 2017 10:51:24 +0100 Subject: [PATCH] qtbase_git: install qt.conf for the target The build-in qmake settings point to the sysroots on the host machine. Running qmake on the target hence errors with: Could not find qmake configuration file linux-oe-g++. Error processing project file So add qt.conf to the target image with the correct locations. Signed-off-by: Jeroen Hofstee Signed-off-by: Martin Jansa --- classes/qmake5_base.bbclass | 29 +++++++++++++++++++++++++++++ recipes-qt/qt5/qtbase_git.bb | 2 ++ 2 files changed, 31 insertions(+) diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass index 3bc1279..8f1d143 100644 --- a/classes/qmake5_base.bbclass +++ b/classes/qmake5_base.bbclass @@ -48,6 +48,35 @@ export OE_QMAKE_QTCONF_PATH = "${WORKDIR}/qt.conf" inherit qmake5_paths remove-libtool +generate_target_qt_config_file() { + qtconf="$1" + cat > "${qtconf}" <> $conf echo "isEmpty(QMAKE_LFLAGS): QMAKE_LFLAGS = ${OE_QMAKE_LDFLAGS}" >> $conf echo "isEmpty(QMAKE_STRIP): QMAKE_STRIP = ${TARGET_PREFIX}strip" >> $conf + + generate_target_qt_config_file ${D}${OE_QMAKE_PATH_BINS}/qt.conf } # mkspecs have mac specific scripts that depend on perl and bash