Browse Source

qt5: install headers into /usr/include/qt5

There are places in Qt's source where headers included with the name of
the module subdirectory (e.g. #include <QtCore/QHash>). Therefore, the
build system passes the top header directory to the compiler; but this
results in a error when building host tools since sysroot/usr/include
directory includes architecture specific system headers.

In order to prevent this, install all Qt headers into a subdirectory in
/usr/include.

Fixes: http://autobuild.buildroot.net/results/4f1/4f16c0b38bdd6e40efcc781c12fae81c0bfabb72/

Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fatih Aşıcı 11 years ago
parent
commit
dacc0a44ac
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/qt5/qt5base/qt5base.mk

+ 1 - 0
package/qt5/qt5base/qt5base.mk

@@ -159,6 +159,7 @@ define QT5BASE_CONFIGURE_CMDS
 		-v \
 		-v \
 		-prefix /usr \
 		-prefix /usr \
 		-hostprefix $(HOST_DIR)/usr \
 		-hostprefix $(HOST_DIR)/usr \
+		-headerdir /usr/include/qt5 \
 		-sysroot $(STAGING_DIR) \
 		-sysroot $(STAGING_DIR) \
 		-plugindir /usr/lib/qt/plugins \
 		-plugindir /usr/lib/qt/plugins \
 		-no-rpath \
 		-no-rpath \