Details
-
Bug
-
Resolution: Done
-
P0: Blocker
-
5.8.0 Alpha
-
None
-
Ubuntu 16.04 building for Raspberry Pi
-
57987ad57139be7b29e74d7eb60777b3ebb9e271
Description
The freetype and fontconfig configure test does not pass when cross compiling because they will attempt to use the host system's version of freetype. This happens because in both the freetype and fontconfig tests they both use the file freetype.pri:
!cross_compile { TRY_INCLUDEPATHS = /include /usr/include $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH # LSB doesn't allow using headers from /include or /usr/include linux-lsb-g++:TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$QMAKE_INCDIR_X11 $$INCLUDEPATH haiku:TRY_INCLUDEPATHS += /system/develop/headers for(p, TRY_INCLUDEPATHS) { p = $$join(p, "", "", "/freetype2") exists($$p):INCLUDEPATH *= $$p } } else { # If we are cross-compiling, then there is still a remote possibility that # configure detected font-config & freetype, stored in these variables. QMAKE_CFLAGS += $$QMAKE_CFLAGS_FONTCONFIG QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_FONTCONFIG }
But even when a cross compiler is being used the cross_compile == false when this is evaluated.
Attachments
Issue Links
- is duplicated by
-
QTBUG-56046 [REG 5.7 -> 5.8] System freetype not detected by configure when cross-compiling
- Closed
- relates to
-
QTBUG-37323 searching freetype includes does not use pkg-config
- Closed
For Gerrit Dashboard: QTBUG-54911 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
170345,4 | fix freetype/fontconfig configure system | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |