[oe] [meta-qt5][PATCH] qtbase-native: set path to mkspec for cmake properly again
Andreas Müller
schnitzeltony at googlemail.com
Tue Sep 5 07:29:19 UTC 2017
Since update to 5.9.2 native recipes in meta-qt5-extra fail due to strange path
to mkspecs. This patch fixes this the hard way.
Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
---
recipes-qt/qt5/qtbase-native_git.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb
index 54a0b78..28a39ac 100644
--- a/recipes-qt/qt5/qtbase-native_git.bb
+++ b/recipes-qt/qt5/qtbase-native_git.bb
@@ -112,6 +112,10 @@ do_install() {
fi
install -m 755 ${B}/bin/qfloat16-tables ${D}${OE_QMAKE_PATH_BINS}
+
+ # since 5.9.2 something sets a very strange path to mkspec ("${_qt5Core_install_prefix}/../../../../../../../../../../usr/lib/qt5//mkspecs/linux-oe-g++")
+ # override this until somebody finds a better way
+ echo 'set(_qt5_corelib_extra_includes "${_qt5Core_install_prefix}/lib${QT_DIR_NAME}/mkspecs/linux-oe-g++")' > ${D}${libdir}/cmake/Qt5Core/Qt5CoreConfigExtrasMkspecDir.cmake
}
SRCREV = "73573fce295caef35da706a8c8c796ec18e6baf1"
--
2.9.4
More information about the Openembedded-devel
mailing list