1From 9c67f377477a07495a712f478eabfa8d33164c45 Mon Sep 17 00:00:00 2001 2From: Daniel Gomez <dagmcr@gmail.com> 3Date: Sun, 17 Jan 2021 23:32:51 +0100 4Subject: [PATCH 1/2] qt: Create subdir in Makefile 5 6Create builddir/qt subdir when --with-qt5 is enabled. 7 8Fixes the following error: 9 10moc -Iqt -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB 11-I/var/lib/yocto/gallium/tmp_20210113/work/znver1-poky-linux/zbar/0.23.1+gitAUTOINC+89e7900d85-r0/recipe-sysroot/usr/include/QtWidgets 12-I/var/lib/yocto/gallium/tmp_20210113/work/znver1-poky-linux/zbar/0.23.1+gitAUTOINC+89e7900d85-r0/recipe-sysroot/usr/include/QtGui 13-I/var/lib/yocto/gallium/tmp_20210113/work/znver1-poky-linux/zbar/0.23.1+gitAUTOINC+89e7900d85-r0/recipe-sysroot/usr/include/QtCore 14-I../git/include ../git/include/zbar/QZBar.h -o qt/moc_QZBar.cpp 15moc: Cannot create qt/moc_QZBar.cpp 16make: *** [Makefile:2459: qt/moc_QZBar.cpp] Error 1 17 18Signed-off-by: Daniel Gomez <dagmcr@gmail.com> 19--- 20Upstream-Status: Pending 21 22 qt/Makefile.am.inc | 1 + 23 1 file changed, 1 insertion(+) 24 25diff --git a/qt/Makefile.am.inc b/qt/Makefile.am.inc 26index b099c2b..c98fbeb 100644 27--- a/qt/Makefile.am.inc 28+++ b/qt/Makefile.am.inc 29@@ -15,4 +15,5 @@ qt/moc_%.cpp: qt/%.h 30 $(MOC) $(qt_libzbarqt_la_CPPFLAGS) $< -o $@ 31 32 qt/moc_%.cpp: include/zbar/%.h 33+ @$(mkdir_p) qt 2>/dev/null 34 $(MOC) $(qt_libzbarqt_la_CPPFLAGS) $< -o $@ 35-- 362.29.2 37 38