Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54911

New configure uses host freetype when cross compiling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P0: Blocker P0: Blocker
    • 5.8.0 Beta
    • 5.8.0 Alpha
    • Build System
    • None
    • Ubuntu 16.04 building for Raspberry Pi
    • 57987ad57139be7b29e74d7eb60777b3ebb9e271

      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.

        For Gerrit Dashboard: QTBUG-54911
        # Subject Branch Project Status CR V

            buddenha Oswald Buddenhagen
            janichol Andy Nichols
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes