[yocto] [meta-qt4][PATCH] qt4-native: disable precompiled headers

Andreas Oberritter obi at opendreambox.org
Wed Jul 6 01:26:47 PDT 2016


Using precompiled headers may lead to errors in parallel builds:

| In file included from <command-line>:0:0:
| /usr/include/stdc-predef.h:59:1: error: one or more PCH files were found, but they were invalid
|  #endif
|  ^
| /usr/include/stdc-predef.h:59:1: error: use -Winvalid-pch for more information
| /usr/include/stdc-predef.h:59:1: fatal error: .pch/release-shared-emb-x86_64/QtCore: No such file or directory

Upstream bug report:
http://lists.qt-project.org/pipermail/development/2014-July/017689.html

Precompiled headers have been disabled for target builds from
the beginning (commit 46bdf066 in OE-Core).

Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
---
 recipes-qt4/qt4/qt4-native.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-qt4/qt4/qt4-native.inc b/recipes-qt4/qt4/qt4-native.inc
index 58acac8..dac267b 100644
--- a/recipes-qt4/qt4/qt4-native.inc
+++ b/recipes-qt4/qt4/qt4-native.inc
@@ -49,6 +49,7 @@ EXTRA_OECONF = "-prefix ${prefix} \
                 -embedded -no-freetype -no-glib -no-iconv \
                 -exceptions -xmlpatterns \
                 -qt3support \
+                -no-pch \
                 -no-fast -silent -no-rpath"
 
 # yank default -e, otherwise we get the following error:
-- 
1.9.1




More information about the yocto mailing list