Commit 86774d47 authored by Andrew E. Bruno's avatar Andrew E. Bruno

Fix SDK build errors.

bitbake meta-toolchain-qt5 was failing with the following error when
compiling qtwebkit:

  asteroid/build/tmp-glibc/sysroots/bass/usr/include/c++/6.2.0/cstdlib:75:25:
fatal error: stdlib.h: No such file or directory

This appears to be related to how qmake passes some include paths with
"-isystem" prefix [1,2]. This flag effects the internal header search
path order and seems to cause issues when compiling qtwebkit for the
sdk. By default QMAKE_CFLAGS_ISYSTEM = -isystem see [3]. This patch
resets QMAKE_CFLAGS_ISYSTEM to use -I instead for qtwebkit.

Additionally, the packagegroup-qt5-toolchain-target.bbappend adds/removes
some packages that were causing the do_populate_sdk to fail. These
changes were described in more detail here [4].

[1] http://lists.openembedded.org/pipermail/openembedded-core/2016-August/125952.html
[2] http://stackoverflow.com/questions/37218953/isystem-on-a-system-include-directory-causes-errors
[3] http://code.qt.io/cgit/qt/qtbase.git/tree/mkspecs/common/gcc-base.conf?h=5.6#n47
[4] http://ronan.lepage1.free.fr/gumstix-wiki/doku.php?id=asteroidos:clean_start
parent d62eff58
USE_RUBY = " \
qtquick1-dev \
qttranslations-qtquick1 \
qtwebkit-dev \
qtwebkit-mkspecs \
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'qtwebkit-qmlplugins', '', d)} \
"
RDEPENDS_${PN}_remove = "qtmultimedia-plugins"
RDEPENDS_${PN}_remove = "qttools-mkspecs"
RDEPENDS_${PN}_remove = "qttools-staticdev"
RDEPENDS_${PN} += " \
mapplauncherd-qt \
qtquick1 \
"
EXTRA_QMAKEVARS_PRE += "QMAKE_CFLAGS_ISYSTEM="
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment